	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_encode_rsa_pkcs8_der        ## -- Begin function br_encode_rsa_pkcs8_der
	.p2align	4, 0x90
_br_encode_rsa_pkcs8_der:               ## @br_encode_rsa_pkcs8_der
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdi, %r14
	xorl	%edi, %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	_br_encode_rsa_raw_der
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_len_of_len
	cltq
	leaq	(%r12,%rax), %rbx
	addq	$19, %rbx
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	leaq	1(%r14), %rdi
	movb	$48, (%r14)
	movq	%rbx, %rsi
	callq	_br_asn1_encode_length
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax), %r13
	incq	%r13
	leaq	_br_encode_rsa_pkcs8_der.PK8_HEAD(%rip), %rsi
	movq	%r13, %rdi
	movl	$19, %edx
	callq	_memcpy
	leaq	(%r14,%r15), %rdi
	addq	$20, %rdi
	movq	%r12, %rsi
	callq	_br_asn1_encode_length
	leaq	(%rax,%r13), %rdi
	addq	$19, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_br_encode_rsa_raw_der
	incq	%r15
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_len_of_len
	incl	%eax
	movslq	%eax, %r15
LBB0_3:
	addq	%rbx, %r15
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @br_encode_rsa_pkcs8_der.PK8_HEAD
_br_encode_rsa_pkcs8_der.PK8_HEAD:
	.ascii	"\002\001\0000\r\006\t*\206H\206\367\r\001\001\001\005\000\004"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_encode_rsa_pkcs8_der        ; -- Begin function br_encode_rsa_pkcs8_der
	.p2align	2
_br_encode_rsa_pkcs8_der:               ; @br_encode_rsa_pkcs8_der
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x25, x0
	mov	x0, #0
	bl	_br_encode_rsa_raw_der
	mov	x24, x0
	bl	_len_of_len
	add	x8, x24, w0, sxtw
	add	x20, x8, #19
	cbz	x25, LBB0_2
; %bb.1:
	mov	w8, #48
	strb	w8, [x25], #1
	mov	x0, x25
	mov	x1, x20
	bl	_br_asn1_encode_length
	mov	x26, x0
	add	x25, x25, x0
Lloh0:
	adrp	x1, _br_encode_rsa_pkcs8_der.PK8_HEAD@PAGE
Lloh1:
	add	x1, x1, _br_encode_rsa_pkcs8_der.PK8_HEAD@PAGEOFF
	mov	x0, x25
	mov	w2, #19
	bl	_memcpy
	add	x25, x25, #19
	mov	x0, x25
	mov	x1, x24
	bl	_br_asn1_encode_length
	add	x0, x25, x0
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_br_encode_rsa_raw_der
	add	x8, x26, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_len_of_len
	add	w8, w0, #1
	sxtw	x8, w8
LBB0_3:
	add	x0, x8, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_br_encode_rsa_pkcs8_der.PK8_HEAD:      ; @br_encode_rsa_pkcs8_der.PK8_HEAD
	.ascii	"\002\001\0000\r\006\t*\206H\206\367\r\001\001\001\005\000\004"

.subsections_via_symbols
