	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_sha256_write
_secp256k1_sha256_write:                ## @secp256k1_sha256_write
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	leal	(%rdx,%r12), %eax
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$63, %r12d
	movl	%eax, (%rdi)
	cltq
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	setae	%dil
	callq	_VERIFY_CHECK
	movl	$64, %r13d
	subq	%r12, %r13
	cmpq	%rbx, %r13
	ja	LBB0_3
## %bb.1:
	addq	8(%r15), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	addq	%r13, %r14
	subq	%r13, %rbx
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	callq	_secp256k1_sha256_transform
	xorl	%r12d, %r12d
	cmpq	$64, %rbx
	jb	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movl	$64, %edx
	movq	%r14, %rsi
	callq	_memcpy
	addq	$64, %r14
	addq	$-64, %rbx
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	callq	_secp256k1_sha256_transform
	cmpq	$63, %rbx
	ja	LBB0_2
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	addq	8(%r15), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_sha256_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_sha256_write
_secp256k1_sha256_write:                ; @secp256k1_sha256_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	and	x23, x8, #0x3f
	add	w8, w8, w19
	str	w8, [x0]
	sxtw	x8, w8
	cmp	x8, x2
	cset	w0, hs
	bl	_VERIFY_CHECK
	mov	w8, #64
	sub	x22, x8, x23
	cmp	x22, x19
	b.hi	LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	add	x0, x8, x23
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x20, x20, x22
	sub	x19, x19, x22
	ldr	w0, [x21, #16]
	ldr	x1, [x21, #8]
	bl	_secp256k1_sha256_transform
	cmp	x19, #64
	b.lo	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	mov	x1, x20
	mov	w2, #64
	bl	_memcpy
	add	x20, x20, #64
	sub	x19, x19, #64
	ldr	w0, [x21, #16]
	ldr	x1, [x21, #8]
	bl	_secp256k1_sha256_transform
	cmp	x19, #63
	b.hi	LBB0_2
LBB0_3:
	mov	x23, #0
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	add	x0, x8, x23
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_secp256k1_sha256_write
.subsections_via_symbols
