	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_get_user                   ## -- Begin function pam_get_user
	.p2align	4, 0x90
_pam_get_user:                          ## @pam_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_ENTER
	movq	_PAM_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_pam_get_item
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_RETURNC
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_openpam_get_option
	movq	%rax, -1088(%rbp)
	testq	%rax, %rax
	cmovneq	%rax, %r12
	testq	%r12, %r12
	jne	LBB0_7
## %bb.4:
	movq	_PAM_USER_PROMPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1088(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pam_get_item
	cmpl	(%r13), %eax
	jne	LBB0_5
## %bb.6:
	movq	-1088(%rbp), %r12
LBB0_7:
	testq	%r12, %r12
	jne	LBB0_9
LBB0_8:
	movq	_user_prompt@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_9:
	movq	$1024, -1096(%rbp)              ## imm = 0x400
	leaq	-1072(%rbp), %rbx
	leaq	-1096(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_openpam_subst
	cmpq	$1025, -1096(%rbp)              ## imm = 0x401
	cmovaeq	%r12, %rbx
	cmpl	(%r13), %eax
	cmovneq	%r12, %rbx
	movq	_PAM_PROMPT_ECHO_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	leaq	-1080(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_pam_prompt
	cmpl	(%r13), %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %edi
	callq	_RETURNC
LBB0_11:
	movq	_PAM_USER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-1080(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pam_set_item
	movl	%eax, %ebx
	movq	-1080(%rbp), %rdi
	callq	_FREE
	cmpl	(%r13), %ebx
	je	LBB0_13
## %bb.12:
	movl	%ebx, %edi
	callq	_RETURNC
LBB0_13:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_pam_get_item
	movl	%eax, %edi
	callq	_RETURNC
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r12d, %r12d
	testq	%r12, %r12
	je	LBB0_8
	jmp	LBB0_9
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_USER,4,2                   ## @PAM_USER
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user_prompt"

	.comm	_PAM_USER_PROMPT,4,2            ## @PAM_USER_PROMPT
	.comm	_user_prompt,8,3                ## @user_prompt
	.comm	_PAM_PROMPT_ECHO_ON,4,2         ## @PAM_PROMPT_ECHO_ON
L_.str.1:                               ## @.str.1
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_get_user                   ; -- Begin function pam_get_user
	.p2align	2
_pam_get_user:                          ; @pam_get_user
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1056
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_ENTER
Lloh3:
	adrp	x22, _PAM_USER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PAM_USER@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	bl	_pam_get_item
Lloh5:
	adrp	x23, _PAM_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_RETURNC
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_openpam_get_option
	str	x0, [sp, #8]
	cmp	x0, #0
	csel	x8, x21, x0, eq
	cbnz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _PAM_USER_PROMPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAM_USER_PROMPT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_pam_get_item
	ldr	w8, [x23]
	ldr	x9, [sp, #8]
	cmp	x9, #0
	ccmp	w0, w8, #0, ne
	csel	x8, x9, xzr, eq
LBB0_5:
Lloh12:
	adrp	x9, _user_prompt@GOTPAGE
Lloh13:
	ldr	x9, [x9, _user_prompt@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x21, x9, x8, eq
	mov	w8, #1024
	str	x8, [sp, #16]
	add	x24, sp, #24
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x20
	mov	x3, x21
	bl	_openpam_subst
	ldr	w8, [x23]
	ldr	x9, [sp, #16]
	cmp	x9, #1025
	ccmp	w0, w8, #0, lo
	csel	x4, x24, x21, eq
Lloh15:
	adrp	x8, _PAM_PROMPT_ECHO_ON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAM_PROMPT_ECHO_ON@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	x0, x20
	bl	_pam_prompt
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_RETURNC
LBB0_7:
	ldr	w1, [x22]
	ldr	x2, [sp]
	mov	x0, x20
	bl	_pam_set_item
	mov	x21, x0
	ldr	x0, [sp]
	bl	_FREE
	ldr	w8, [x23]
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_RETURNC
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	bl	_pam_get_item
	bl	_RETURNC
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_USER,4,2                   ; @PAM_USER
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user_prompt"

	.comm	_PAM_USER_PROMPT,4,2            ; @PAM_USER_PROMPT
	.comm	_user_prompt,8,3                ; @user_prompt
	.comm	_PAM_PROMPT_ECHO_ON,4,2         ; @PAM_PROMPT_ECHO_ON
l_.str.1:                               ; @.str.1
	.asciz	"%s"

.subsections_via_symbols
