	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_pub_encode
_rsa_pub_encode:                        ## @rsa_pub_encode
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rsa_param_encode
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_i2d_RSAPublicKey
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movl	-44(%rbp), %edx
	movq	-56(%rbp), %rcx
	movq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %r9d
	callq	_X509_PUBKEY_set0_param
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	xorl	%r15d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rsa_pub_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_pub_encode
_rsa_pub_encode:                        ; @rsa_pub_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	_rsa_param_encode
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x20, #8]
	add	x1, sp, #24
	bl	_i2d_RSAPublicKey
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x1, x0
	ldr	w2, [sp, #12]
	ldp	x3, x4, [sp, #16]
	mov	x0, x19
	mov	x5, x21
	bl	_X509_PUBKEY_set0_param
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #24]
	bl	_OPENSSL_free
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rsa_pub_encode
.subsections_via_symbols
