	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auth_pam
_auth_pam:                              ## @auth_pam
	.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	_pamh@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_pam_silent@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_pam_authenticate
                                        ## kill: def $eax killed $eax def $rax
	movq	_pam_err@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movl	$1, %r12d
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_14
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_14
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rdi
	movq	_PAM_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_pam_get_item
	movl	%eax, (%r15)
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rbx
	movq	_username@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_getpwnam
	movq	_pwd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_pam_syslog
	movl	$-1, %r12d
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pam_syslog
LBB0_8:
	movq	(%r14), %rdi
	movl	(%r13), %esi
	callq	_pam_acct_mgmt
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	je	LBB0_15
## %bb.9:
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.10:
	movq	(%r14), %rdi
	movq	_PAM_CHANGE_EXPIRED_AUTHTOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	callq	_pam_chauthtok
	movl	%eax, (%r15)
	cmpl	$129, %eax
	je	LBB0_15
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	callq	_pam_syslog
LBB0_14:
	movq	(%r14), %rdi
	movl	(%r15), %esi
	callq	_pam_end
	movq	$0, (%r14)
	movl	%r12d, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pamh,8,3                       ## @pamh
	.comm	_pam_silent,4,2                 ## @pam_silent
	.comm	_pam_err,4,2                    ## @pam_err
	.comm	_PAM_USER,4,2                   ## @PAM_USER
	.comm	_username,4,2                   ## @username
	.comm	_pwd,4,2                        ## @pwd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pam_get_item(PAM_USER)"

L_.str.1:                               ## @.str.1
	.asciz	"pam_authenticate()"

	.comm	_PAM_CHANGE_EXPIRED_AUTHTOK,4,2 ## @PAM_CHANGE_EXPIRED_AUTHTOK
L_.str.2:                               ## @.str.2
	.asciz	"pam_chauthtok()"

L_.str.3:                               ## @.str.3
	.asciz	"pam_acct_mgmt()"

	.no_dead_strip	_auth_pam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auth_pam
_auth_pam:                              ; @auth_pam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x20, _pamh@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pamh@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh2:
	adrp	x22, _pam_silent@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pam_silent@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_pam_authenticate
Lloh4:
	adrp	x21, _pam_err@GOTPAGE
Lloh5:
	ldr	x21, [x21, _pam_err@GOTPAGEOFF]
	str	w0, [x21]
	mov	w19, #1
	sub	w8, w0, #131
	cmp	w8, #2
	b.lo	LBB0_15
; %bb.1:
	cmp	w0, #128
	b.eq	LBB0_15
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _PAM_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAM_USER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pam_get_item
	str	w0, [x21]
	cmp	w0, #129
	b.ne	LBB0_7
; %bb.4:
	ldr	x19, [sp, #8]
Lloh9:
	adrp	x8, _username@GOTPAGE
Lloh10:
	ldr	x8, [x8, _username@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_getpwnam
Lloh12:
	adrp	x8, _pwd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pwd@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pam_syslog
	mov	w19, #-1
	b	LBB0_15
LBB0_7:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pam_syslog
LBB0_8:
	ldr	x0, [x20]
	ldr	w1, [x22]
	bl	_pam_acct_mgmt
	str	w0, [x21]
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.9:
	cmp	w0, #130
	b.ne	LBB0_12
; %bb.10:
	ldr	x0, [x20]
	ldr	w8, [x22]
Lloh19:
	adrp	x9, _PAM_CHANGE_EXPIRED_AUTHTOK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PAM_CHANGE_EXPIRED_AUTHTOK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_pam_chauthtok
	str	w0, [x21]
	cmp	w0, #129
	b.ne	LBB0_13
LBB0_11:
	mov	w19, #0
	b	LBB0_16
LBB0_12:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_pam_syslog
	mov	w19, #1
LBB0_15:
	ldr	x0, [x20]
	ldr	w1, [x21]
	bl	_pam_end
	str	xzr, [x20]
LBB0_16:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_pamh,8,3                       ; @pamh
	.comm	_pam_silent,4,2                 ; @pam_silent
	.comm	_pam_err,4,2                    ; @pam_err
	.comm	_PAM_USER,4,2                   ; @PAM_USER
	.comm	_username,4,2                   ; @username
	.comm	_pwd,4,2                        ; @pwd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pam_get_item(PAM_USER)"

l_.str.1:                               ; @.str.1
	.asciz	"pam_authenticate()"

	.comm	_PAM_CHANGE_EXPIRED_AUTHTOK,4,2 ; @PAM_CHANGE_EXPIRED_AUTHTOK
l_.str.2:                               ; @.str.2
	.asciz	"pam_chauthtok()"

l_.str.3:                               ; @.str.3
	.asciz	"pam_acct_mgmt()"

	.no_dead_strip	_auth_pam
.subsections_via_symbols
