	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_keys_rsa
_match_keys_rsa:                        ## @match_keys_rsa
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movl	%edi, %r14d
	xorl	%r13d, %r13d
	leaq	-104(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RSA_get0_key
	leaq	-96(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RSA_get0_factors
	leaq	-144(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	leaq	-128(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_RSA_get0_crt_params
	cmpq	$0, -104(%rbp)
	je	LBB0_25
## %bb.2:
	cmpq	$0, -96(%rbp)
	je	LBB0_25
## %bb.3:
	cmpq	$0, -88(%rbp)
	je	LBB0_25
## %bb.4:
	movl	%r14d, %edi
	callq	__hx509_get_cert
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_RSA_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.5:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movl	4(%rbx), %edi
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	leaq	-112(%rbp), %rdx
	leaq	-152(%rbp), %rcx
	callq	_decode_RSAPublicKey
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	leaq	-108(%rbp), %rdi
	callq	_heim_int2BN
	movq	%rax, %r12
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_heim_int2BN
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_free_RSAPublicKey
	movq	-104(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, %rbx
	movq	-96(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-136(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rdi
	callq	_BN_dup
	testq	%r12, %r12
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.7:
	testq	%r15, %r15
	je	LBB0_19
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.9:
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.10:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.11:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.12:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.13:
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rcx
	callq	_RSA_set0_key
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.15:
	movq	%r14, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_RSA_set0_factors
	cmpl	$1, %eax
	jne	LBB0_26
## %bb.16:
	movq	%r14, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_RSA_set0_crt_params
	cmpl	$1, %eax
	jne	LBB0_27
## %bb.17:
	movq	%r14, %rdi
	callq	_RSA_check_key
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_RSA_free
	xorl	%r13d, %r13d
	cmpl	$1, %ebx
	sete	%r13b
	jmp	LBB0_25
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_19:
	movq	%r12, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_20:
	movq	%r12, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	-120(%rbp), %rdi                ## 8-byte Reload
LBB0_21:
	callq	_BN_free
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_22:
	callq	_BN_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	callq	_BN_free
LBB0_24:
	movq	%r14, %rdi
	callq	_RSA_free
LBB0_25:
	movl	%r13d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	jmp	LBB0_22
LBB0_27:
	movq	%r12, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_match_keys_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_keys_rsa
_match_keys_rsa:                        ; @match_keys_rsa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldr	x20, [x1]
	cbz	x20, LBB0_22
; %bb.1:
	mov	x19, x0
	add	x3, sp, #48
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_RSA_get0_key
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x20
	bl	_RSA_get0_factors
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_RSA_get0_crt_params
	mov	w0, #0
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_23
; %bb.2:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_23
; %bb.3:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_23
; %bb.4:
	mov	x0, x19
	bl	__hx509_get_cert
	mov	x20, x0
	bl	_RSA_new
	cbz	x0, LBB0_23
; %bb.5:
	mov	x19, x0
	ldp	w8, w0, [x20]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
	add	x20, sp, #56
	add	x2, sp, #56
	mov	x3, sp
	bl	_decode_RSAPublicKey
	cbnz	w0, LBB0_21
; %bb.6:
	orr	x0, x20, #0x4
	bl	_heim_int2BN
	mov	x26, x0
	add	x0, sp, #56
	bl	_heim_int2BN
	mov	x25, x0
	add	x0, sp, #56
	bl	_free_RSAPublicKey
	ldr	x0, [sp, #48]
	bl	_BN_dup
	mov	x27, x0
	ldr	x0, [sp, #40]
	bl	_BN_dup
	mov	x24, x0
	ldr	x0, [sp, #32]
	bl	_BN_dup
	mov	x23, x0
	ldr	x0, [sp, #24]
	bl	_BN_dup
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_BN_dup
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_BN_dup
	mov	x20, x0
	cbz	x26, LBB0_18
; %bb.7:
	cbz	x25, LBB0_18
; %bb.8:
	cbz	x27, LBB0_18
; %bb.9:
	cbz	x24, LBB0_18
; %bb.10:
	cbz	x23, LBB0_18
; %bb.11:
	cbz	x22, LBB0_18
; %bb.12:
	cbz	x21, LBB0_18
; %bb.13:
	cbz	x20, LBB0_18
; %bb.14:
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	bl	_RSA_set0_key
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_RSA_set0_factors
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.16:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_RSA_set0_crt_params
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.17:
	mov	x0, x19
	bl	_RSA_check_key
	mov	x20, x0
	mov	x0, x19
	bl	_RSA_free
	cmp	w20, #1
	cset	w0, eq
	b	LBB0_23
LBB0_18:
	mov	x0, x26
	bl	_BN_free
	mov	x0, x25
	bl	_BN_free
	mov	x0, x27
	bl	_BN_free
LBB0_19:
	mov	x0, x24
	bl	_BN_free
	mov	x0, x23
	bl	_BN_free
LBB0_20:
	mov	x0, x22
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
LBB0_21:
	mov	x0, x19
	bl	_RSA_free
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_match_keys_rsa
.subsections_via_symbols
