	.file	"80251.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"domain name too long"
.LC2:
	.string	"setdomainname"
.LC3:
	.string	"getdomainname"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L3:
	call	usage
.L2:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L3
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -112[rbp], rax
	cmp	DWORD PTR -100[rbp], 1
	jle	.L4
	call	usage
.L4:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 64
	jbe	.L6
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L6:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	setdomainname@PLT
	test	eax, eax
	je	.L7
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L5:
	lea	rax, -80[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	getdomainname@PLT
	test	eax, eax
	je	.L8
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L8:
	mov	BYTE PTR -17[rbp], 0
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	puts@PLT
.L7:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"usage: domainname [ypdomain]\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"80251.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"domain name too long\000"
	.align	2
.LC2:
	.ascii	"setdomainname\000"
	.align	2
.LC3:
	.ascii	"getdomainname\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L10+4
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-88]
	bl	getopt
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-88]
	sub	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r3, .L10+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	ble	.L4
	bl	usage
.L4:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #64
	bls	.L6
	ldr	r1, .L10+12
	mov	r0, #1
	bl	errx
.L6:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	setdomainname
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L10+16
	mov	r0, #1
	bl	err
.L5:
	sub	r3, fp, #72
	mov	r1, #64
	mov	r0, r3
	bl	getdomainname
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r1, .L10+20
	mov	r0, #1
	bl	err
.L8:
	mov	r3, #0
	strb	r3, [fp, #-9]
	sub	r3, fp, #72
	mov	r0, r3
	bl	puts
.L7:
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC0
	.word	optind
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"usage: domainname [ypdomain]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L13+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	.align	2
.L13:
	.word	stderr
	.word	.LC5
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
