	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_get_registers
_a6xx_get_registers:                    ## @a6xx_get_registers
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_a6xx_ahb_reglist@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	movq	_a6xx_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	addl	%r12d, %ebx
	movq	_a6xx_hlsq_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	addl	%ebx, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_state_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, (%r14)
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	addq	%rbx, %rdx
	incq	%r12
	movq	8(%r14), %rcx
	addq	%rbx, %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_a6xx_get_ahb_gpu_registers
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
	jmp	LBB0_3
LBB0_2:
	xorl	%r12d, %r12d
LBB0_3:
	movq	_a6xx_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.12:
	movl	%r12d, %r12d
	leaq	(,%r12,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_a6xx_reglist@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	addq	%r15, %rdx
	movq	8(%r14), %rcx
	addq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%r15, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_a6xx_get_crashdumper_registers
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_13
## %bb.7:
	movq	%r14, %r13
	addl	%ebx, %r12d
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %r13
LBB0_8:
	movq	_a6xx_hlsq_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_11
## %bb.9:
	movl	%r12d, %eax
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_a6xx_hlsq_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	8(%r13), %rcx
	addq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rbx, %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %r8
	callq	_a6xx_get_crashdumper_hlsq_registers
	incq	%r12
	movq	_a6xx_hlsq_reglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a6xx_ahb_reglist,8,3           ## @a6xx_ahb_reglist
	.comm	_a6xx_reglist,8,3               ## @a6xx_reglist
	.comm	_a6xx_hlsq_reglist,8,3          ## @a6xx_hlsq_reglist
	.no_dead_strip	_a6xx_get_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_get_registers
_a6xx_get_registers:                    ; @a6xx_get_registers
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _a6xx_ahb_reglist@GOTPAGE
Lloh1:
	ldr	x25, [x25, _a6xx_ahb_reglist@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x22, x0
Lloh2:
	adrp	x24, _a6xx_reglist@GOTPAGE
Lloh3:
	ldr	x24, [x24, _a6xx_reglist@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	w22, w0, w22
Lloh4:
	adrp	x23, _a6xx_hlsq_reglist@GOTPAGE
Lloh5:
	ldr	x23, [x23, _a6xx_hlsq_reglist@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	w22, w22, w0
	mov	x0, x20
	mov	x1, x22
	mov	w2, #4
	bl	_state_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.1:
	str	w22, [x20]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x26, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x2, x8, x26
	ldr	x8, [x20, #8]
	add	x22, x22, #1
	add	x3, x8, x26
	mov	x0, x21
	mov	x1, x20
	bl	_a6xx_get_ahb_gpu_registers
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	add	x26, x26, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x26, #0
	mov	x25, #0
	mov	w22, w22
	lsl	x27, x22, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x2, x8, x26
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	add	x3, x8, x26
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_a6xx_get_crashdumper_registers
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x26, x26, #4
	cmp	x25, w0, sxtw
	b.lt	LBB0_7
; %bb.8:
	add	w22, w22, w25
LBB0_9:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x24, #0
	mov	x25, #0
	mov	w8, w22
	lsl	x22, x8, #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x2, x8, x24
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	add	x3, x8, x24
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_a6xx_get_crashdumper_hlsq_registers
	add	x25, x25, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	x24, x24, #4
	cmp	x25, w0, sxtw
	b.lt	LBB0_11
LBB0_12:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_a6xx_ahb_reglist,8,3           ; @a6xx_ahb_reglist
	.comm	_a6xx_reglist,8,3               ; @a6xx_reglist
	.comm	_a6xx_hlsq_reglist,8,3          ; @a6xx_hlsq_reglist
	.no_dead_strip	_a6xx_get_registers
.subsections_via_symbols
