	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_encode_rsa_raw_der          ## -- Begin function br_encode_rsa_raw_der
	.p2align	4, 0x90
_br_encode_rsa_raw_der:                 ## @br_encode_rsa_raw_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_br_asn1_uint_prepare
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, %r15
	movq	16(%r13), %rdi
	movq	24(%r13), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_uint_prepare
	movq	%rax, %r12
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	movq	24(%rbx), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	movq	40(%rbx), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %rdi
	movq	56(%rbx), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	64(%rbx), %rdi
	movq	72(%rbx), %rsi
	callq	_br_asn1_uint_prepare
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_len_of_len
	movq	%rax, %rbx
	addq	%r13, %rbx
	addq	%r15, %rbx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_len_of_len
	movq	%rax, %r15
	addq	%rbx, %r15
	addq	%r14, %r15
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_len_of_len
	movq	%rax, %rbx
	addq	%r15, %rbx
	addq	%r12, %rbx
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_len_of_len
	movq	%rax, %r15
	addq	%rbx, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %r15
	callq	_len_of_len
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %rbx
	callq	_len_of_len
	movq	%rax, %r15
	addq	%rbx, %r15
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %r15
	callq	_len_of_len
	movq	%rax, %r12
	addq	%r15, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %r12
	movq	-112(%rbp), %r13                ## 8-byte Reload
	callq	_len_of_len
	movq	%rax, %rbx
	addq	%r12, %rbx
	addq	%r13, %rbx
	movq	%r13, %rdi
	callq	_len_of_len
	leaq	(%rax,%rbx), %r15
	addq	$9, %r15
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	1(%rbx), %rdi
	movb	$48, (%rbx)
	movq	%r15, %rsi
	callq	_br_asn1_encode_length
	movq	%rax, %r12
	leaq	(%rbx,%rax), %r14
	incq	%r14
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %r14
	addq	%rbx, %r14
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %r14
	addq	%rbx, %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %r14
	addq	%rbx, %r14
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_asn1_encode_uint
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_br_asn1_encode_uint
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	callq	_len_of_len
	movq	%rax, %r12
LBB0_3:
	leaq	(%r15,%r12), %rax
	incq	%rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_encode_rsa_raw_der          ; -- Begin function br_encode_rsa_raw_der
	.p2align	2
_br_encode_rsa_raw_der:                 ; @br_encode_rsa_raw_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, #0
	mov	x1, #0
	bl	_br_asn1_uint_prepare
	mov	x24, x0
	ldp	x0, x1, [x23]
	bl	_br_asn1_uint_prepare
	mov	x25, x0
	ldp	x0, x1, [x23, #16]
	bl	_br_asn1_uint_prepare
	mov	x26, x0
	mov	x0, x22
	mov	x1, x21
	bl	_br_asn1_uint_prepare
	mov	x21, x0
	ldp	x0, x1, [x20]
	bl	_br_asn1_uint_prepare
	mov	x23, x0
	ldp	x0, x1, [x20, #16]
	bl	_br_asn1_uint_prepare
	mov	x19, x0
	ldp	x0, x1, [x20, #32]
	bl	_br_asn1_uint_prepare
	mov	x22, x0
	ldp	x0, x1, [x20, #48]
	bl	_br_asn1_uint_prepare
	mov	x28, x0
	ldp	x0, x1, [x20, #64]
	bl	_br_asn1_uint_prepare
	mov	x27, x0
	mov	x0, x24
	bl	_len_of_len
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	add	x8, x24, x0
	mov	x24, x25
	mov	x25, x21
	add	x20, x8, x24
	mov	x0, x24
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x26
	str	x26, [sp]                       ; 8-byte Folded Spill
	mov	x0, x26
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x21
	mov	x0, x21
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x23
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x23
	mov	x23, x19
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x23
	mov	x0, x23
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x22
	mov	x0, x22
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x28
	mov	x0, x28
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, x27
	mov	x0, x27
	bl	_len_of_len
	add	x8, x20, x0
	add	x20, x8, #9
	cbz	x19, LBB0_2
; %bb.1:
	mov	w8, #48
	strb	w8, [x19], #1
	mov	x0, x19
	mov	x1, x20
	bl	_br_asn1_encode_length
	mov	x21, x0
	add	x19, x19, x0
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	mov	x1, x24
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	mov	x1, x25
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	mov	x1, x23
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	mov	x1, x22
	bl	_br_asn1_encode_uint
	add	x19, x19, w0, sxtw
	mov	x0, x19
	mov	x1, x28
	bl	_br_asn1_encode_uint
	add	x0, x19, w0, sxtw
	mov	x1, x27
	bl	_br_asn1_encode_uint
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_len_of_len
	mov	x21, x0
LBB0_3:
	add	x8, x20, x21
	add	x0, x8, #1
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
