	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_crc
_compute_crc:                           ## @compute_crc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	12(%rsi), %r14
	movswl	14(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movswl	18(%rsi), %ebx
	movq	%r14, %rdi
	callq	_drm_rect_height
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_drm_rect_width
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	cmpl	$65536, %r13d                   ## imm = 0x10000
	jl	LBB0_6
## %bb.1:
	movl	%r13d, %eax
	sarl	$16, %eax
	addl	%ebx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	sarl	$16, %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	xorl	%r14d, %r14d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$65536, -48(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x10000
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r12), %eax
	imull	%ebx, %eax
	addl	(%r12), %eax
	movl	8(%r12), %ecx
	imull	%r15d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	%r12, %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r12
	leaq	(%rcx,%rax), %rdi
	addq	$24, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r13, %r12
	movl	$4, %edx
	callq	_crc32_le
	movl	%eax, %r14d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%r15d
	cmpl	%eax, %r15d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_crc
_compute_crc:                           ; @compute_crc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x21, x1, #12
	ldrsh	w24, [x1, #14]
	ldrsh	w25, [x1, #18]
	mov	x0, x21
	bl	_drm_rect_height
	mov	x23, x0
	mov	x0, x21
	bl	_drm_rect_width
	cmp	w23, #16, lsl #12               ; =65536
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	add	w26, w25, w23, asr #16
	add	w27, w24, w0, asr #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	cmp	w25, w26
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w21, #16, lsl #12               ; =65536
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w8, w9, [x19]
	madd	w8, w9, w25, w8
	ldr	w9, [x19, #8]
	madd	w8, w9, w28, w8
	add	x23, x20, w8, sxtw
	add	x0, x23, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x22
	mov	x1, x23
	mov	w2, #4
	bl	_crc32_le
	mov	x22, x0
	add	w28, w28, #1
	cmp	w28, w27
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_crc
.subsections_via_symbols
