	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$115, %eax
	je	LBB0_1
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$101, %eax
	jle	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$102, %eax
	je	LBB0_3
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$100, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_14
	jmp	LBB0_6
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %r14b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r15d
	jmp	LBB0_3
LBB0_6:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subl	%r13d, %ebx
	testl	%r15d, %r15d
	setne	%al
	cmpl	$1, %ebx
	jg	LBB0_8
## %bb.7:
	andb	%al, %r14b
	je	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_usage
LBB0_9:
	movq	(%r12,%r13,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_gethostname
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_17:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.20:
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	incq	%rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_strcpy
	jmp	LBB0_23
LBB0_10:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sethostname
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%edi, %edi
	callq	_exit
LBB0_18:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movb	$0, (%rax)
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_24:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsd"

	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"sethostname"

L_.str.2:                               ## @.str.2
	.asciz	"gethostname"

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x9, x20
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	w26, #0
	mov	w24, #0
	mov	w25, #1
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #115
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmp	w0, #101
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #102
	b.eq	LBB0_3
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #100
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	mov	w26, #1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #1
	b	LBB0_3
LBB0_9:
Lloh7:
	adrp	x8, _optind@GOTPAGE
Lloh8:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	sub	w8, w22, w23
	cmp	w24, #0
	cset	w9, ne
	and	w9, w26, w9
	cmp	w8, #1
	ccmp	w9, #0, #0, le
	b.eq	LBB0_11
; %bb.10:
	bl	_usage
LBB0_11:
	ldr	x21, [x21, x23, lsl #3]
	cbnz	x21, LBB0_18
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_gethostname
	cbz	x0, LBB0_14
; %bb.13:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	tbz	w25, #0, LBB0_20
; %bb.15:
	cbz	w24, LBB0_22
; %bb.16:
	mov	x0, x19
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_22
; %bb.17:
	add	x1, x0, #1
	mov	x0, x19
	bl	_strcpy
	b	LBB0_22
LBB0_18:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sethostname
	cbz	x0, LBB0_23
; %bb.19:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
	bl	_exit
LBB0_20:
	mov	x0, x19
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_22
; %bb.21:
	strb	wzr, [x0]
LBB0_22:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_23:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsd"

	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"sethostname"

l_.str.2:                               ; @.str.2
	.asciz	"gethostname"

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

.subsections_via_symbols
