	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_sha256_finalize
_secp256k1_sha256_finalize:             ## @secp256k1_sha256_finalize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %edi
	sarl	$29, %edi
	callq	_BE32
	movl	%eax, -32(%rbp)
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_BE32
	movl	%eax, -28(%rbp)
	movl	$55, %edx
	subl	(%rbx), %edx
	andl	$63, %edx
	incl	%edx
	leaq	_secp256k1_sha256_finalize.pad(%rip), %rsi
	movq	%rbx, %rdi
	callq	_secp256k1_sha256_write
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_secp256k1_sha256_write
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_BE32
	movl	%eax, -64(%rbp)
	movq	8(%rbx), %rax
	movl	$0, (%rax)
	movl	4(%rax), %edi
	callq	_BE32
	movl	%eax, -60(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 4(%rax)
	movl	8(%rax), %edi
	callq	_BE32
	movl	%eax, -56(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 8(%rax)
	movl	12(%rax), %edi
	callq	_BE32
	movl	%eax, -52(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 12(%rax)
	movl	16(%rax), %edi
	callq	_BE32
	movl	%eax, -48(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 16(%rax)
	movl	20(%rax), %edi
	callq	_BE32
	movl	%eax, -44(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 20(%rax)
	movl	24(%rax), %edi
	callq	_BE32
	movl	%eax, -40(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 24(%rax)
	movl	28(%rax), %edi
	callq	_BE32
	movl	%eax, -36(%rbp)
	movq	8(%rbx), %rax
	movl	$0, 28(%rax)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @secp256k1_sha256_finalize.pad
_secp256k1_sha256_finalize.pad:
	.byte	128                             ## 0x80
	.space	63

	.no_dead_strip	_secp256k1_sha256_finalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_sha256_finalize
_secp256k1_sha256_finalize:             ; @secp256k1_sha256_finalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, 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, #-24]
	ldr	w8, [x0]
	asr	w0, w8, #29
	bl	_BE32
	str	w0, [sp, #32]
	ldr	w8, [x20]
	lsl	w0, w8, #3
	bl	_BE32
	str	w0, [sp, #36]
	ldr	w8, [x20]
	mov	w9, #55
	sub	w8, w9, w8
	and	w8, w8, #0x3f
	add	w2, w8, #1
Lloh3:
	adrp	x1, _secp256k1_sha256_finalize.pad@PAGE
Lloh4:
	add	x1, x1, _secp256k1_sha256_finalize.pad@PAGEOFF
	mov	x0, x20
	bl	_secp256k1_sha256_write
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #8
	bl	_secp256k1_sha256_write
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_BE32
	str	w0, [sp]
	ldr	x8, [x20, #8]
	str	wzr, [x8]
	ldr	w0, [x8, #4]
	bl	_BE32
	str	w0, [sp, #4]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #4]
	ldr	w0, [x8, #8]
	bl	_BE32
	str	w0, [sp, #8]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #8]
	ldr	w0, [x8, #12]
	bl	_BE32
	str	w0, [sp, #12]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #12]
	ldr	w0, [x8, #16]
	bl	_BE32
	str	w0, [sp, #16]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #16]
	ldr	w0, [x8, #20]
	bl	_BE32
	str	w0, [sp, #20]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #20]
	ldr	w0, [x8, #24]
	bl	_BE32
	str	w0, [sp, #24]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #24]
	ldr	w0, [x8, #28]
	bl	_BE32
	str	w0, [sp, #28]
	ldr	x8, [x20, #8]
	str	wzr, [x8, #28]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #32
	bl	_memcpy
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_secp256k1_sha256_finalize.pad:         ; @secp256k1_sha256_finalize.pad
	.byte	128                             ; 0x80
	.space	63

	.no_dead_strip	_secp256k1_sha256_finalize
.subsections_via_symbols
