	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b2i_rsa
_b2i_rsa:                               ## @b2i_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_RSA_new
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_19
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.2:
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	callq	_read_ledword
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:
	leal	7(%r13), %esi
	shrl	$3, %esi
	leaq	-48(%rbp), %rdi
	leaq	-104(%rbp), %rdx
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
LBB0_16:
	movq	-104(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_RSA_set0_key
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movq	$0, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_EVP_PKEY_set1_RSA
	testl	%eax, %eax
	je	LBB0_18
## %bb.21:
	movq	%r14, %rdi
	callq	_RSA_free
	movq	-48(%rbp), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_20
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	_PEM_F_B2I_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	movq	%r15, %rdi
	callq	_BN_free
	movq	-104(%rbp), %rdi
	callq	_BN_free
	movq	-88(%rbp), %rdi
	callq	_BN_free
	movq	-80(%rbp), %rdi
	callq	_BN_free
	movq	-72(%rbp), %rdi
	callq	_BN_free
	movq	-64(%rbp), %rdi
	callq	_BN_free
	movq	-56(%rbp), %rdi
	callq	_BN_free
	movq	-96(%rbp), %rdi
	callq	_BN_free
	movq	%r14, %rdi
	callq	_RSA_free
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	xorl	%ebx, %ebx
LBB0_20:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addl	$15, %r13d
	shrl	$4, %r13d
	leaq	-48(%rbp), %rdi
	leaq	-88(%rbp), %rdx
	movl	%r13d, %esi
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rdx
	movl	%r13d, %esi
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movl	%r13d, %esi
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %esi
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movl	%r13d, %esi
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	leaq	-48(%rbp), %rdi
	leaq	-96(%rbp), %rdx
	movl	-108(%rbp), %esi                ## 4-byte Reload
	callq	_read_lebn
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	-88(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_RSA_set0_factors
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movq	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	callq	_RSA_set0_crt_params
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	-96(%rbp), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_F_B2I_RSA,4,2              ## @PEM_F_B2I_RSA
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_b2i_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b2i_rsa
_b2i_rsa:                               ; @b2i_rsa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x8, [x0]
	stp	xzr, x8, [sp, #48]
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	bl	_RSA_new
	mov	x20, x0
	bl	_EVP_PKEY_new
	mov	x19, x0
	mov	x21, #0
	cbz	x20, LBB0_20
; %bb.1:
	cbz	x19, LBB0_20
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	cbz	x0, LBB0_20
; %bb.3:
	add	x0, sp, #56
	bl	_read_ledword
	mov	x1, x0
	mov	x0, x21
	bl	_BN_set_word
	cbz	w0, LBB0_20
; %bb.4:
	add	w8, w24, #7
	lsr	w23, w8, #3
	add	x0, sp, #56
	add	x2, sp, #48
	mov	x1, x23
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.5:
	cbz	w25, LBB0_10
; %bb.6:
	mov	x3, #0
LBB0_7:
	ldr	x1, [sp, #48]
	mov	x0, x20
	mov	x2, x21
	bl	_RSA_set0_key
	cbz	w0, LBB0_20
; %bb.8:
	stp	xzr, xzr, [sp, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_EVP_PKEY_set1_RSA
	cbz	w0, LBB0_19
; %bb.9:
	mov	x0, x20
	bl	_RSA_free
	ldr	x8, [sp, #56]
	str	x8, [x22]
	b	LBB0_21
LBB0_10:
	add	w8, w24, #15
	lsr	w24, w8, #4
	add	x0, sp, #56
	add	x2, sp, #32
	mov	x1, x24
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.11:
	add	x0, sp, #56
	add	x2, sp, #24
	mov	x1, x24
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.12:
	add	x0, sp, #56
	add	x2, sp, #16
	mov	x1, x24
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.13:
	add	x0, sp, #56
	add	x2, sp, #8
	mov	x1, x24
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.14:
	add	x0, sp, #56
	mov	x2, sp
	mov	x1, x24
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.15:
	add	x0, sp, #56
	add	x2, sp, #40
	mov	x1, x23
	bl	_read_lebn
	cbz	w0, LBB0_20
; %bb.16:
	ldp	x2, x1, [sp, #24]
	mov	x0, x20
	bl	_RSA_set0_factors
	cbz	w0, LBB0_20
; %bb.17:
	stp	xzr, xzr, [sp, #24]
	ldp	x2, x1, [sp, #8]
	ldr	x3, [sp]
	mov	x0, x20
	bl	_RSA_set0_crt_params
	cbz	w0, LBB0_20
; %bb.18:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	ldr	x3, [sp, #40]
	b	LBB0_7
LBB0_19:
	mov	x21, #0
LBB0_20:
Lloh0:
	adrp	x8, _PEM_F_B2I_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEM_F_B2I_RSA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	x0, x21
	bl	_BN_free
	ldr	x0, [sp, #48]
	bl	_BN_free
	ldr	x0, [sp, #32]
	bl	_BN_free
	ldr	x0, [sp, #24]
	bl	_BN_free
	ldr	x0, [sp, #16]
	bl	_BN_free
	ldr	x0, [sp, #8]
	bl	_BN_free
	ldr	x0, [sp]
	bl	_BN_free
	ldr	x0, [sp, #40]
	bl	_BN_free
	mov	x0, x20
	bl	_RSA_free
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_F_B2I_RSA,4,2              ; @PEM_F_B2I_RSA
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_b2i_rsa
.subsections_via_symbols
