	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_rfc6979_hmac_sha256_generate
_secp256k1_rfc6979_hmac_sha256_generate: ## @secp256k1_rfc6979_hmac_sha256_generate
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rsi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_initialize
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_write
	leaq	_secp256k1_rfc6979_hmac_sha256_generate.zero(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_secp256k1_hmac_sha256_write
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_secp256k1_hmac_sha256_finalize
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_initialize
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_write
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_secp256k1_hmac_sha256_finalize
LBB0_2:
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_initialize
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_secp256k1_hmac_sha256_write
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_secp256k1_hmac_sha256_finalize
	cmpl	$32, %r13d
	movl	$32, %ebx
	cmovll	%r13d, %ebx
	movq	16(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	addq	%rax, %r15
	subq	%rax, %r13
	jne	LBB0_4
LBB0_5:
	movl	$1, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_secp256k1_rfc6979_hmac_sha256_generate.zero: ## @secp256k1_rfc6979_hmac_sha256_generate.zero
	.space	1

	.no_dead_strip	_secp256k1_rfc6979_hmac_sha256_generate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_rfc6979_hmac_sha256_generate
_secp256k1_rfc6979_hmac_sha256_generate: ; @secp256k1_rfc6979_hmac_sha256_generate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x1, [x19, #8]
	add	x0, sp, #12
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_initialize
	ldr	x1, [x19, #16]
	add	x0, sp, #12
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_write
Lloh0:
	adrp	x1, _secp256k1_rfc6979_hmac_sha256_generate.zero@PAGE
Lloh1:
	add	x1, x1, _secp256k1_rfc6979_hmac_sha256_generate.zero@PAGEOFF
	add	x0, sp, #12
	mov	w2, #1
	bl	_secp256k1_hmac_sha256_write
	ldr	x1, [x19, #8]
	add	x0, sp, #12
	bl	_secp256k1_hmac_sha256_finalize
	ldr	x1, [x19, #8]
	add	x0, sp, #12
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_initialize
	ldr	x1, [x19, #16]
	add	x0, sp, #12
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_write
	ldr	x1, [x19, #16]
	add	x0, sp, #12
	bl	_secp256k1_hmac_sha256_finalize
LBB0_2:
	cbz	x20, LBB0_5
; %bb.3:
	mov	w23, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #8]
	add	x0, sp, #8
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_initialize
	ldr	x1, [x19, #16]
	add	x0, sp, #8
	mov	w2, #32
	bl	_secp256k1_hmac_sha256_write
	ldr	x1, [x19, #16]
	add	x0, sp, #8
	bl	_secp256k1_hmac_sha256_finalize
	cmp	w20, #32
	csel	w22, w20, w23, lt
	ldr	x1, [x19, #16]
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	sxtw	x8, w22
	add	x21, x21, x8
	subs	x20, x20, x8
	b.ne	LBB0_4
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_secp256k1_rfc6979_hmac_sha256_generate.zero: ; @secp256k1_rfc6979_hmac_sha256_generate.zero
	.space	1

	.no_dead_strip	_secp256k1_rfc6979_hmac_sha256_generate
.subsections_via_symbols
