	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_set_debug_handlers
	movq	(%r14), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	_username@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	%rax, (%r12)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$117, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$104, %eax
	jne	LBB0_2
	jmp	LBB0_7
LBB0_6:
	movq	_optind@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	addl	$2, %eax
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.8:
	movq	(%r12), %rdi
	callq	_change_user
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movl	$3, %edi
	callq	_init_files
	movslq	(%r15), %rax
	movq	(%r14,%rax,8), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_open_file
	movslq	(%r15), %rax
	movq	8(%r14,%rax,8), %rsi
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_open_file
	movq	_fd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	$1, 8(%rax)
	xorl	%eax, %eax
	callq	_run
	xorl	%eax, %eax
	callq	_flush_w_buff
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_fsync
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_usage
	movl	$2, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hu:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_username,8,3                   ## @username
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"fatal: cannot change user to %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"(none)"

	.comm	_fd,8,3                         ## @fd
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_set_debug_handlers
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _progname@GOTPAGE
Lloh1:
	ldr	x9, [x9, _progname@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
	cmp	w20, #1
	b.eq	LBB0_9
; %bb.1:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x23, _optarg@GOTPAGE
Lloh6:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
Lloh7:
	adrp	x22, _username@GOTPAGE
Lloh8:
	ldr	x22, [x22, _username@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	str	x8, [x22]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #117
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #104
	b.ne	LBB0_3
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x21, _optind@GOTPAGE
Lloh10:
	ldr	x21, [x21, _optind@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #2
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x22]
	bl	_change_user
	tbnz	x0, #63, LBB0_11
; %bb.8:
	mov	w0, #3
	bl	_init_files
	ldrsw	x8, [x21]
	ldr	x1, [x19, x8, lsl #3]
	mov	w0, #0
	mov	w2, #0
	bl	_open_file
	ldrsw	x8, [x21]
	add	x8, x19, x8, lsl #3
	ldr	x1, [x8, #8]
	mov	w19, #1
	mov	w0, #1
	mov	w2, #0
	bl	_open_file
Lloh11:
	adrp	x20, _fd@GOTPAGE
Lloh12:
	ldr	x20, [x20, _fd@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w19, [x8, #8]
	bl	_run
	bl	_flush_w_buff
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_fsync
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	bl	_usage
	mov	w0, #2
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x22]
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x9, x8, eq
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hu:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_username,8,3                   ; @username
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"fatal: cannot change user to %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"(none)"

	.comm	_fd,8,3                         ; @fd
.subsections_via_symbols
