	.file	"834237.c"
	.intel_syntax noprefix
	.text
	.globl	copyright
	.data
	.align 32
	.type	copyright, @object
	.size	copyright, 94
copyright:
	.string	"@(#) Copyright (c) 1983, 1988 Regents of the University of California.\n All rights reserved.\n"
	.align 32
	.type	sccsid, @object
	.size	sccsid, 38
sccsid:
	.string	"@(#)hostname.c\t5.4 (Berkeley) 5/31/90"
	.section	.rodata
.LC0:
	.string	"hostname [-s] [hostname]\n"
.LC1:
	.string	"s"
.LC2:
	.string	"sethostname"
.LC3:
	.string	"gethostname"
	.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
	mov	DWORD PTR -96[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -92[rbp]
	movsx	eax, al
	cmp	eax, 115
	jne	.L3
	mov	DWORD PTR -96[rbp], 1
	jmp	.L2
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	getopt@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L4
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -112[rbp], rax
	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	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sethostname@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -80[rbp]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	gethostname@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	cmp	DWORD PTR -96[rbp], 0
	je	.L8
	lea	rax, -80[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	index@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR [rax], 0
.L8:
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	puts@PLT
.L6:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"834237.c"
	.text
	.global	copyright
	.data
	.align	2
	.type	copyright, %object
	.size	copyright, 94
copyright:
	.ascii	"@(#) Copyright (c) 1983, 1988 Regents of the Univer"
	.ascii	"sity of California.\012 All rights reserved.\012\000"
	.align	2
	.type	sccsid, %object
	.size	sccsid, 38
sccsid:
	.ascii	"@(#)hostname.c\0115.4 (Berkeley) 5/31/90\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hostname [-s] [hostname]\012\000"
	.align	2
.LC1:
	.ascii	"s\000"
	.align	2
.LC2:
	.ascii	"sethostname\000"
	.align	2
.LC3:
	.ascii	"gethostname\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L2
.L4:
	ldr	r3, [fp, #-88]
	and	r3, r3, #255
	cmp	r3, #115
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-92]
	b	.L2
.L3:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L10+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r2, .L10+12
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-96]
	bl	getopt
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L10+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-100]
	ldr	r4, [r3]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	sethostname
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L10+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #80
	mov	r1, #64
	mov	r0, r3
	bl	gethostname
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #80
	mov	r1, #46
	mov	r0, r3
	bl	index
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-84]
	mov	r2, #0
	strb	r2, [r3]
.L8:
	sub	r3, fp, #80
	mov	r0, r3
	bl	puts
.L6:
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
