	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshauthopt_from_cert           ## -- Begin function sshauthopt_from_cert
	.p2align	4, 0x90
_sshauthopt_from_cert:                  ## @sshauthopt_from_cert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_sshkey_type_is_cert
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	(%rax), %rax
	movq	_SSH2_CERT_TYPE_USER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	callq	_sshauthopt_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movq	_OPTIONS_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_cert_option_list
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	_OPTIONS_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_cert_option_list
	cmpl	$-1, %eax
	jne	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_sshauthopt_free
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH2_CERT_TYPE_USER,8,3        ## @SSH2_CERT_TYPE_USER
	.comm	_OPTIONS_CRITICAL,4,2           ## @OPTIONS_CRITICAL
	.comm	_OPTIONS_EXTENSIONS,4,2         ## @OPTIONS_EXTENSIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshauthopt_from_cert           ; -- Begin function sshauthopt_from_cert
	.p2align	2
_sshauthopt_from_cert:                  ; @sshauthopt_from_cert
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_sshkey_type_is_cert
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SSH2_CERT_TYPE_USER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSH2_CERT_TYPE_USER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	bl	_sshauthopt_new
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
Lloh3:
	adrp	x8, _OPTIONS_CRITICAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPTIONS_CRITICAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_cert_option_list
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
Lloh6:
	adrp	x8, _OPTIONS_EXTENSIONS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPTIONS_EXTENSIONS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_cert_option_list
	cmn	w0, #1
	b.ne	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_sshauthopt_free
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH2_CERT_TYPE_USER,8,3        ; @SSH2_CERT_TYPE_USER
	.comm	_OPTIONS_CRITICAL,4,2           ; @OPTIONS_CRITICAL
	.comm	_OPTIONS_EXTENSIONS,4,2         ; @OPTIONS_EXTENSIONS
.subsections_via_symbols
