	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_privkey_import_der          ## -- Begin function ec_privkey_import_der
	.p2align	4, 0x90
_ec_privkey_import_der:                 ## @ec_privkey_import_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	testq	%r13, %r13
	jle	LBB0_19
## %bb.1:
	cmpq	$1, %r13
	je	LBB0_19
## %bb.2:
	cmpb	$48, (%rbx)
	jne	LBB0_19
## %bb.3:
	movzbl	1(%rbx), %ecx
	testb	$-128, %cl
	je	LBB0_19
## %bb.4:
	andl	$127, %ecx
	leal	-3(%rcx), %eax
	cmpl	$-2, %eax
	jb	LBB0_19
## %bb.5:
	addq	%rbx, %r13
	addq	$2, %rbx
	movq	%rcx, %rax
	addq	%rbx, %rax
	cmpq	%rax, %r13
	jb	LBB0_19
## %bb.6:
	leal	-1(%rcx), %edx
	movzbl	(%rbx,%rdx), %edx
	xorl	%r14d, %r14d
	movl	$0, %esi
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.7:
	movzbl	(%rbx), %esi
	shll	$8, %esi
LBB0_8:
	movl	%esi, %ecx
	orq	%rdx, %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %r13
	jb	LBB0_19
## %bb.9:
	leaq	3(%rax), %rcx
	cmpq	%rcx, %r13
	jb	LBB0_19
## %bb.10:
	cmpb	$2, (%rax)
	jne	LBB0_19
## %bb.11:
	cmpb	$1, 1(%rax)
	jne	LBB0_19
## %bb.12:
	cmpb	$1, 2(%rax)
	jne	LBB0_19
## %bb.13:
	leaq	2(%rcx), %rsi
	cmpq	%rsi, %r13
	jb	LBB0_19
## %bb.14:
	cmpb	$4, (%rcx)
	jne	LBB0_19
## %bb.15:
	movzbl	1(%rcx), %edx
	cmpq	$32, %rdx
	ja	LBB0_19
## %bb.16:
	leaq	(%rsi,%rdx), %rax
	cmpq	%rax, %r13
	jb	LBB0_19
## %bb.17:
	movq	%r12, %rdi
	subq	%rdx, %rdi
	addq	$32, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_ec_seckey_verify
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %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	_ec_privkey_import_der          ; -- Begin function ec_privkey_import_der
	.p2align	2
_ec_privkey_import_der:                 ; @ec_privkey_import_der
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	cmp	x22, #1
	b.lt	LBB0_21
; %bb.1:
	mov	w0, #0
	cmp	x22, #1
	b.eq	LBB0_22
; %bb.2:
	ldrb	w8, [x21]
	cmp	w8, #48
	b.ne	LBB0_22
; %bb.3:
	ldrb	w8, [x21, #1]
	tbz	w8, #7, LBB0_21
; %bb.4:
	and	x11, x8, #0x7f
	sub	w8, w11, #3
	cmn	w8, #2
	b.lo	LBB0_21
; %bb.5:
	add	x8, x21, x22
	add	x12, x21, #2
	add	x9, x12, x11
	cmp	x8, x9
	b.lo	LBB0_21
; %bb.6:
	sub	w10, w11, #1
	ldrb	w10, [x12, w10, uxtw]
	cmp	w11, #2
	b.lo	LBB0_8
; %bb.7:
	ldrb	w11, [x12]
	lsl	w11, w11, #8
	b	LBB0_9
LBB0_8:
	mov	w11, #0
LBB0_9:
	mov	w11, w11
	orr	x10, x11, x10
	add	x10, x9, x10
	cmp	x8, x10
	b.lo	LBB0_21
; %bb.10:
	add	x10, x9, #3
	cmp	x8, x10
	b.lo	LBB0_21
; %bb.11:
	ldrb	w11, [x9]
	cmp	w11, #2
	b.ne	LBB0_21
; %bb.12:
	ldrb	w11, [x9, #1]
	cmp	w11, #1
	b.ne	LBB0_21
; %bb.13:
	ldrb	w9, [x9, #2]
	cmp	w9, #1
	b.ne	LBB0_21
; %bb.14:
	add	x1, x10, #2
	cmp	x8, x1
	b.lo	LBB0_21
; %bb.15:
	ldrb	w9, [x10]
	cmp	w9, #4
	b.ne	LBB0_21
; %bb.16:
	ldrb	w2, [x10, #1]
	cmp	x2, #32
	b.hi	LBB0_21
; %bb.17:
	add	x9, x1, x2
	cmp	x8, x9
	b.lo	LBB0_21
; %bb.18:
	sub	x8, x19, x2
	add	x0, x8, #32
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	bl	_secp256k1_ec_seckey_verify
	cbz	w0, LBB0_20
; %bb.19:
	mov	w0, #1
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
