	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_get_vbif_debugbus_block
_a6xx_get_vbif_debugbus_block:          ## @a6xx_get_vbif_debugbus_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_VBIF_DEBUGBUS_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_state_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	$0, 8(%rbx)
	movq	_REG_A6XX_VBIF_CLKON@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	(%r14), %esi
	movq	_A6XX_VBIF_CLKON_FORCE_ON_TESTBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	orl	%eax, %edx
	movq	%r15, %rdi
	callq	_gpu_write
	movq	_REG_A6XX_VBIF_TEST_BUS1_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_gpu_write
	movq	_REG_A6XX_VBIF_TEST_BUS_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	(%rbx), %r13
	movq	_AXI_ARB_BLOCKS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_4
## %bb.2:
	movq	_REG_A6XX_VBIF_TEST_BUS2_CTRL1@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_A6XX_VBIF_TEST_BUS2_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	$65536, %eax                    ## imm = 0x10000
	movl	%r12d, %ecx
	shll	%cl, %eax
	movq	%r15, %rdi
	movl	%eax, %ecx
	movl	$16, %r8d
	movq	%r13, %r9
	callq	_vbif_debugbus_read
	cltq
	leaq	(%r13,%rax,4), %r13
	incl	%r12d
	cmpl	(%rbx), %r12d
	jl	LBB0_3
LBB0_4:
	movq	_XIN_AXI_BLOCKS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_REG_A6XX_VBIF_TEST_BUS2_CTRL1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_A6XX_VBIF_TEST_BUS2_CTRL0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	%r15, %rdi
	movl	%eax, %ecx
	movl	$18, %r8d
	movq	%r13, %r9
	callq	_vbif_debugbus_read
	cltq
	leaq	(%r13,%rax,4), %r13
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_6
LBB0_7:
	movq	_REG_A6XX_VBIF_TEST_BUS2_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_gpu_write
	movq	_XIN_CORE_BLOCKS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	movq	_REG_A6XX_VBIF_TEST_BUS1_CTRL0@GOTPCREL(%rip), %r14
	jle	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	_REG_A6XX_VBIF_TEST_BUS1_CTRL1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movq	%r15, %rdi
	movl	%eax, %ecx
	movl	$12, %r8d
	movq	%r13, %r9
	callq	_vbif_debugbus_read
	cltq
	leaq	(%r13,%rax,4), %r13
	incl	%r12d
	cmpl	(%rbx), %r12d
	jl	LBB0_8
LBB0_9:
	movq	_REG_A6XX_VBIF_CLKON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpu_write                      ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBIF_DEBUGBUS_BLOCK_SIZE,4,2   ## @VBIF_DEBUGBUS_BLOCK_SIZE
	.comm	_REG_A6XX_VBIF_CLKON,4,2        ## @REG_A6XX_VBIF_CLKON
	.comm	_A6XX_VBIF_CLKON_FORCE_ON_TESTBUS,4,2 ## @A6XX_VBIF_CLKON_FORCE_ON_TESTBUS
	.comm	_REG_A6XX_VBIF_TEST_BUS1_CTRL0,4,2 ## @REG_A6XX_VBIF_TEST_BUS1_CTRL0
	.comm	_REG_A6XX_VBIF_TEST_BUS_OUT_CTRL,4,2 ## @REG_A6XX_VBIF_TEST_BUS_OUT_CTRL
	.comm	_AXI_ARB_BLOCKS,4,2             ## @AXI_ARB_BLOCKS
	.comm	_REG_A6XX_VBIF_TEST_BUS2_CTRL0,4,2 ## @REG_A6XX_VBIF_TEST_BUS2_CTRL0
	.comm	_REG_A6XX_VBIF_TEST_BUS2_CTRL1,4,2 ## @REG_A6XX_VBIF_TEST_BUS2_CTRL1
	.comm	_XIN_AXI_BLOCKS,4,2             ## @XIN_AXI_BLOCKS
	.comm	_XIN_CORE_BLOCKS,4,2            ## @XIN_CORE_BLOCKS
	.comm	_REG_A6XX_VBIF_TEST_BUS1_CTRL1,4,2 ## @REG_A6XX_VBIF_TEST_BUS1_CTRL1
	.no_dead_strip	_a6xx_get_vbif_debugbus_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_vbif_debugbus_block
_a6xx_get_vbif_debugbus_block:          ; @a6xx_get_vbif_debugbus_block
	.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	x21, x2
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _VBIF_DEBUGBUS_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VBIF_DEBUGBUS_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	mov	w2, #4
	bl	_state_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.1:
	str	xzr, [x21, #8]
Lloh3:
	adrp	x22, _REG_A6XX_VBIF_CLKON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_A6XX_VBIF_CLKON@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_gpu_read
	mov	x20, x0
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _A6XX_VBIF_CLKON_FORCE_ON_TESTBUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _A6XX_VBIF_CLKON_FORCE_ON_TESTBUS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_gpu_write
Lloh8:
	adrp	x23, _REG_A6XX_VBIF_TEST_BUS1_CTRL0@GOTPAGE
Lloh9:
	ldr	x23, [x23, _REG_A6XX_VBIF_TEST_BUS1_CTRL0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_gpu_write
Lloh10:
	adrp	x8, _REG_A6XX_VBIF_TEST_BUS_OUT_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_A6XX_VBIF_TEST_BUS_OUT_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
	ldr	x21, [x21]
Lloh13:
	adrp	x26, _AXI_ARB_BLOCKS@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AXI_ARB_BLOCKS@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh15:
	adrp	x24, _REG_A6XX_VBIF_TEST_BUS2_CTRL0@GOTPAGE
Lloh16:
	ldr	x24, [x24, _REG_A6XX_VBIF_TEST_BUS2_CTRL0@GOTPAGEOFF]
Lloh17:
	adrp	x25, _REG_A6XX_VBIF_TEST_BUS2_CTRL1@GOTPAGE
Lloh18:
	ldr	x25, [x25, _REG_A6XX_VBIF_TEST_BUS2_CTRL1@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w27, #0
	mov	w28, #65536
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w2, [x25]
	lsl	w3, w28, w27
	mov	x0, x19
	mov	w4, #16
	mov	x5, x21
	bl	_vbif_debugbus_read
	add	x21, x21, w0, sxtw #2
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_3
LBB0_4:
Lloh19:
	adrp	x26, _XIN_AXI_BLOCKS@GOTPAGE
Lloh20:
	ldr	x26, [x26, _XIN_AXI_BLOCKS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w27, #0
	mov	w28, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w2, [x25]
	lsl	w3, w28, w27
	mov	x0, x19
	mov	w4, #18
	mov	x5, x21
	bl	_vbif_debugbus_read
	add	x21, x21, w0, sxtw #2
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_6
LBB0_7:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_gpu_write
Lloh21:
	adrp	x24, _XIN_CORE_BLOCKS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _XIN_CORE_BLOCKS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w25, #0
Lloh23:
	adrp	x26, _REG_A6XX_VBIF_TEST_BUS1_CTRL1@GOTPAGE
Lloh24:
	ldr	x26, [x26, _REG_A6XX_VBIF_TEST_BUS1_CTRL1@GOTPAGEOFF]
	mov	w27, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x26]
	lsl	w3, w27, w25
	mov	x0, x19
	mov	w4, #12
	mov	x5, x21
	bl	_vbif_debugbus_read
	add	x21, x21, w0, sxtw #2
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_9
LBB0_10:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	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
	b	_gpu_write
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VBIF_DEBUGBUS_BLOCK_SIZE,4,2   ; @VBIF_DEBUGBUS_BLOCK_SIZE
	.comm	_REG_A6XX_VBIF_CLKON,4,2        ; @REG_A6XX_VBIF_CLKON
	.comm	_A6XX_VBIF_CLKON_FORCE_ON_TESTBUS,4,2 ; @A6XX_VBIF_CLKON_FORCE_ON_TESTBUS
	.comm	_REG_A6XX_VBIF_TEST_BUS1_CTRL0,4,2 ; @REG_A6XX_VBIF_TEST_BUS1_CTRL0
	.comm	_REG_A6XX_VBIF_TEST_BUS_OUT_CTRL,4,2 ; @REG_A6XX_VBIF_TEST_BUS_OUT_CTRL
	.comm	_AXI_ARB_BLOCKS,4,2             ; @AXI_ARB_BLOCKS
	.comm	_REG_A6XX_VBIF_TEST_BUS2_CTRL0,4,2 ; @REG_A6XX_VBIF_TEST_BUS2_CTRL0
	.comm	_REG_A6XX_VBIF_TEST_BUS2_CTRL1,4,2 ; @REG_A6XX_VBIF_TEST_BUS2_CTRL1
	.comm	_XIN_AXI_BLOCKS,4,2             ; @XIN_AXI_BLOCKS
	.comm	_XIN_CORE_BLOCKS,4,2            ; @XIN_CORE_BLOCKS
	.comm	_REG_A6XX_VBIF_TEST_BUS1_CTRL1,4,2 ; @REG_A6XX_VBIF_TEST_BUS1_CTRL1
	.no_dead_strip	_a6xx_get_vbif_debugbus_block
.subsections_via_symbols
