	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user                           ## -- Begin function user
	.p2align	4, 0x90
_user:                                  ## @user
	.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	%rbx
	subq	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%edi, -372(%rbp)
	movq	%rsi, -384(%rbp)
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	leaq	-372(%rbp), %rdi
	leaq	-384(%rbp), %rsi
	callq	_another
	movl	-372(%rbp), %edi
LBB0_2:
	addl	$-5, %edi
	movq	-384(%rbp), %rax
	cmpl	$-4, %edi
	ja	LBB0_4
## %bb.3:
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	jmp	LBB0_19
LBB0_4:
	movq	8(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_command
	movl	%eax, %ebx
	movq	_CONTINUE@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	cmpl	%r15d, %eax
	jne	LBB0_9
## %bb.5:
	cmpl	$3, -372(%rbp)
	jge	LBB0_6
## %bb.7:
	leaq	-368(%rbp), %rbx
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%ecx, %ecx
	callq	_UI_UTIL_read_pw_string
	movq	-384(%rbp), %rax
	movq	%rbx, 16(%rax)
	incl	-372(%rbp)
	jmp	LBB0_8
LBB0_6:
	movq	-384(%rbp), %rax
	movq	16(%rax), %rbx
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_command
	movl	%eax, %ebx
	movl	(%r14), %r15d
LBB0_9:
	movl	%ebx, %eax
	cmpl	%r15d, %ebx
	jne	LBB0_14
## %bb.10:
	cmpl	$4, -372(%rbp)
	jge	LBB0_11
## %bb.12:
	leaq	-112(%rbp), %r14
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$79, %esi
	callq	_fgets
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	movb	$0, -112(%rbp,%rax)
	movq	-384(%rbp), %rax
	movq	%r14, 24(%rax)
	incl	-372(%rbp)
	jmp	LBB0_13
LBB0_11:
	movq	-384(%rbp), %rax
	movq	24(%rax), %r14
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_command
LBB0_14:
	movq	_COMPLETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.16:
	cmpl	%r15d, %ebx
	je	LBB0_19
## %bb.17:
	cmpl	$4, -372(%rbp)
	jne	LBB0_19
## %bb.18:
	movq	-384(%rbp), %rax
	movq	24(%rax), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_command
	jmp	LBB0_19
LBB0_15:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_fprintf
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$360, %rsp                      ## imm = 0x168
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"username"

L_.str.1:                               ## @.str.1
	.asciz	"usage: %s username [password] [account]\n"

	.comm	_code,4,2                       ## @code
L_.str.2:                               ## @.str.2
	.asciz	"USER %s"

	.comm	_CONTINUE,4,2                   ## @CONTINUE
L_.str.3:                               ## @.str.3
	.asciz	"Password: "

L_.str.4:                               ## @.str.4
	.asciz	"PASS %s"

L_.str.5:                               ## @.str.5
	.asciz	"Account: "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
L_.str.6:                               ## @.str.6
	.asciz	"\r\n"

L_.str.7:                               ## @.str.7
	.asciz	"ACCT %s"

	.comm	_COMPLETE,4,2                   ## @COMPLETE
L_.str.8:                               ## @.str.8
	.asciz	"Login failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user                           ; -- Begin function user
	.p2align	2
_user:                                  ; @user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	w0, [sp, #20]
	str	x1, [sp, #8]
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #20
	add	x1, sp, #8
	bl	_another
	ldr	w0, [sp, #20]
LBB0_2:
	sub	w9, w0, #5
	ldr	x8, [sp, #8]
	cmn	w9, #4
	b.hi	LBB0_4
; %bb.3:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x8, _code@GOTPAGE
Lloh8:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh9:
	str	w9, [x8]
	b	LBB0_19
LBB0_4:
	ldr	x1, [x8, #8]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_command
Lloh12:
	adrp	x20, _CONTINUE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _CONTINUE@GOTPAGEOFF]
	ldr	w21, [x20]
	cmp	w0, w21
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [sp, #20]
	cmp	w8, #3
	b.ge	LBB0_8
; %bb.6:
	add	x19, sp, #24
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #24
	mov	w1, #256
	mov	w3, #0
	bl	_UI_UTIL_read_pw_string
	ldr	x8, [sp, #8]
	str	x19, [x8, #16]
	ldr	w8, [sp, #20]
	add	w8, w8, #1
	str	w8, [sp, #20]
	b	LBB0_9
LBB0_7:
	mov	x19, x0
	b	LBB0_10
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	x19, [x8, #16]
LBB0_9:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_command
	mov	x19, x0
	ldr	w21, [x20]
LBB0_10:
	mov	x0, x19
	cmp	w19, w21
	b.ne	LBB0_15
; %bb.11:
	ldr	w8, [sp, #20]
	cmp	w8, #4
	b.ge	LBB0_13
; %bb.12:
	sub	x20, x29, #120
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
Lloh20:
	adrp	x8, _stdout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_fflush
Lloh23:
	adrp	x8, _stdin@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	sub	x0, x29, #120
	mov	w1, #79
	bl	_fgets
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	sub	x0, x29, #120
	bl	_strcspn
	strb	wzr, [x20, x0]
	ldr	x8, [sp, #8]
	str	x20, [x8, #24]
	ldr	w8, [sp, #20]
	add	w8, w8, #1
	str	w8, [sp, #20]
	b	LBB0_14
LBB0_13:
	ldr	x8, [sp, #8]
	ldr	x20, [x8, #24]
LBB0_14:
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_command
LBB0_15:
Lloh30:
	adrp	x8, _COMPLETE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _COMPLETE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.16:
	ldr	w8, [sp, #20]
	cmp	w19, w21
	ccmp	w8, #4, #0, ne
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #24]
Lloh33:
	adrp	x0, l_.str.7@PAGE
Lloh34:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_command
	b	LBB0_19
LBB0_18:
Lloh35:
	adrp	x8, _stdout@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_19:
	ldur	x8, [x29, #-40]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"username"

l_.str.1:                               ; @.str.1
	.asciz	"usage: %s username [password] [account]\n"

	.comm	_code,4,2                       ; @code
l_.str.2:                               ; @.str.2
	.asciz	"USER %s"

	.comm	_CONTINUE,4,2                   ; @CONTINUE
l_.str.3:                               ; @.str.3
	.asciz	"Password: "

l_.str.4:                               ; @.str.4
	.asciz	"PASS %s"

l_.str.5:                               ; @.str.5
	.asciz	"Account: "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
l_.str.6:                               ; @.str.6
	.asciz	"\r\n"

l_.str.7:                               ; @.str.7
	.asciz	"ACCT %s"

	.comm	_COMPLETE,4,2                   ; @COMPLETE
l_.str.8:                               ; @.str.8
	.asciz	"Login failed.\n"

.subsections_via_symbols
