	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_tiling
_program_tiling:                        ## @program_tiling
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_GRPH_SW_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_GRPH_NUM_BANKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	callq	_log_2
	movl	%eax, %r13d
	movq	_GRPH_NUM_SHADER_ENGINES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_log_2
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GRPH_NUM_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_log_2
                                        ## kill: def $eax killed $eax def $rax
	movq	_GRPH_COLOR_EXPANSION_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_GRPH_SE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movl	(%rbx), %r12d
	subq	$8, %rsp
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	pushq	%r12
	pushq	%r11
	pushq	$1
	pushq	%r10
	pushq	%rax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_REG_UPDATE_6
	addq	$64, %rsp
	movq	(%r14), %rax
LBB0_2:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_NUM_BANKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	_GRPH_BANK_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %r8d
	movq	_GRPH_BANK_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	20(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GRPH_MACRO_TILE_ASPECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GRPH_TILE_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GRPH_MICRO_TILE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GRPH_PIPE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	12(%rbx), %r13d
	movl	8(%rbx), %r11d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	movq	_GRPH_ARRAY_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %r14d
	movq	_GRPH_COLOR_EXPANSION_MODE@GOTPCREL(%rip), %r15
	movl	(%r15), %r15d
	subq	$8, %rsp
	pushq	$1
	pushq	%r15
	pushq	%rax
	pushq	%r14
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	pushq	%r12
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_REG_UPDATE_9
	addq	$168, %rsp
	jmp	LBB0_5
LBB0_4:
	addq	$56, %rsp
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRPH_CONTROL,4,2               ## @GRPH_CONTROL
	.comm	_GRPH_SW_MODE,4,2               ## @GRPH_SW_MODE
	.comm	_GRPH_NUM_BANKS,4,2             ## @GRPH_NUM_BANKS
	.comm	_GRPH_NUM_SHADER_ENGINES,4,2    ## @GRPH_NUM_SHADER_ENGINES
	.comm	_GRPH_NUM_PIPES,4,2             ## @GRPH_NUM_PIPES
	.comm	_GRPH_COLOR_EXPANSION_MODE,4,2  ## @GRPH_COLOR_EXPANSION_MODE
	.comm	_GRPH_SE_ENABLE,4,2             ## @GRPH_SE_ENABLE
	.comm	_GRPH_BANK_WIDTH,4,2            ## @GRPH_BANK_WIDTH
	.comm	_GRPH_BANK_HEIGHT,4,2           ## @GRPH_BANK_HEIGHT
	.comm	_GRPH_MACRO_TILE_ASPECT,4,2     ## @GRPH_MACRO_TILE_ASPECT
	.comm	_GRPH_TILE_SPLIT,4,2            ## @GRPH_TILE_SPLIT
	.comm	_GRPH_MICRO_TILE_MODE,4,2       ## @GRPH_MICRO_TILE_MODE
	.comm	_GRPH_PIPE_CONFIG,4,2           ## @GRPH_PIPE_CONFIG
	.comm	_GRPH_ARRAY_MODE,4,2            ## @GRPH_ARRAY_MODE
	.no_dead_strip	_program_tiling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_tiling
_program_tiling:                        ; @program_tiling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _GRPH_CONTROL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GRPH_CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x11, _GRPH_NUM_BANKS@GOTPAGE
Lloh3:
	ldr	x11, [x11, _GRPH_NUM_BANKS@GOTPAGEOFF]
Lloh4:
	adrp	x21, _GRPH_COLOR_EXPANSION_MODE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GRPH_COLOR_EXPANSION_MODE@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x10]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _GRPH_SW_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRPH_SW_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w23, [x11]
	ldp	w0, w24, [x19, #12]
	bl	_log_2
	mov	x25, x0
Lloh9:
	adrp	x8, _GRPH_NUM_SHADER_ENGINES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRPH_NUM_SHADER_ENGINES@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
	ldr	w0, [x19, #8]
	bl	_log_2
	mov	x27, x0
Lloh12:
	adrp	x8, _GRPH_NUM_PIPES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRPH_NUM_PIPES@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
	ldr	w0, [x19, #4]
	bl	_log_2
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _GRPH_SE_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GRPH_SE_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x19]
	stp	w9, w10, [sp, #12]
	mov	w10, #1
	stp	w8, w10, [sp, #4]
	str	w0, [sp]
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	mov	x7, x28
	bl	_REG_UPDATE_6
	ldr	x8, [x20]
LBB0_2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _GRPH_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GRPH_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _GRPH_NUM_BANKS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GRPH_NUM_BANKS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _GRPH_BANK_WIDTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GRPH_BANK_WIDTH@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x8, _GRPH_BANK_HEIGHT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GRPH_BANK_HEIGHT@GOTPAGEOFF]
	ldp	w4, w2, [x19, #24]
Lloh29:
	ldr	w5, [x8]
Lloh30:
	adrp	x8, _GRPH_MACRO_TILE_ASPECT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GRPH_MACRO_TILE_ASPECT@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
	ldp	w8, w6, [x19, #16]
Lloh33:
	adrp	x9, _GRPH_TILE_SPLIT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GRPH_TILE_SPLIT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _GRPH_MICRO_TILE_MODE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _GRPH_MICRO_TILE_MODE@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	ldp	w12, w11, [x19, #8]
Lloh39:
	adrp	x13, _GRPH_PIPE_CONFIG@GOTPAGE
Lloh40:
	ldr	x13, [x13, _GRPH_PIPE_CONFIG@GOTPAGEOFF]
Lloh41:
	ldr	w13, [x13]
Lloh42:
	adrp	x14, _GRPH_ARRAY_MODE@GOTPAGE
Lloh43:
	ldr	x14, [x14, _GRPH_ARRAY_MODE@GOTPAGEOFF]
Lloh44:
	ldr	w14, [x14]
	ldp	w16, w15, [x19]
Lloh45:
	adrp	x17, _GRPH_COLOR_EXPANSION_MODE@GOTPAGE
Lloh46:
	ldr	x17, [x17, _GRPH_COLOR_EXPANSION_MODE@GOTPAGEOFF]
Lloh47:
	ldr	w17, [x17]
	mov	w19, #1
	stp	w17, w19, [sp, #36]
	stp	w14, w16, [sp, #28]
	stp	w13, w15, [sp, #20]
	stp	w10, w12, [sp, #12]
	stp	w9, w11, [sp, #4]
	str	w8, [sp]
	bl	_REG_UPDATE_9
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GRPH_CONTROL,4,2               ; @GRPH_CONTROL
	.comm	_GRPH_SW_MODE,4,2               ; @GRPH_SW_MODE
	.comm	_GRPH_NUM_BANKS,4,2             ; @GRPH_NUM_BANKS
	.comm	_GRPH_NUM_SHADER_ENGINES,4,2    ; @GRPH_NUM_SHADER_ENGINES
	.comm	_GRPH_NUM_PIPES,4,2             ; @GRPH_NUM_PIPES
	.comm	_GRPH_COLOR_EXPANSION_MODE,4,2  ; @GRPH_COLOR_EXPANSION_MODE
	.comm	_GRPH_SE_ENABLE,4,2             ; @GRPH_SE_ENABLE
	.comm	_GRPH_BANK_WIDTH,4,2            ; @GRPH_BANK_WIDTH
	.comm	_GRPH_BANK_HEIGHT,4,2           ; @GRPH_BANK_HEIGHT
	.comm	_GRPH_MACRO_TILE_ASPECT,4,2     ; @GRPH_MACRO_TILE_ASPECT
	.comm	_GRPH_TILE_SPLIT,4,2            ; @GRPH_TILE_SPLIT
	.comm	_GRPH_MICRO_TILE_MODE,4,2       ; @GRPH_MICRO_TILE_MODE
	.comm	_GRPH_PIPE_CONFIG,4,2           ; @GRPH_PIPE_CONFIG
	.comm	_GRPH_ARRAY_MODE,4,2            ; @GRPH_ARRAY_MODE
	.no_dead_strip	_program_tiling
.subsections_via_symbols
