	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sha256_update             ## -- Begin function ldns_sha256_update
	.p2align	4, 0x90
_ldns_sha256_update:                    ## @ldns_sha256_update
	.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
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	(%r14), %eax
	sarl	$3, %eax
	movq	_LDNS_SHA256_BLOCK_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movslq	%ecx, %r12
	movslq	%edx, %rdi
	subq	%rdi, %r12
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	cmpq	%r15, %r12
	ja	LBB0_9
## %bb.3:
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_MEMCPY_BCOPY
	leal	(,%r12,8), %eax
	addl	%eax, (%r14)
	subq	%r12, %r15
	leaq	(%rbx,%r12,4), %rbx
	movq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	_ldns_sha256_Transform
	movl	(%r13), %ecx
LBB0_4:
	movslq	%ecx, %rax
	cmpq	%rax, %r15
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ldns_sha256_Transform
	movl	(%r13), %eax
	shll	$3, %eax
	addl	%eax, (%r14)
	movslq	(%r13), %rax
	subq	%rax, %r15
	leaq	(%rbx,%rax,4), %rbx
	cmpq	%rax, %r15
	jae	LBB0_5
LBB0_7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movq	8(%r14), %rdi
LBB0_9:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_MEMCPY_BCOPY
	shll	$3, %r15d
	addl	%r15d, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_SHA256_BLOCK_LENGTH,4,2   ## @LDNS_SHA256_BLOCK_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sha256_update             ; -- Begin function ldns_sha256_update
	.p2align	2
_ldns_sha256_update:                    ; @ldns_sha256_update
	.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
	cbz	x2, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	w8, [x20]
	asr	w9, w8, #3
Lloh0:
	adrp	x23, _LDNS_SHA256_BLOCK_LENGTH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_SHA256_BLOCK_LENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	cbz	w9, LBB0_4
; %bb.2:
	sxtw	x8, w8
	sub	x22, x8, w9, sxtw
	ldr	x8, [x20, #8]
	add	x0, x8, w9, sxtw #2
	cmp	x22, x19
	b.hi	LBB0_8
; %bb.3:
	mov	x1, x21
	mov	x2, x22
	bl	_MEMCPY_BCOPY
	ldr	w8, [x20]
	add	w8, w8, w22, lsl #3
	str	w8, [x20]
	sub	x19, x19, x22
	add	x21, x21, x22, lsl #2
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_ldns_sha256_Transform
	ldr	w8, [x23]
LBB0_4:
	cmp	x19, w8, sxtw
	b.lo	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_sha256_Transform
	ldr	w8, [x23]
	ldr	w9, [x20]
	add	w8, w9, w8, lsl #3
	str	w8, [x20]
	ldrsw	x8, [x23]
	add	x21, x21, x8, lsl #2
	sub	x19, x19, x8
	cmp	x19, x8
	b.hs	LBB0_5
LBB0_6:
	cbz	x19, LBB0_9
; %bb.7:
	ldr	x0, [x20, #8]
LBB0_8:
	mov	x1, x21
	mov	x2, x19
	bl	_MEMCPY_BCOPY
	ldr	w8, [x20]
	add	w8, w8, w19, lsl #3
	str	w8, [x20]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_SHA256_BLOCK_LENGTH,4,2   ; @LDNS_SHA256_BLOCK_LENGTH
.subsections_via_symbols
