	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecdsa_sig_parse
_secp256k1_ecdsa_sig_parse:             ## @secp256k1_ecdsa_sig_parse
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	leaq	1(%rdx), %rax
	movq	%rax, -40(%rbp)
	cmpb	$48, (%rdx)
	jne	LBB0_7
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	addq	%rcx, %rbx
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_der_read_len
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rax
	subq	-40(%rbp), %rax
	cmpq	%rax, -48(%rbp)
	jne	LBB0_7
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_secp256k1_der_parse_integer
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_secp256k1_der_parse_integer
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	cmpq	%rbx, -40(%rbp)
	sete	%r14b
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_ecdsa_sig_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecdsa_sig_parse
_secp256k1_ecdsa_sig_parse:             ; @secp256k1_ecdsa_sig_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x3, LBB0_7
; %bb.1:
	mov	x8, x2
	ldrb	w9, [x8], #1
	str	x8, [sp, #8]
	cmp	w9, #48
	b.ne	LBB0_7
; %bb.2:
	mov	x19, x1
	mov	x21, x0
	add	x20, x2, x3
	mov	x0, sp
	add	x1, sp, #8
	mov	x2, x20
	bl	_secp256k1_der_read_len
	cbz	x0, LBB0_8
; %bb.3:
	ldp	x8, x9, [sp]
	sub	x9, x20, x9
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_secp256k1_der_parse_integer
	cbz	w0, LBB0_8
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_secp256k1_der_parse_integer
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [sp, #8]
	cmp	x8, x20
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_secp256k1_ecdsa_sig_parse
.subsections_via_symbols
