	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_encode_ec_raw_der_inner     ## -- Begin function br_encode_ec_raw_der_inner
	.p2align	4, 0x90
_br_encode_ec_raw_der_inner:            ## @br_encode_ec_raw_der_inner
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.4:
	movl	16(%r14), %edi
	callq	_br_get_curve_OID
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	(%r14), %rdi
	callq	_len_of_len
	incl	%eax
	testl	%r15d, %r15d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.6:
	movzbl	(%rbx), %r12d
	addq	$4, %r12
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
LBB0_7:
	movslq	%eax, %rcx
	movq	(%r14), %r15
	testq	%r13, %r13
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	movq	(%r13), %rdi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_len_of_len
	cltq
	movq	(%r13), %rcx
	leaq	(%rax,%rcx), %rbx
	leaq	(%rax,%rcx), %rdi
	addq	$2, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_len_of_len
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cltq
	addq	%rbx, %rax
	addq	$3, %rax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_10:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	%rcx, %r15
	addq	%r12, %r15
	leaq	(%rax,%r15), %r12
	addq	$3, %r12
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	leaq	1(%rbx), %rdi
	movb	$48, (%rbx)
	movl	%r12d, %esi
	callq	_br_asn1_encode_length
	movq	%rax, %r13
	leaq	(%rbx,%rax), %r15
	incq	%r15
	movl	$67174658, 1(%rbx,%rax)         ## imm = 0x4010102
	leaq	(%rbx,%rax), %rdi
	addq	$5, %rdi
	movl	(%r14), %esi
	callq	_br_asn1_encode_length
	leaq	(%rax,%r15), %rbx
	addq	$4, %rbx
	movq	8(%r14), %rsi
	movzbl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	addq	(%r14), %rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movb	$-96, (%rbx)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movb	(%r14), %al
	addb	$2, %al
	movb	%al, 1(%rbx)
	leaq	3(%rbx), %rdi
	movb	$6, 2(%rbx)
	movb	(%r14), %al
	incb	%al
	movzbl	%al, %edx
	movq	%r14, %rsi
	callq	_memcpy
	movzbl	(%r14), %eax
	addq	%rax, %rbx
	addq	$4, %rbx
LBB0_14:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	leaq	1(%rbx), %rdi
	movb	$-95, (%rbx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_br_asn1_encode_length
	leaq	(%rbx,%rax), %r14
	incq	%r14
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	movb	$3, 1(%rbx,%rax)
	movl	(%r15), %esi
	incl	%esi
	callq	_br_asn1_encode_length
	leaq	(%rax,%r14), %rdi
	addq	$2, %rdi
	movb	$0, 1(%rax,%r14)
	movq	8(%r15), %rsi
	movzbl	(%r15), %edx
	callq	_memcpy
LBB0_16:
	leaq	(%r12,%r13), %rax
	incq	%rax
	jmp	LBB0_17
LBB0_11:
	movq	%r12, %rdi
	callq	_len_of_len
	cltq
	addq	%r12, %rax
	incq	%rax
LBB0_17:
	addq	$56, %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_ec_raw_der_inner     ; -- Begin function br_encode_ec_raw_der_inner
	.p2align	2
_br_encode_ec_raw_der_inner:            ; @br_encode_ec_raw_der_inner
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x25, x0
	cbz	w3, LBB0_2
; %bb.1:
	ldr	w0, [x22, #16]
	bl	_br_get_curve_OID
	mov	x20, x0
	cbnz	x0, LBB0_3
	b	LBB0_16
LBB0_2:
	mov	x20, #0
LBB0_3:
	ldr	x0, [x22]
	bl	_len_of_len
	add	w8, w0, #1
	cbz	w21, LBB0_5
; %bb.4:
	ldrb	w9, [x20]
	add	x23, x9, #4
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
	sxtw	x26, w8
	ldr	x27, [x22]
	cbz	x19, LBB0_8
; %bb.7:
	ldr	x0, [x19]
	bl	_len_of_len
	add	w8, w0, #2
	ldr	x9, [x19]
	add	x24, x9, w8, sxtw
	mov	x0, x24
	bl	_len_of_len
	add	w8, w0, #1
	add	x8, x24, w8, sxtw
	b	LBB0_9
LBB0_8:
	mov	x8, #0
	mov	w24, #0
LBB0_9:
	add	x9, x27, x26
	add	x9, x9, x23
	add	x8, x9, x8
	add	x23, x8, #3
	cbz	x25, LBB0_15
; %bb.10:
	mov	w8, #48
	strb	w8, [x25], #1
	mov	x0, x25
	mov	x1, x23
	bl	_br_asn1_encode_length
	mov	x26, x0
	add	x25, x25, x0
	mov	w8, #258
	movk	w8, #1025, lsl #16
	str	w8, [x25], #4
	ldr	w1, [x22]
	mov	x0, x25
	bl	_br_asn1_encode_length
	add	x25, x25, x0
	ldr	x1, [x22, #8]
	ldrb	w2, [x22]
	mov	x0, x25
	bl	_memcpy
	ldr	x8, [x22]
	add	x22, x25, x8
	cbz	w21, LBB0_12
; %bb.11:
	mov	w8, #160
	strb	w8, [x22]
	ldrb	w8, [x20]
	add	w8, w8, #2
	strb	w8, [x22, #1]
	add	x21, x22, #3
	mov	w8, #6
	strb	w8, [x22, #2]
	ldrb	w8, [x20]
	add	w8, w8, #1
	and	w2, w8, #0xff
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
	ldrb	w8, [x20]
	add	x8, x8, x21
	add	x22, x8, #1
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	mov	w8, #161
	strb	w8, [x22], #1
	mov	x0, x22
	mov	x1, x24
	bl	_br_asn1_encode_length
	add	x20, x22, x0
	mov	w8, #3
	strb	w8, [x20], #1
	ldr	w8, [x19]
	add	w1, w8, #1
	mov	x0, x20
	bl	_br_asn1_encode_length
	add	x0, x20, x0
	strb	wzr, [x0], #1
	ldr	x1, [x19, #8]
	ldrb	w2, [x19]
	bl	_memcpy
LBB0_14:
	add	x8, x23, x26
	add	x0, x8, #1
	b	LBB0_16
LBB0_15:
	mov	x0, x23
	bl	_len_of_len
	add	w8, w0, #1
	add	x0, x23, w8, sxtw
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
