	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecdsa_signature_parse_der_lax  ## -- Begin function ecdsa_signature_parse_der_lax
	.p2align	4, 0x90
_ecdsa_signature_parse_der_lax:         ## @ecdsa_signature_parse_der_lax
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	leaq	-112(%rbp), %r13
	movq	%r13, %rdx
	callq	_secp256k1_ecdsa_signature_parse_compact
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	cmpq	$1, %rbx
	je	LBB0_15
## %bb.2:
	cmpb	$48, (%r12)
	jne	LBB0_15
## %bb.3:
	movzbl	1(%r12), %ecx
	movl	$2, %eax
	testb	$-128, %cl
	je	LBB0_10
## %bb.4:
	leaq	-128(%rcx), %rax
	leaq	-2(%rbx), %rdx
	cmpq	%rdx, %rax
	ja	LBB0_15
## %bb.9:
	addq	$-126, %rcx
	movq	%rcx, %rax
LBB0_10:
	cmpq	%rbx, %rax
	je	LBB0_15
## %bb.12:
	cmpb	$2, (%r12,%rax)
	jne	LBB0_15
## %bb.13:
	leaq	1(%rax), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_15
## %bb.18:
	leaq	2(%rax), %rsi
	movzbl	1(%r12,%rax), %edx
	testb	$-128, %dl
	jne	LBB0_21
LBB0_19:
	movq	%rbx, %rax
	subq	%rsi, %rax
	cmpq	%rax, %rdx
	ja	LBB0_15
	jmp	LBB0_29
LBB0_21:
	leaq	-128(%rdx), %r8
	movq	%rbx, %rcx
	subq	%rsi, %rcx
	cmpq	%rcx, %r8
	ja	LBB0_15
## %bb.23:
	testq	%r8, %r8
	je	LBB0_28
## %bb.24:
	leaq	(%rax,%rdx), %r9
	addq	$-126, %r9
	leaq	(%r12,%rsi), %rax
	xorl	%edi, %edi
	movl	%edx, %ecx
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax,%rdi)
	jne	LBB0_35
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	addb	$3, %cl
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_25
## %bb.27:
	movq	%r9, %rsi
LBB0_28:
	xorl	%edx, %edx
LBB0_29:
	leaq	(%rsi,%rdx), %r10
	cmpq	%rbx, %r10
	je	LBB0_15
## %bb.31:
	cmpb	$2, (%r12,%r10)
	jne	LBB0_15
## %bb.32:
	leaq	1(%r10), %rax
	cmpq	%rbx, %rax
	jne	LBB0_38
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_82
## %bb.17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	subq	%rdi, %rdx
	leaq	-128(%rdx), %r8
	xorl	%eax, %eax
	cmpq	$7, %r8
	ja	LBB0_16
## %bb.36:
	addq	%rdi, %rsi
	addq	$-129, %rdx
	cmpq	$3, %rdx
	jae	LBB0_42
## %bb.37:
	xorl	%edx, %edx
	movq	%rsi, %rax
	jmp	LBB0_44
LBB0_38:
	leaq	2(%r10), %r11
	movzbl	1(%r12,%r10), %r9d
	testb	$-128, %r9b
	jne	LBB0_40
LBB0_39:
	subq	%r11, %rbx
	movl	$0, %eax
	cmpq	%rbx, %r9
	ja	LBB0_16
	jmp	LBB0_54
LBB0_40:
	leaq	-128(%r9), %rax
	movq	%rbx, %rcx
	subq	%r11, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_15
## %bb.48:
	testq	%rax, %rax
	je	LBB0_53
## %bb.49:
	leaq	(%r10,%r9), %rcx
	addq	$-126, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%r9, %rcx
	leaq	(%r12,%r11), %r9
	xorl	%edi, %edi
	movq	%rcx, %r8
                                        ## kill: def $cl killed $cl killed $rcx
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r9,%rdi)
	jne	LBB0_73
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=1
	addb	$3, %cl
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_50
## %bb.52:
	movq	-120(%rbp), %r11                ## 8-byte Reload
LBB0_53:
	xorl	%r9d, %r9d
LBB0_54:
	testq	%rdx, %rdx
	movq	%r11, -120(%rbp)                ## 8-byte Spill
	je	LBB0_58
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r12,%rsi)
	jne	LBB0_67
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	incq	%rsi
	decq	%rdx
	jne	LBB0_55
## %bb.57:
	movq	%r9, %rbx
	movq	%r10, %rsi
	jmp	LBB0_59
LBB0_42:
	movq	%r8, %r9
	andq	$-4, %r9
	xorl	%edx, %edx
	movq	%rsi, %rax
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rax), %edi
	shlq	$16, %rdx
	shlq	$8, %rdi
	orq	%rdx, %rdi
	movzbl	1(%r12,%rax), %edx
	orq	%rdi, %rdx
	movzbl	2(%r12,%rax), %edi
	shlq	$16, %rdx
	shlq	$8, %rdi
	orq	%rdx, %rdi
	movzbl	3(%r12,%rax), %edx
	orq	%rdi, %rdx
	addq	$4, %rax
	addq	$-4, %r9
	jne	LBB0_43
LBB0_44:
	testb	$3, %r8b
	je	LBB0_47
## %bb.45:
	addq	%r12, %rax
	movzbl	%cl, %r9d
	andl	$3, %r9d
	xorl	%edi, %edi
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	shlq	$8, %rdx
	movzbl	(%rax,%rdi), %ecx
	orq	%rcx, %rdx
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_46
LBB0_47:
	addq	%r8, %rsi
	jmp	LBB0_19
LBB0_58:
	movq	%r9, %rbx
LBB0_59:
	xorl	%edx, %edx
LBB0_60:
	movq	%r13, %rdi
	subq	%rdx, %rdi
	addq	$32, %rdi
	addq	%r12, %rsi
	callq	_memcpy
	movb	$1, %al
	movl	%eax, -124(%rbp)                ## 4-byte Spill
LBB0_61:
	testq	%rbx, %rbx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_66
## %bb.62:
	leaq	(%rbx,%rcx), %rax
LBB0_63:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r12,%rcx)
	jne	LBB0_69
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=1
	incq	%rcx
	decq	%rbx
	jne	LBB0_63
## %bb.65:
	movq	%rax, %rcx
LBB0_66:
	xorl	%ebx, %ebx
LBB0_70:
	subq	%rbx, %r13
	addq	$64, %r13
	addq	%rcx, %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	cmpb	$0, -124(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_72
## %bb.71:
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_ecdsa_signature_parse_compact
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_16
	jmp	LBB0_72
LBB0_67:
	movq	%r9, %rbx
	cmpq	$32, %rdx
	jbe	LBB0_60
## %bb.68:
	movl	$0, -124(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_61
LBB0_69:
	cmpq	$32, %rbx
	jbe	LBB0_70
LBB0_72:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_ecdsa_signature_parse_compact
	movl	$1, %eax
	jmp	LBB0_16
LBB0_73:
	movq	%r8, %r9
	subq	%rdi, %r9
	leaq	-128(%r9), %r8
	xorl	%eax, %eax
	cmpq	$7, %r8
	ja	LBB0_16
## %bb.74:
	addq	%rdi, %r11
	addq	$-129, %r9
	cmpq	$3, %r9
	movq	%r11, -120(%rbp)                ## 8-byte Spill
	jae	LBB0_76
## %bb.75:
	xorl	%eax, %eax
	jmp	LBB0_78
LBB0_76:
	movq	%r8, %r9
	andq	$-4, %r9
	xorl	%eax, %eax
LBB0_77:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r11), %edi
	shlq	$16, %rax
	shlq	$8, %rdi
	orq	%rax, %rdi
	movzbl	1(%r12,%r11), %eax
	orq	%rdi, %rax
	movzbl	2(%r12,%r11), %edi
	shlq	$16, %rax
	shlq	$8, %rdi
	orq	%rax, %rdi
	movzbl	3(%r12,%r11), %eax
	orq	%rdi, %rax
	addq	$4, %r11
	addq	$-4, %r9
	jne	LBB0_77
LBB0_78:
	testb	$3, %r8b
	movq	%rax, %r9
	je	LBB0_81
## %bb.79:
	addq	%r12, %r11
	movzbl	%cl, %ecx
	andl	$3, %ecx
	xorl	%edi, %edi
LBB0_80:                                ## =>This Inner Loop Header: Depth=1
	shlq	$8, %r9
	movzbl	(%r11,%rdi), %eax
	orq	%rax, %r9
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_80
LBB0_81:
	movq	-120(%rbp), %r11                ## 8-byte Reload
	addq	%r8, %r11
	jmp	LBB0_39
LBB0_82:
	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	_ecdsa_signature_parse_der_lax  ; -- Begin function ecdsa_signature_parse_der_lax
	.p2align	2
_ecdsa_signature_parse_der_lax:         ; @ecdsa_signature_parse_der_lax
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	mov	x2, sp
	bl	_secp256k1_ecdsa_signature_parse_compact
	mov	w0, #0
	cbz	x22, LBB0_29
; %bb.1:
	cmp	x22, #1
	b.eq	LBB0_29
; %bb.2:
	ldrb	w8, [x21]
	cmp	w8, #48
	b.ne	LBB0_29
; %bb.3:
	ldrb	w8, [x21, #1]
	tbnz	w8, #7, LBB0_5
; %bb.4:
	mov	w9, #2
	cmp	x9, x22
	b.ne	LBB0_7
	b	LBB0_28
LBB0_5:
	sub	x9, x8, #128
	sub	x10, x22, #2
	cmp	x9, x10
	b.hi	LBB0_28
; %bb.6:
	sub	x9, x8, #126
	cmp	x9, x22
	b.eq	LBB0_28
LBB0_7:
	ldrb	w8, [x21, x9]
	cmp	w8, #2
	b.ne	LBB0_28
; %bb.8:
	add	x10, x9, #1
	cmp	x10, x22
	b.eq	LBB0_28
; %bb.9:
	add	x8, x9, #2
	ldrb	w2, [x21, x10]
	tbnz	w2, #7, LBB0_11
LBB0_10:
	sub	x9, x22, x8
	cmp	x2, x9
	b.hi	LBB0_28
	b	LBB0_18
LBB0_11:
	sub	x10, x2, #128
	sub	x11, x22, x8
	cmp	x10, x11
	b.hi	LBB0_28
; %bb.12:
	cbz	x10, LBB0_17
; %bb.13:
	add	x10, x9, x2
	sub	x10, x10, #126
	add	x11, x21, x8
	mov	w12, #128
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x11, x12
	ldurb	w13, [x13, #-128]
	cbnz	w13, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x12, x12, #1
	cmp	x2, x12
	b.ne	LBB0_14
; %bb.16:
	mov	x2, #0
	mov	x8, x10
	b	LBB0_18
LBB0_17:
	mov	x2, #0
LBB0_18:
	add	x9, x8, x2
	cmp	x9, x22
	b.eq	LBB0_28
; %bb.19:
	ldrb	w10, [x21, x9]
	cmp	w10, #2
	b.ne	LBB0_28
; %bb.20:
	add	x10, x9, #1
	cmp	x10, x22
	b.eq	LBB0_28
; %bb.21:
	add	x24, x9, #2
	ldrb	w23, [x21, x10]
	tbnz	w23, #7, LBB0_27
LBB0_22:
	sub	x10, x22, x24
	cmp	x23, x10
	b.hi	LBB0_28
	b	LBB0_37
LBB0_23:
	sub	x10, x2, x12
	cmp	x10, #7
	b.hi	LBB0_28
; %bb.24:
	mov	x11, #0
	mov	x2, #0
	add	x9, x9, x12
	sub	x9, x9, #126
	add	x8, x21, x8
	add	x8, x8, x12
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x8, x11
	ldurb	w12, [x12, #-128]
	bfi	x12, x2, #8, #56
	mov	x2, x12
	add	x11, x11, #1
	cmp	x10, x11
	b.ne	LBB0_25
; %bb.26:
	add	x8, x10, x9
	b	LBB0_10
LBB0_27:
	sub	x10, x23, #128
	sub	x11, x22, x24
	cmp	x10, x11
	b.ls	LBB0_31
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldur	x8, [x29, #-56]
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_58
; %bb.30:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_31:
	cbz	x10, LBB0_36
; %bb.32:
	add	x10, x9, x23
	sub	x10, x10, #126
	add	x11, x21, x24
	mov	w13, #128
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x11, x13
	ldurb	w12, [x12, #-128]
	cbnz	w12, LBB0_54
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	add	x13, x13, #1
	cmp	x23, x13
	b.ne	LBB0_33
; %bb.35:
	mov	x23, #0
	mov	x24, x10
	b	LBB0_37
LBB0_36:
	mov	x23, #0
LBB0_37:
	cbz	x2, LBB0_43
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x21, x8]
	cbnz	w10, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	add	x8, x8, #1
	subs	x2, x2, #1
	b.ne	LBB0_38
; %bb.40:
	mov	x8, x9
	b	LBB0_43
LBB0_41:
	cmp	x2, #32
	b.ls	LBB0_43
; %bb.42:
	mov	w22, #0
	b	LBB0_44
LBB0_43:
	mov	x9, sp
	sub	x9, x9, x2
	add	x0, x9, #32
	add	x1, x21, x8
	bl	_memcpy
	mov	w22, #1
LBB0_44:
	cbz	x23, LBB0_50
; %bb.45:
	add	x8, x23, x24
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x24]
	cbnz	w9, LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=1
	add	x24, x24, #1
	subs	x23, x23, #1
	b.ne	LBB0_46
; %bb.48:
	mov	x24, x8
	b	LBB0_50
LBB0_49:
	cmp	x23, #32
	b.hi	LBB0_52
LBB0_50:
	mov	x8, sp
	sub	x8, x8, x23
	add	x0, x8, #64
	add	x1, x21, x24
	mov	x2, x23
	bl	_memcpy
	cbz	w22, LBB0_52
; %bb.51:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_secp256k1_ecdsa_signature_parse_compact
	cbnz	w0, LBB0_53
LBB0_52:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_secp256k1_ecdsa_signature_parse_compact
LBB0_53:
	mov	w0, #1
	b	LBB0_29
LBB0_54:
	sub	x10, x23, x13
	cmp	x10, #7
	b.hi	LBB0_28
; %bb.55:
	mov	x11, #0
	mov	x23, #0
	add	x12, x9, x13
	sub	x12, x12, #126
	add	x14, x21, x24
	add	x13, x14, x13
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x13, x11
	ldurb	w14, [x14, #-128]
	bfi	x14, x23, #8, #56
	mov	x23, x14
	add	x11, x11, #1
	cmp	x10, x11
	b.ne	LBB0_56
; %bb.57:
	add	x24, x10, x12
	b	LBB0_22
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
