	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nonce_function_rfc6979
_nonce_function_rfc6979:                ## @nonce_function_rfc6979
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r12
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -164(%rbp)
	leaq	-160(%rbp), %r15
	leaq	-164(%rbp), %rsi
	movq	%r15, %rdi
	movl	$32, %ecx
	callq	_buffer_append
	movq	%r15, %rdi
	leaq	-164(%rbp), %rsi
	movq	%rbx, %rdx
	movl	$32, %ecx
	callq	_buffer_append
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	leaq	-160(%rbp), %rdi
	leaq	-164(%rbp), %rsi
	movq	%r12, %rdx
	movl	$32, %ecx
	callq	_buffer_append
LBB0_2:
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	leaq	-160(%rbp), %rdi
	leaq	-164(%rbp), %rsi
	movl	$16, %ecx
	callq	_buffer_append
LBB0_4:
	movl	-164(%rbp), %edx
	leaq	-168(%rbp), %r12
	leaq	-160(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_rfc6979_hmac_sha256_initialize
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$32, %edx
	callq	_secp256k1_rfc6979_hmac_sha256_generate
	incl	%ebx
	cmpl	%r14d, %ebx
	jbe	LBB0_5
## %bb.6:
	leaq	-168(%rbp), %rdi
	callq	_secp256k1_rfc6979_hmac_sha256_finalize
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nonce_function_rfc6979
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nonce_function_rfc6979
_nonce_function_rfc6979:                ; @nonce_function_rfc6979
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x5
	mov	x22, x4
	mov	x21, x3
	mov	x23, 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]
	str	wzr, [sp, #4]
	add	x0, sp, #8
	add	x1, sp, #4
	mov	w3, #32
	bl	_buffer_append
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, x23
	mov	w3, #32
	bl	_buffer_append
	cbz	x22, LBB0_2
; %bb.1:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, x22
	mov	w3, #32
	bl	_buffer_append
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, x21
	mov	w3, #16
	bl	_buffer_append
LBB0_4:
	ldr	w2, [sp, #4]
	mov	x0, sp
	add	x1, sp, #8
	bl	_secp256k1_rfc6979_hmac_sha256_initialize
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	mov	w21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x20
	mov	w2, #32
	bl	_secp256k1_rfc6979_hmac_sha256_generate
	add	w21, w21, #1
	cmp	w21, w19
	b.ls	LBB0_5
; %bb.6:
	mov	x0, sp
	bl	_secp256k1_rfc6979_hmac_sha256_finalize
	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_8
; %bb.7:
	mov	w0, #1
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nonce_function_rfc6979
.subsections_via_symbols
