	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_ssh_load_key
_pam_ssh_load_key:                      ## @pam_ssh_load_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_snprintf
	cmpl	%r15d, %eax
	jle	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sshkey_load_private
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sshkey_load_private
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_PAM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_openpam_log
	jmp	LBB0_12
LBB0_5:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	cmpb	$0, (%r14)
	jne	LBB0_9
LBB0_7:
	movq	_PAM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_openpam_log
	movl	$16, %edi
	callq	_malloc
	movq	-64(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	%rdi, 8(%rax)
	movq	-56(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-64(%rbp), %rdi
	callq	_sshkey_free
	jmp	LBB0_11
LBB0_10:
	callq	_sshkey_free
	movq	-56(%rbp), %rdi
	callq	_free
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_PAM_LOG_DEBUG,4,2              ## @PAM_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"failed to load key from %s"

L_.str.3:                               ## @.str.3
	.asciz	"loaded '%s' from %s"

	.no_dead_strip	_pam_ssh_load_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_ssh_load_key
_pam_ssh_load_key:                      ; @pam_ssh_load_key
	.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
	sub	sp, sp, #32
	mov	x21, x3
	mov	x20, x2
	mov	x4, x1
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_snprintf
	cmp	w0, w22
	b.gt	LBB0_10
; %bb.1:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #48
	sub	x3, x29, #56
	mov	x0, x19
	bl	_sshkey_load_private
	cbz	w0, LBB0_4
; %bb.2:
	sub	x2, x29, #48
	sub	x3, x29, #56
	mov	x0, x19
	mov	x1, x20
	bl	_sshkey_load_private
	cbz	w0, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _PAM_LOG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAM_LOG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_openpam_log
	b	LBB0_10
LBB0_4:
	cbz	w21, LBB0_8
; %bb.5:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_8
LBB0_6:
Lloh17:
	adrp	x8, _PAM_LOG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAM_LOG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldur	x2, [x29, #-56]
	str	x19, [sp, #-16]!
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_openpam_log
	add	sp, sp, #16
	mov	w0, #16
	bl	_malloc
	ldur	x8, [x29, #-48]
	cbz	x0, LBB0_9
; %bb.7:
	ldur	x9, [x29, #-56]
	stp	x9, x8, [x0]
	b	LBB0_11
LBB0_8:
	ldur	x0, [x29, #-48]
	bl	_sshkey_free
	b	LBB0_10
LBB0_9:
	mov	x0, x8
	bl	_sshkey_free
	ldur	x0, [x29, #-56]
	bl	_free
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #32
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_PAM_LOG_DEBUG,4,2              ; @PAM_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"failed to load key from %s"

l_.str.3:                               ; @.str.3
	.asciz	"loaded '%s' from %s"

	.no_dead_strip	_pam_ssh_load_key
.subsections_via_symbols
