	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_file               ## -- Begin function sshkey_load_file
	.p2align	4, 0x90
_sshkey_load_file:                      ## @sshkey_load_file
	.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
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-4168(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-4168(%rbp), %edx
	movq	_S_IFSOCK@GOTPCREL(%rip), %rcx
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_S_IFIFO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%edx, %eax
	jne	LBB0_5
## %bb.3:
	movq	-4160(%rbp), %rax
	movq	_MAX_KEY_FILE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movl	%edx, -4148(%rbp)               ## 4-byte Spill
	movq	_read@GOTPCREL(%rip), %r13
	leaq	-4144(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_atomicio
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_sshbuf_put
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_sshbuf_len
	movq	_MAX_KEY_FILE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.13:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_1:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.14:
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_S_IFSOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_S_IFIFO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, -4148(%rbp)               ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.15:
	movq	-4160(%rbp), %rbx
	movq	%r14, %rdi
	callq	_sshbuf_len
	cmpq	%rax, %rbx
	jne	LBB0_16
LBB0_21:
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_explicit_bzero
	jmp	LBB0_18
LBB0_10:
	movl	%eax, %ebx
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_explicit_bzero
	jmp	LBB0_11
LBB0_8:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_explicit_bzero
	testl	%ebx, %ebx
	je	LBB0_18
LBB0_11:
	movq	%r14, %rdi
	callq	_sshbuf_reset
	jmp	LBB0_19
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	movl	%ebx, %eax
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_SSH_ERR_FILE_CHANGED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ## @SSH_ERR_SYSTEM_ERROR
	.comm	_S_IFSOCK,4,2                   ## @S_IFSOCK
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.comm	_S_IFIFO,4,2                    ## @S_IFIFO
	.comm	_MAX_KEY_FILE_SIZE,8,3          ## @MAX_KEY_FILE_SIZE
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_read,4,2                       ## @read
	.comm	_errno,8,3                      ## @errno
	.comm	_EPIPE,8,3                      ## @EPIPE
	.comm	_SSH_ERR_FILE_CHANGED,4,2       ## @SSH_ERR_FILE_CHANGED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_file               ; -- Begin function sshkey_load_file
	.p2align	2
_sshkey_load_file:                      ; @sshkey_load_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x1, sp
	bl	_fstat
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	w22, [sp]
Lloh5:
	adrp	x23, _S_IFSOCK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _S_IFSOCK@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _S_IFCHR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _S_IFCHR@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh9:
	adrp	x25, _S_IFIFO@GOTPAGE
Lloh10:
	ldr	x25, [x25, _S_IFIFO@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh11:
	adrp	x27, _MAX_KEY_FILE_SIZE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MAX_KEY_FILE_SIZE@GOTPAGEOFF]
	tst	w8, w22
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_4:
Lloh16:
	adrp	x28, _read@GOTPAGE
Lloh17:
	ldr	x28, [x28, _read@GOTPAGEOFF]
Lloh18:
	adrp	x26, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh19:
	ldr	x26, [x26, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	add	x2, sp, #16
	mov	x1, x20
	mov	w3, #4096
	bl	_atomicio
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	bl	_sshbuf_put
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_sshbuf_len
	ldr	x8, [x27]
	cmp	x0, x8
	b.le	LBB0_5
	b	LBB0_15
LBB0_8:
Lloh20:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_9:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _EPIPE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EPIPE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	tst	w8, w22
	b.ne	LBB0_12
; %bb.11:
	ldr	x20, [sp, #8]
	mov	x0, x19
	bl	_sshbuf_len
	cmp	x20, x0
	b.ne	LBB0_19
LBB0_12:
	add	x0, sp, #16
	mov	w1, #4096
	bl	_explicit_bzero
	mov	w21, #0
	b	LBB0_17
LBB0_13:
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #4096
	bl	_explicit_bzero
	b	LBB0_16
LBB0_14:
Lloh29:
	adrp	x26, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh30:
	ldr	x26, [x26, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w21, [x26]
	add	x0, sp, #16
	mov	w1, #4096
	bl	_explicit_bzero
	cbz	w21, LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_sshbuf_reset
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x21
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh34:
	adrp	x26, _SSH_ERR_FILE_CHANGED@GOTPAGE
Lloh35:
	ldr	x26, [x26, _SSH_ERR_FILE_CHANGED@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ; @SSH_ERR_SYSTEM_ERROR
	.comm	_S_IFSOCK,4,2                   ; @S_IFSOCK
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.comm	_S_IFIFO,4,2                    ; @S_IFIFO
	.comm	_MAX_KEY_FILE_SIZE,8,3          ; @MAX_KEY_FILE_SIZE
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_read,4,2                       ; @read
	.comm	_errno,8,3                      ; @errno
	.comm	_EPIPE,8,3                      ; @EPIPE
	.comm	_SSH_ERR_FILE_CHANGED,4,2       ; @SSH_ERR_FILE_CHANGED
.subsections_via_symbols
