	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_raw_to_asn1           ## -- Begin function br_ecdsa_raw_to_asn1
	.p2align	4, 0x90
_br_ecdsa_raw_to_asn1:                  ## @br_ecdsa_raw_to_asn1
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testb	$1, %r15b
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	%r15, %r12
	shrq	%r12
	movq	%r12, %rsi
	callq	_asn1_int_length
	movq	%rax, %r13
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%r12), %rdi
	movq	%rdi, -336(%rbp)                ## 8-byte Spill
	movq	%r12, %rsi
	callq	_asn1_int_length
	xorl	%r14d, %r14d
	cmpq	$125, %r13
	ja	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	cmpq	$125, %rax
	ja	LBB0_13
## %bb.4:
	movb	$48, -320(%rbp)
	leaq	(%rbx,%r13), %rdx
	leal	4(%rdx), %ecx
	movl	$2, %eax
	cmpq	$124, %rdx
	jb	LBB0_6
## %bb.5:
	movb	%cl, -318(%rbp)
	movl	$3, %eax
	movb	$-127, %cl
LBB0_6:
	movb	%cl, -319(%rbp)
	leaq	-320(%rbp), %rcx
	movb	$2, (%rax,%rcx)
	leaq	2(%rax), %r14
	movb	%r13b, 1(%rax,%rcx)
	leaq	(%rax,%rbp), %rdi
	addq	$-318, %rdi                     ## imm = 0xFEC2
	cmpq	%r12, %r13
	jbe	LBB0_8
## %bb.7:
	movb	$0, (%rdi)
	incq	%rdi
	movq	-328(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_8:
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	subq	%r13, %rsi
	movq	%r13, %rdx
LBB0_9:
	callq	_memcpy
	leaq	(%r14,%r13), %rax
	movb	$2, -320(%rbp,%rax)
	addq	%r13, %r14
	addq	$2, %r14
	movb	%bl, -319(%rbp,%rax)
	leaq	(%rax,%rbp), %rdi
	addq	$-318, %rdi                     ## imm = 0xFEC2
	cmpq	%r12, %rbx
	jbe	LBB0_11
## %bb.10:
	movb	$0, (%rdi)
	incq	%rdi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	-328(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	-328(%rbp), %r12                ## 8-byte Reload
	addq	%r12, %r15
	subq	%rbx, %r15
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_12:
	addq	%rbx, %r14
	leaq	-320(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_memcpy
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_raw_to_asn1           ; -- Begin function br_ecdsa_raw_to_asn1
	.p2align	2
_br_ecdsa_raw_to_asn1:                  ; @br_ecdsa_raw_to_asn1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	tbnz	w21, #0, LBB0_5
; %bb.1:
	mov	x19, x0
	lsr	x22, x21, #1
	mov	x1, x22
	bl	_asn1_int_length
	mov	x24, x0
	add	x23, x19, x22
	mov	x0, x23
	mov	x1, x22
	bl	_asn1_int_length
	mov	x25, #0
	cmp	x24, #125
	b.hi	LBB0_14
; %bb.2:
	mov	x20, x0
	cmp	x0, #125
	b.hi	LBB0_14
; %bb.3:
	mov	w8, #48
	strb	w8, [sp, #7]
	add	x10, x20, x24
	add	w9, w10, #4
	mov	w8, #2
	cmp	x10, #124
	b.lo	LBB0_6
; %bb.4:
	strb	w9, [sp, #9]
	mov	w9, #129
	mov	w10, #3
	b	LBB0_7
LBB0_5:
	mov	x25, #0
	b	LBB0_14
LBB0_6:
	mov	w10, #2
LBB0_7:
	strb	w9, [sp, #8]
	add	x9, sp, #7
	add	x11, x9, x10
	strb	w8, [x11]
	add	x25, x10, #2
	strb	w24, [x11, #1]
	add	x0, x9, x25
	cmp	x24, x22
	b.ls	LBB0_9
; %bb.8:
	strb	wzr, [x0], #1
	mov	x1, x19
	mov	x2, x22
	b	LBB0_10
LBB0_9:
	sub	x1, x23, x24
	mov	x2, x24
LBB0_10:
	bl	_memcpy
	add	x8, sp, #7
	add	x9, x25, x24
	add	x10, x8, x9
	mov	w11, #2
	strb	w11, [x10]
	add	x24, x9, #2
	strb	w20, [x10, #1]
	add	x0, x8, x24
	cmp	x20, x22
	b.ls	LBB0_12
; %bb.11:
	strb	wzr, [x0], #1
	mov	x1, x23
	mov	x2, x22
	b	LBB0_13
LBB0_12:
	add	x8, x19, x21
	sub	x1, x8, x20
	mov	x2, x20
LBB0_13:
	bl	_memcpy
	add	x25, x24, x20
	add	x1, sp, #7
	mov	x0, x19
	mov	x2, x25
	bl	_memcpy
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x25
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
