	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_auth
_pam_auth:                              ## @pam_auth
	.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, %r14
	movq	$0, -48(%rbp)
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rax)
	movq	_my_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r14, -64(%rbp)
	jle	LBB0_4
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movq	_my_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r14, -64(%rbp)
LBB0_4:
	movq	(%r14), %rsi
LBB0_5:
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_pam_start
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.6:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pam_authenticate
	movl	%eax, %r15d
	movl	(%r12), %eax
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pam_acct_mgmt
	movl	%eax, %r15d
	movl	(%r12), %eax
LBB0_8:
	xorl	%ebx, %ebx
	cmpl	%eax, %r15d
	sete	%r13b
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %r14
	movq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_pam_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_10:
	movb	%r13b, %bl
	movq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_pam_end
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
	.comm	_my_conv,4,2                    ## @my_conv
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUTH-PAM: BACKGROUND: user '%s' failed to authenticate: %s\n"

	.no_dead_strip	_pam_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_auth
_pam_auth:                              ; @pam_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	str	xzr, [sp, #8]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _my_conv@GOTPAGE
Lloh1:
	ldr	x9, [x9, _my_conv@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	x19, [sp, #16]
	cmp	x8, #0
	b.le	LBB0_4
; %bb.2:
	mov	x1, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _my_conv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _my_conv@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x19, [sp, #16]
LBB0_4:
	ldr	x1, [x19]
LBB0_5:
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_pam_start
Lloh6:
	adrp	x21, _PAM_SUCCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_pam_authenticate
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_pam_acct_mgmt
	mov	x20, x0
	ldr	w8, [x21]
	b	LBB0_10
LBB0_8:
	mov	w21, #0
	b	LBB0_13
LBB0_9:
	mov	x20, x0
LBB0_10:
	cmp	w20, w8
	cset	w21, eq
	b.eq	LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	x19, [x19]
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_pam_strerror
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_fprintf
LBB0_12:
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_pam_end
LBB0_13:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
	.comm	_my_conv,4,2                    ; @my_conv
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUTH-PAM: BACKGROUND: user '%s' failed to authenticate: %s\n"

	.no_dead_strip	_pam_auth
.subsections_via_symbols
