	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_fixed_wnaf_small          ## -- Begin function test_fixed_wnaf_small
	.p2align	4, 0x90
_test_fixed_wnaf_small:                 ## @test_fixed_wnaf_small
	.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	%rbx
	subq	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-1056(%rbp), %r14
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdi
	callq	___bzero
	leaq	-1092(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %r14d
	movl	$4, %edi
	callq	_WNAF_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$0, -1056(%rbp,%rax,4)
	sete	%dil
	callq	_CHECK
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_CHECK
	leaq	-1092(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_secp256k1_scalar_set_int
	leaq	-1056(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %r14d
	movl	$4, %edi
	callq	_WNAF_SIZE
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$0, -1056(%rbp,%rax,4)
	sete	%dil
	callq	_CHECK
	decq	%rbx
	cmpq	$2, %rbx
	ja	LBB0_5
LBB0_6:
	xorl	%edi, %edi
	cmpl	$1, -1056(%rbp)
	sete	%dil
	callq	_CHECK
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_CHECK
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected+16(%rip), %xmm0
	movaps	%xmm0, -1072(%rbp)
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected(%rip), %xmm0
	movaps	%xmm0, -1088(%rbp)
	leaq	-1092(%rbp), %r15
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_secp256k1_scalar_set_int
	leaq	-1056(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %ebx
	leaq	-1088(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_test_fixed_wnaf_small_helper
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_CHECK
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.1+16(%rip), %xmm0
	movaps	%xmm0, -1072(%rbp)
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.1(%rip), %xmm0
	movaps	%xmm0, -1088(%rbp)
	movq	%r15, %rdi
	movl	$-286331154, %esi               ## imm = 0xEEEEEEEE
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %ebx
	leaq	-1088(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_test_fixed_wnaf_small_helper
	xorl	%edi, %edi
	cmpl	$1, %ebx
	sete	%dil
	callq	_CHECK
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.2+16(%rip), %xmm0
	movaps	%xmm0, -1072(%rbp)
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.2(%rip), %xmm0
	movaps	%xmm0, -1088(%rbp)
	movq	%r15, %rdi
	movl	$16843009, %esi                 ## imm = 0x1010101
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %ebx
	leaq	-1088(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_test_fixed_wnaf_small_helper
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_CHECK
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.3+16(%rip), %xmm0
	movaps	%xmm0, -1072(%rbp)
	movaps	l___const.test_fixed_wnaf_small.wnaf_expected.3(%rip), %xmm0
	movaps	%xmm0, -1088(%rbp)
	movq	%r15, %rdi
	movl	$32448241, %esi                 ## imm = 0x1EF1EF1
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_secp256k1_wnaf_fixed
	movl	%eax, %ebx
	leaq	-1088(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_test_fixed_wnaf_small_helper
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_CHECK
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_fixed_wnaf_small.wnaf_expected
l___const.test_fixed_wnaf_small.wnaf_expected:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf

	.p2align	4                               ## @__const.test_fixed_wnaf_small.wnaf_expected.1
l___const.test_fixed_wnaf_small.wnaf_expected.1:
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	15                              ## 0xf

	.p2align	4                               ## @__const.test_fixed_wnaf_small.wnaf_expected.2
l___const.test_fixed_wnaf_small.wnaf_expected.2:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.p2align	4                               ## @__const.test_fixed_wnaf_small.wnaf_expected.3
l___const.test_fixed_wnaf_small.wnaf_expected.3:
	.long	4294967281                      ## 0xfffffff1
	.long	0                               ## 0x0
	.long	15                              ## 0xf
	.long	4294967281                      ## 0xfffffff1
	.long	0                               ## 0x0
	.long	15                              ## 0xf
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_fixed_wnaf_small          ; -- Begin function test_fixed_wnaf_small
	.p2align	2
_test_fixed_wnaf_small:                 ; @test_fixed_wnaf_small
	.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
	sub	sp, sp, #1088
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x20, sp, #56
	add	x0, sp, #56
	mov	w1, #1024
	bl	_bzero
	add	x0, sp, #12
	mov	w1, #0
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	mov	w0, #4
	bl	_WNAF_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w0
	add	x21, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	w8, [x20, w8, uxtw #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_CHECK
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_2
LBB0_3:
	cmp	w19, #0
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #12
	mov	w1, #1
	bl	_secp256k1_scalar_set_int
	add	x20, sp, #56
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	mov	w0, #4
	bl	_WNAF_SIZE
	cmp	w0, #1
	b.le	LBB0_6
; %bb.4:
	mov	w8, w0
	add	x21, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	w8, [x20, w8, uxtw #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_CHECK
	sub	x21, x21, #1
	cmp	x21, #2
	b.hi	LBB0_5
LBB0_6:
	ldr	w8, [sp, #56]
	cmp	w8, #1
	cset	w0, eq
	bl	_CHECK
	cmp	w19, #0
	cset	w0, eq
	bl	_CHECK
Lloh3:
	adrp	x8, l___const.test_fixed_wnaf_small.wnaf_expected@PAGE
Lloh4:
	add	x8, x8, l___const.test_fixed_wnaf_small.wnaf_expected@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #12
	mov	w1, #-1
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	add	x0, sp, #56
	add	x1, sp, #16
	mov	w2, #4
	bl	_test_fixed_wnaf_small_helper
	cmp	w19, #0
	cset	w0, eq
	bl	_CHECK
Lloh5:
	adrp	x8, l___const.test_fixed_wnaf_small.wnaf_expected.1@PAGE
Lloh6:
	add	x8, x8, l___const.test_fixed_wnaf_small.wnaf_expected.1@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #12
	mov	w1, #-286331154
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	add	x0, sp, #56
	add	x1, sp, #16
	mov	w2, #4
	bl	_test_fixed_wnaf_small_helper
	cmp	w19, #1
	cset	w0, eq
	bl	_CHECK
Lloh7:
	adrp	x8, l___const.test_fixed_wnaf_small.wnaf_expected.2@PAGE
Lloh8:
	add	x8, x8, l___const.test_fixed_wnaf_small.wnaf_expected.2@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #12
	mov	w1, #16843009
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	add	x0, sp, #56
	add	x1, sp, #16
	mov	w2, #4
	bl	_test_fixed_wnaf_small_helper
	cmp	w19, #0
	cset	w0, eq
	bl	_CHECK
Lloh9:
	adrp	x8, l___const.test_fixed_wnaf_small.wnaf_expected.3@PAGE
Lloh10:
	add	x8, x8, l___const.test_fixed_wnaf_small.wnaf_expected.3@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #12
	mov	w1, #7921
	movk	w1, #495, lsl #16
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #56
	add	x1, sp, #12
	mov	w2, #4
	bl	_secp256k1_wnaf_fixed
	mov	x19, x0
	add	x0, sp, #56
	add	x1, sp, #16
	mov	w2, #4
	bl	_test_fixed_wnaf_small_helper
	cmp	w19, #0
	cset	w0, eq
	bl	_CHECK
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1088
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.test_fixed_wnaf_small.wnaf_expected
l___const.test_fixed_wnaf_small.wnaf_expected:
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf

	.p2align	2                               ; @__const.test_fixed_wnaf_small.wnaf_expected.1
l___const.test_fixed_wnaf_small.wnaf_expected.1:
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	15                              ; 0xf

	.p2align	2                               ; @__const.test_fixed_wnaf_small.wnaf_expected.2
l___const.test_fixed_wnaf_small.wnaf_expected.2:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.p2align	2                               ; @__const.test_fixed_wnaf_small.wnaf_expected.3
l___const.test_fixed_wnaf_small.wnaf_expected.3:
	.long	4294967281                      ; 0xfffffff1
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.long	4294967281                      ; 0xfffffff1
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
