	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshkey_try_load_public
_sshkey_try_load_public:                ## @sshkey_try_load_public
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.4:
	leaq	-56(%rbp), %r13
	leaq	-64(%rbp), %r15
	movabsq	$34359739393, %r12              ## imm = 0x800000401
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	-56(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	movsbl	(%rdi), %eax
	cmpl	$35, %eax
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	btq	%rax, %r12
	jb	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, -48(%rbp)
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rax
	movzbl	-1(%rax), %ecx
	cmpb	$9, %cl
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$32, %cl
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	%cl, %cl
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	callq	_sshkey_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.16:
	movq	-48(%rbp), %r15
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcspn
	movb	$0, (%r15,%rax)
	testq	%r14, %r14
	je	LBB0_23
## %bb.17:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmovneq	%rax, %rdi
	callq	_strdup
	movq	%rax, (%r14)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_24
## %bb.18:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_19:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_fclose
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%r14d, %r14d
LBB0_24:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_22
	.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
L_.str.1:                               ## @.str.1
	.asciz	"-----BEGIN"

L_.str.2:                               ## @.str.2
	.asciz	"SSH PRIVATE KEY FILE"

L_.str.3:                               ## @.str.3
	.asciz	"\r\n"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.no_dead_strip	_sshkey_try_load_public
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshkey_try_load_public
_sshkey_try_load_public:                ; @sshkey_try_load_public
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.3:
	mov	x19, x0
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x19
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.4:
	mov	w25, #1
	mov	x26, #1025
	movk	x26, #8, lsl #32
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x19
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_18
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x0, [sp, #24]
	str	x0, [sp, #16]
	ldrsb	w8, [x0]
	cmp	w8, #35
	lsl	x8, x25, x8
	and	x8, x8, x26
	ccmp	x8, #0, #4, ls
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x23
	mov	w2, #10
	bl	_strncmp
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	str	x8, [sp, #16]
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x8, #1
	ldurb	w9, [x8, #-1]
	cmp	w9, #9
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w9, #32
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w9, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #16
	mov	x0, x22
	bl	_sshkey_read
	cbnz	w0, LBB0_5
; %bb.15:
	ldr	x22, [sp, #16]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcspn
	strb	wzr, [x22, x0]
	cbz	x20, LBB0_17
; %bb.16:
	ldr	x8, [sp, #16]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x0, x21, x8, eq
	bl	_strdup
	str	x0, [x20]
Lloh8:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w8, wzr, eq
LBB0_17:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	bl	_fclose
	b	LBB0_21
LBB0_18:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	bl	_fclose
Lloh11:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh13:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
LBB0_20:
	ldr	w20, [x8]
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	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
l_.str.1:                               ; @.str.1
	.asciz	"-----BEGIN"

l_.str.2:                               ; @.str.2
	.asciz	"SSH PRIVATE KEY FILE"

l_.str.3:                               ; @.str.3
	.asciz	"\r\n"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.no_dead_strip	_sshkey_try_load_public
.subsections_via_symbols
