	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_private_type       ## -- Begin function sshkey_load_private_type
	.p2align	4, 0x90
_sshkey_load_private_type:              ## @sshkey_load_private_type
	.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	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r13)
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
LBB0_4:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_sshkey_perm_ok
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movl	$0, (%r12)
LBB0_11:
	movq	_SSH_ERR_KEY_BAD_PERMISSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_20
LBB0_5:
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movl	$0, (%r12)
LBB0_7:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testq	%r12, %r12
	je	LBB0_14
## %bb.13:
	movl	$1, (%r12)
LBB0_14:
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_sshkey_load_private_type_fd
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_19
## %bb.15:
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.16:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.18:
	movq	%r14, %rsi
	callq	_sshkey_set_filename
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ## @SSH_ERR_SYSTEM_ERROR
	.comm	_SSH_ERR_KEY_BAD_PERMISSIONS,4,2 ## @SSH_ERR_KEY_BAD_PERMISSIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_private_type       ; -- Begin function sshkey_load_private_type
	.p2align	2
_sshkey_load_private_type:              ; @sshkey_load_private_type
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x20, x1
	mov	x25, x0
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
	str	xzr, [x23]
LBB0_4:
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x19, x0
	mov	x1, x20
	bl	_sshkey_perm_ok
	cbz	x0, LBB0_14
; %bb.6:
	cbz	x22, LBB0_8
; %bb.7:
	str	wzr, [x22]
LBB0_8:
Lloh3:
	adrp	x8, _SSH_ERR_KEY_BAD_PERMISSIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_KEY_BAD_PERMISSIONS@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_9:
	mov	x0, x19
	bl	_close
	b	LBB0_13
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	str	wzr, [x22]
LBB0_12:
Lloh6:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	cbz	x22, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x22]
LBB0_16:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x21
	mov	x4, x23
	bl	_sshkey_load_private_type_fd
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.17:
	cbnz	w22, LBB0_9
; %bb.18:
	ldr	x0, [x21]
	cbz	x0, LBB0_20
; %bb.19:
	mov	x1, x20
	bl	_sshkey_set_filename
	mov	x22, x0
	b	LBB0_9
LBB0_20:
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ; @SSH_ERR_SYSTEM_ERROR
	.comm	_SSH_ERR_KEY_BAD_PERMISSIONS,4,2 ; @SSH_ERR_KEY_BAD_PERMISSIONS
.subsections_via_symbols
