	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rsa
_write_rsa:                             ## @write_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_RSA_size
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_RSA_bits
	movl	%eax, %r15d
	leaq	-104(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_RSA_get0_key
	movq	-88(%rbp), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_write_lebn
	movq	-104(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_write_lebn
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	addl	$15, %r15d
	sarl	$4, %r15d
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RSA_get0_factors
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_RSA_get0_crt_params
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_lebn
	movq	-72(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_lebn
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_lebn
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_lebn
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_lebn
	movq	-96(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_write_lebn
LBB0_2:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rsa
_write_rsa:                             ; @write_rsa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_RSA_size
	mov	x20, x0
	mov	x0, x21
	bl	_RSA_bits
	mov	x22, x0
	add	x1, sp, #56
	add	x2, sp, #40
	add	x3, sp, #48
	mov	x0, x21
	bl	_RSA_get0_key
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	w2, #4
	bl	_write_lebn
	ldr	x1, [sp, #56]
	mov	x0, x19
	mov	x2, x20
	bl	_write_lebn
	cbnz	w23, LBB0_2
; %bb.1:
	add	w8, w22, #15
	asr	w22, w8, #4
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x21
	bl	_RSA_get0_factors
	add	x1, sp, #8
	mov	x2, sp
	add	x3, sp, #16
	mov	x0, x21
	bl	_RSA_get0_crt_params
	ldr	x1, [sp, #32]
	mov	x0, x19
	mov	x2, x22
	bl	_write_lebn
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x22
	bl	_write_lebn
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x22
	bl	_write_lebn
	ldr	x1, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	_write_lebn
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	x2, x22
	bl	_write_lebn
	ldr	x1, [sp, #48]
	mov	x0, x19
	mov	x2, x20
	bl	_write_lebn
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_rsa
.subsections_via_symbols
