	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_in_file                 ## -- Begin function sshkey_in_file
	.p2align	4, 0x90
_sshkey_in_file:                        ## @sshkey_in_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	$0, -88(%rbp)
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_sshkey_equal_public@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_sshkey_equal@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_27
## %bb.4:
	movq	%rax, %r13
	leaq	-56(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.5:
	leaq	-56(%rbp), %r15
	leaq	-88(%rbp), %r12
	movabsq	$34359739393, %rbx              ## imm = 0x800000401
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_sshkey_free
	movq	%r12, %r15
	movq	%r13, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-56(%rbp), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, -96(%rbp)
	movsbl	(%rax), %ecx
	cmpl	$32, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$9, %cl
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$35, %ecx
	ja	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %eax
	btq	%rax, %rbx
	jb	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movq	%r12, %r13
	movq	%r15, %r12
	movq	%rax, %rdi
	leaq	-96(%rbp), %rsi
	callq	_sshkey_read
	testl	%eax, %eax
	jne	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_sshkey_is_cert
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_26
	jmp	LBB0_19
LBB0_13:
	movq	_SSH_ERR_KEY_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
	xorl	%r14d, %r14d
LBB0_20:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_sshkey_free
	movq	%r13, %rdi
	callq	_fclose
	jmp	LBB0_21
LBB0_27:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_18:
	movl	%eax, %r15d
LBB0_19:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ## @SSH_ERR_SYSTEM_ERROR
	.comm	_KEY_UNSPEC,4,2                 ## @KEY_UNSPEC
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_KEY_NOT_FOUND,4,2      ## @SSH_ERR_KEY_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_in_file                 ; -- Begin function sshkey_in_file
	.p2align	2
_sshkey_in_file:                        ; @sshkey_in_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x8, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x9, _sshkey_equal@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sshkey_equal@GOTPAGEOFF]
Lloh2:
	adrp	x10, _sshkey_equal_public@GOTPAGE
Lloh3:
	ldr	x10, [x10, _sshkey_equal_public@GOTPAGEOFF]
	cmp	w2, #0
	csel	x24, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_fopen
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x19
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.2:
	mov	w25, #1
	mov	x26, #1025
	movk	x26, #8, lsl #32
Lloh6:
	adrp	x27, _KEY_UNSPEC@GOTPAGE
Lloh7:
	ldr	x27, [x27, _KEY_UNSPEC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w8, w9
	cmp	w8, #35
	lsl	x8, x25, x8
	and	x8, x8, x26
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x19
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [sp, #24]
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x8, [sp, #16]
	ldrb	w9, [x8]
	cmp	w9, #32
	ccmp	w9, #9, #4, ne
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, #1
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	bl	_sshkey_new
	mov	x22, x0
	cbz	x0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #16
	mov	x0, x22
	bl	_sshkey_read
	cbnz	w0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	blr	x24
	cbnz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_sshkey_is_cert
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8]
	mov	x1, x22
	blr	x24
	cbnz	w0, LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sshkey_free
	b	LBB0_4
LBB0_15:
	mov	x22, #0
Lloh8:
	adrp	x8, _SSH_ERR_KEY_NOT_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_KEY_NOT_FOUND@GOTPAGEOFF]
LBB0_16:
	ldr	w23, [x8]
LBB0_17:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x22
	bl	_sshkey_free
	mov	x0, x19
	bl	_fclose
	b	LBB0_19
LBB0_18:
Lloh10:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	mov	w23, #0
	b	LBB0_17
LBB0_21:
Lloh13:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_16
LBB0_22:
	mov	x23, x0
	b	LBB0_17
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ; @SSH_ERR_SYSTEM_ERROR
	.comm	_KEY_UNSPEC,4,2                 ; @KEY_UNSPEC
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_KEY_NOT_FOUND,4,2      ; @SSH_ERR_KEY_NOT_FOUND
.subsections_via_symbols
