	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_crc32_back_partial       ## -- Begin function count_crc32_back_partial
	.p2align	4, 0x90
_count_crc32_back_partial:              ## @count_crc32_back_partial
	.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	%rdi, %r15
	movq	40(%rdi), %r13
	xorl	%eax, %eax
	cmpl	$0, (%r13)
	movl	%edx, %r14d
	movl	%esi, %ebx
	sete	%al
	movl	4(%rdi,%rax,4), %r12d
	cmpl	%esi, %r12d
	jge	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_fprintf
LBB0_2:
	xorl	%edi, %edi
	cmpl	%ebx, %r12d
	setge	%dil
	callq	_assert
	movq	16(%r13), %rax
	cmpq	24(%r13), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	%r15, %r13
	je	LBB0_5
## %bb.4:
	movq	40(%r13), %r13
LBB0_5:
	testl	%ebx, %ebx
	jle	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rcx
	subl	%ecx, %eax
	addl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	40(%r13), %r13
	jmp	LBB0_6
LBB0_10:
	movl	(%r13), %edi
	movq	%rdi, %rax
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.11:
	movq	24(%r13), %rdi
	movq	%rdi, %rax
LBB0_12:
	subl	%ebx, %edi
	movl	16(%r13), %esi
	subl	%eax, %esi
	addl	%ebx, %esi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %edx
	callq	_crc32_partial
	movq	32(%r13), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%rbx), %esi
	subl	%edi, %esi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%eax, %edx
	callq	_crc32_partial
	movq	32(%rbx), %rbx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %edi
	testq	%rdi, %rdi
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%rbx), %rdi
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"**ERROR** len=%d total_bytes=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_crc32_back_partial       ; -- Begin function count_crc32_back_partial
	.p2align	2
_count_crc32_back_partial:              ; @count_crc32_back_partial
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #40]
	ldr	w8, [x23]
	cmp	w8, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w22, [x0, x8]
	cmp	w22, w1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_fprintf
LBB0_2:
	cmp	w22, w21
	cset	w0, ge
	bl	_assert
	ldp	x8, x9, [x23, #16]
	cmp	x8, x9
	ccmp	x23, x19, #4, eq
	b.eq	LBB0_4
; %bb.3:
	ldr	x23, [x23, #40]
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.5:
	ldr	w8, [x23]
	cbnz	w8, LBB0_7
LBB0_6:
	ldr	x8, [x23, #24]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #16]
	sub	w8, w8, w9
	add	w21, w21, w8
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [x23, #40]
	ldr	w8, [x23]
	cbnz	w8, LBB0_7
	b	LBB0_6
LBB0_9:
	ldr	w8, [x23]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	x8, [x23, #24]
LBB0_11:
	sub	w0, w8, w21
	ldr	w9, [x23, #16]
	sub	w8, w9, w8
	add	w1, w21, w8
	mov	x2, x20
	bl	_crc32_partial
	mov	x2, x0
	ldr	x20, [x23, #32]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20, #16]
	sub	w1, w8, w0
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_crc32_partial
	mov	x2, x0
	ldr	x20, [x20, #32]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	x20, x19
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	cbnz	w0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x20, #24]
	b	LBB0_12
LBB0_16:
	mov	x0, x2
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"**ERROR** len=%d total_bytes=%d\n"

.subsections_via_symbols
