	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdg_tile_block
_cdg_tile_block:                        ## @cdg_tile_block
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rsi), %ecx
	andl	$31, %ecx
	movq	_CDG_TILE_HEIGHT@GOTPCREL(%rip), %r8
	movl	(%r8), %r10d
	imull	%r10d, %ecx
	addl	(%rdi), %ecx
	movq	_CDG_FULL_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r10d, %eax
	cmpl	%eax, %ecx
	ja	LBB0_12
## %bb.1:
	movl	12(%rsi), %r15d
	andl	$63, %r15d
	movq	_CDG_TILE_WIDTH@GOTPCREL(%rip), %r11
	movl	(%r11), %ebx
	imull	%ebx, %r15d
	movl	4(%rdi), %r14d
	leal	(%r15,%r14), %r9d
	movq	_CDG_FULL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ebx, %eax
	cmpl	%eax, %r9d
	jbe	LBB0_2
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	testl	%r10d, %r10d
	jle	LBB0_11
## %bb.3:
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movl	(%rdi), %r9d
	movq	(%rax), %r12
	imull	%r9d, %ecx
	addl	%ecx, %r14d
	addl	%r15d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r8), %r10d
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%r10d, %rax
	addq	%r9, %r14
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$5, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, (%r12,%rdi,4)
	incq	%rcx
	movslq	(%r11), %rbx
	decl	%eax
	cmpq	%rbx, %rcx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rsi,%r15,4), %edi
	xorl	%ebx, %ebx
	btl	%eax, %edi
	setb	%bl
	movl	(%rsi,%rbx,4), %ebx
	andl	$15, %ebx
	leal	(%r14,%rcx), %edi
	movslq	%edi, %rdi
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	(%r12,%rdi,4), %ebx
	jmp	LBB0_8
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDG_TILE_HEIGHT,4,2            ## @CDG_TILE_HEIGHT
	.comm	_CDG_TILE_WIDTH,4,2             ## @CDG_TILE_WIDTH
	.comm	_CDG_FULL_HEIGHT,4,2            ## @CDG_FULL_HEIGHT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CDG_FULL_WIDTH,4,2             ## @CDG_FULL_WIDTH
	.no_dead_strip	_cdg_tile_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdg_tile_block
_cdg_tile_block:                        ; @cdg_tile_block
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #8]
	and	w9, w8, #0x1f
Lloh0:
	adrp	x8, _CDG_TILE_HEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDG_TILE_HEIGHT@GOTPAGEOFF]
	ldr	w14, [x8]
	ldr	w10, [x0]
	madd	w13, w9, w14, w10
Lloh2:
	adrp	x9, _CDG_FULL_HEIGHT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CDG_FULL_HEIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w9, w9, w14
	cmp	w13, w9
	b.hi	LBB0_2
; %bb.1:
	ldr	w9, [x1, #12]
	and	w10, w9, #0x3f
Lloh5:
	adrp	x9, _CDG_TILE_WIDTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDG_TILE_WIDTH@GOTPAGEOFF]
	ldr	w15, [x9]
	mul	w16, w10, w15
	ldr	w17, [x0, #4]
	add	w10, w16, w17
Lloh7:
	adrp	x11, _CDG_FULL_WIDTH@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CDG_FULL_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	sub	w11, w11, w15
	cmp	w10, w11
	b.ls	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_3:
	cmp	w14, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x10, #0
	ldr	x11, [x0, #8]
	ldp	x12, x0, [x11]
	ldr	w11, [x12]
	ldr	x12, [x0]
	madd	w13, w11, w13, w17
	add	w13, w13, w16
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	add	x13, x13, x11
	cmp	x10, w14, sxtw
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w15, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x14, #0
	add	x16, x10, #4
	mov	w17, #5
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	w15, [x12, x0, lsl #2]
	add	x14, x14, #1
	ldrsw	x15, [x9]
	sub	w17, w17, #1
	cmp	x14, x15
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x1, x16, lsl #2]
	lsr	w15, w15, w17
	and	w15, w15, #0x1
	ldr	w15, [x1, w15, uxtw #2]
	and	w15, w15, #0xf
	add	w0, w13, w14
	sxtw	x0, w0
	cbz	w2, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w3, [x12, x0, lsl #2]
	eor	w15, w3, w15
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CDG_TILE_HEIGHT,4,2            ; @CDG_TILE_HEIGHT
	.comm	_CDG_TILE_WIDTH,4,2             ; @CDG_TILE_WIDTH
	.comm	_CDG_FULL_HEIGHT,4,2            ; @CDG_FULL_HEIGHT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CDG_FULL_WIDTH,4,2             ; @CDG_FULL_WIDTH
	.no_dead_strip	_cdg_tile_block
.subsections_via_symbols
