	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_dlopen
_try_dlopen:                            ## @try_dlopen
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PAM_LOG_LIBDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_openpam_log
	movq	_OPENPAM_VERIFY_MODULE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	callq	_openpam_get_feature
	cmpl	$0, -28(%rbp)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_openpam_check_path_owner_perms
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_RTLD_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dlopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_openpam_log
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_LOG_LIBDEBUG,4,2           ## @PAM_LOG_LIBDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlopen(%s)"

	.comm	_OPENPAM_VERIFY_MODULE_FILE,4,2 ## @OPENPAM_VERIFY_MODULE_FILE
	.comm	_RTLD_NOW,4,2                   ## @RTLD_NOW
	.comm	_PAM_LOG_ERROR,4,2              ## @PAM_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_try_dlopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_dlopen
_try_dlopen:                            ; @try_dlopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PAM_LOG_LIBDEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAM_LOG_LIBDEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_openpam_log
Lloh5:
	adrp	x8, _OPENPAM_VERIFY_MODULE_FILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPENPAM_VERIFY_MODULE_FILE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_openpam_get_feature
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_openpam_check_path_owner_perms
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _RTLD_NOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTLD_NOW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlopen
	cbnz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_dlerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_openpam_log
	mov	x0, #0
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_LOG_LIBDEBUG,4,2           ; @PAM_LOG_LIBDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlopen(%s)"

	.comm	_OPENPAM_VERIFY_MODULE_FILE,4,2 ; @OPENPAM_VERIFY_MODULE_FILE
	.comm	_RTLD_NOW,4,2                   ; @RTLD_NOW
	.comm	_PAM_LOG_ERROR,4,2              ; @PAM_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_try_dlopen
.subsections_via_symbols
