	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_cleanup
_pam_cleanup:                           ## @pam_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pamh@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	_pam_session_established@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.2:
	xorl	%esi, %esi
	callq	_pam_close_session
	movq	_pam_err@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pam_syslog
LBB0_4:
	movq	$0, (%r14)
	movq	_pam_cred_established@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	movq	_pam_silent@GOTPCREL(%rip), %rax
	movq	_PAM_DELETE_CRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_pam_setcred
	movq	_pam_err@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_pam_syslog
LBB0_7:
	movq	$0, (%r14)
	movq	(%rbx), %rdi
	movq	_pam_err@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_pam_end
	movq	$0, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pamh,8,3                       ## @pamh
	.comm	_pam_session_established,8,3    ## @pam_session_established
	.comm	_pam_err,8,3                    ## @pam_err
	.comm	_PAM_SUCCESS,8,3                ## @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pam_close_session()"

	.comm	_pam_cred_established,8,3       ## @pam_cred_established
	.comm	_pam_silent,4,2                 ## @pam_silent
	.comm	_PAM_DELETE_CRED,4,2            ## @PAM_DELETE_CRED
L_.str.1:                               ## @.str.1
	.asciz	"pam_setcred()"

	.no_dead_strip	_pam_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_cleanup
_pam_cleanup:                           ; @pam_cleanup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, _pamh@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pamh@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x22, _pam_session_established@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pam_session_established@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh4:
	adrp	x20, _pam_err@GOTPAGE
Lloh5:
	ldr	x20, [x20, _pam_err@GOTPAGEOFF]
Lloh6:
	adrp	x21, _PAM_SUCCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PAM_SUCCESS@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_pam_close_session
	str	x0, [x20]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pam_syslog
LBB0_4:
	str	xzr, [x22]
Lloh10:
	adrp	x22, _pam_cred_established@GOTPAGE
Lloh11:
	ldr	x22, [x22, _pam_cred_established@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _pam_silent@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pam_silent@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PAM_DELETE_CRED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PAM_DELETE_CRED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_pam_setcred
	str	x0, [x20]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pam_syslog
LBB0_7:
	str	xzr, [x22]
	ldr	x0, [x19]
	ldr	x1, [x20]
	bl	_pam_end
	str	xzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_pamh,8,3                       ; @pamh
	.comm	_pam_session_established,8,3    ; @pam_session_established
	.comm	_pam_err,8,3                    ; @pam_err
	.comm	_PAM_SUCCESS,8,3                ; @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pam_close_session()"

	.comm	_pam_cred_established,8,3       ; @pam_cred_established
	.comm	_pam_silent,4,2                 ; @pam_silent
	.comm	_PAM_DELETE_CRED,4,2            ; @PAM_DELETE_CRED
l_.str.1:                               ; @.str.1
	.asciz	"pam_setcred()"

	.no_dead_strip	_pam_cleanup
.subsections_via_symbols
