	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_get_shader_block
_a6xx_get_shader_block:                 ## @a6xx_get_shader_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%r8), %r14
	movslq	(%rdx), %rax
	movq	_A6XX_NUM_SHADER_BANKS@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	movq	_A6XX_CD_DATA_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rcx
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_A6XX_HLSQ_DBG_READ_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r15), %edx
	shll	$8, %edx
	orl	%r12d, %edx
	movq	%r14, %rdi
	callq	_CRASHDUMP_WRITE
	leaq	(%r14,%rax,4), %rbx
	movq	_REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_A6XX_CD_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_CRASHDUMP_READ
	leaq	(%rbx,%rax,4), %r14
	incl	%r12d
	cmpl	(%r13), %r12d
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_CRASHDUMP_FINI
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_a6xx_crashdumper_run
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	%r15, 8(%r14)
	movq	_A6XX_CD_DATA_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_state_kmemdup
	movl	%eax, (%r14)
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A6XX_NUM_SHADER_BANKS,4,2      ## @A6XX_NUM_SHADER_BANKS
	.comm	_A6XX_CD_DATA_SIZE,8,3          ## @A6XX_CD_DATA_SIZE
	.comm	_REG_A6XX_HLSQ_DBG_READ_SEL,4,2 ## @REG_A6XX_HLSQ_DBG_READ_SEL
	.comm	_REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE,4,2 ## @REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE
	.comm	_A6XX_CD_DATA_OFFSET,4,2        ## @A6XX_CD_DATA_OFFSET
	.no_dead_strip	_a6xx_get_shader_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_get_shader_block
_a6xx_get_shader_block:                 ; @a6xx_get_shader_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x25, [x4, #8]
	ldr	w8, [x2]
Lloh0:
	adrp	x27, _A6XX_NUM_SHADER_BANKS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _A6XX_NUM_SHADER_BANKS@GOTPAGEOFF]
	ldr	w9, [x27]
	mul	w8, w9, w8
	sbfiz	x23, x8, #2, #32
Lloh2:
	adrp	x8, _A6XX_CD_DATA_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A6XX_CD_DATA_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x23, x8
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.1:
	stp	x20, x19, [sp]                  ; 16-byte Folded Spill
	ldr	w8, [x27]
Lloh5:
	adrp	x26, _A6XX_CD_DATA_OFFSET@GOTPAGE
Lloh6:
	ldr	x26, [x26, _A6XX_CD_DATA_OFFSET@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w28, #0
Lloh7:
	adrp	x20, _REG_A6XX_HLSQ_DBG_READ_SEL@GOTPAGE
Lloh8:
	ldr	x20, [x20, _REG_A6XX_HLSQ_DBG_READ_SEL@GOTPAGEOFF]
Lloh9:
	adrp	x19, _REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w8, [x22, #4]
	orr	w2, w28, w8, lsl #8
	mov	x0, x25
	bl	_CRASHDUMP_WRITE
	add	x25, x25, x0, lsl #2
	ldr	w1, [x19]
	ldr	w2, [x22]
	ldr	w8, [x21]
	ldr	w9, [x26]
	add	w3, w9, w8
	mov	x0, x25
	bl	_CRASHDUMP_READ
	add	x25, x25, x0, lsl #2
	add	w28, w28, #1
	ldr	w8, [x27]
	cmp	w28, w8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x25
	bl	_CRASHDUMP_FINI
	mov	x0, x24
	mov	x1, x21
	bl	_a6xx_crashdumper_run
	ldp	x10, x19, [sp]                  ; 16-byte Folded Reload
	cbnz	x0, LBB0_6
; %bb.5:
	str	x22, [x19, #8]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x26]
	add	x1, x8, x9, lsl #2
	mov	x0, x10
	mov	x2, x23
	bl	_state_kmemdup
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_A6XX_NUM_SHADER_BANKS,4,2      ; @A6XX_NUM_SHADER_BANKS
	.comm	_A6XX_CD_DATA_SIZE,8,3          ; @A6XX_CD_DATA_SIZE
	.comm	_REG_A6XX_HLSQ_DBG_READ_SEL,4,2 ; @REG_A6XX_HLSQ_DBG_READ_SEL
	.comm	_REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE,4,2 ; @REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE
	.comm	_A6XX_CD_DATA_OFFSET,4,2        ; @A6XX_CD_DATA_OFFSET
	.no_dead_strip	_a6xx_get_shader_block
.subsections_via_symbols
