	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_v3d_debugfs_regs
_v3d_v3d_debugfs_regs:                  ## @v3d_v3d_debugfs_regs
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_to_v3d_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_v3d_hub_reg_defs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %r12d
	movl	4(%rax,%rbx,8), %r13d
	movl	%r12d, %edi
	callq	_V3D_READ
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$40, (%rax)
	jg	LBB0_7
## %bb.4:
	movq	_v3d_gca_reg_defs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %r12d
	movl	4(%rax,%rbx,8), %r13d
	movl	%r12d, %edi
	callq	_V3D_GCA_READ
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jle	LBB0_17
## %bb.8:
	movq	_v3d_core_reg_defs@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r13d
	movq	_v3d_core_reg_defs@GOTPCREL(%rip), %rbx
	jge	LBB0_17
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movl	(%rax,%r12,8), %ebx
	movl	4(%rax,%r12,8), %r14d
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_V3D_CORE_READ
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movq	_v3d_core_reg_defs@GOTPCREL(%rip), %rbx
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%r12
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v3d_has_csd
	testq	%rax, %rax
	movq	_v3d_csd_reg_defs@GOTPCREL(%rip), %r14
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %r12d
	movl	4(%rax,%rbx,8), %r14d
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_V3D_CORE_READ
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movq	_v3d_csd_reg_defs@GOTPCREL(%rip), %r14
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v3d_hub_reg_defs,8,3           ## @v3d_hub_reg_defs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s (0x%04x): 0x%08x\n"

	.comm	_v3d_gca_reg_defs,8,3           ## @v3d_gca_reg_defs
	.comm	_v3d_core_reg_defs,8,3          ## @v3d_core_reg_defs
L_.str.1:                               ## @.str.1
	.asciz	"core %d %s (0x%04x): 0x%08x\n"

	.comm	_v3d_csd_reg_defs,8,3           ## @v3d_csd_reg_defs
	.no_dead_strip	_v3d_v3d_debugfs_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_v3d_debugfs_regs
_v3d_v3d_debugfs_regs:                  ; @v3d_v3d_debugfs_regs
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_to_v3d_dev
	mov	x20, x0
Lloh0:
	adrp	x24, _v3d_hub_reg_defs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _v3d_hub_reg_defs@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25
	ldp	w23, w22, [x8]
	mov	x0, x23
	bl	_V3D_READ
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_seq_printf
	add	x26, x26, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x26, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #40
	b.gt	LBB0_7
; %bb.4:
Lloh4:
	adrp	x24, _v3d_gca_reg_defs@GOTPAGE
Lloh5:
	ldr	x24, [x24, _v3d_gca_reg_defs@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	mov	x26, #0
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25
	ldp	w23, w22, [x8]
	mov	x0, x23
	bl	_V3D_GCA_READ
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_seq_printf
	add	x26, x26, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x26, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.8:
	mov	w21, #0
Lloh8:
	adrp	x25, _v3d_core_reg_defs@GOTPAGE
Lloh9:
	ldr	x25, [x25, _v3d_core_reg_defs@GOTPAGEOFF]
Lloh10:
	adrp	x26, _v3d_csd_reg_defs@GOTPAGE
Lloh11:
	ldr	x26, [x26, _v3d_csd_reg_defs@GOTPAGEOFF]
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.ge	LBB0_17
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	add	x8, x8, x27
	ldp	w24, w23, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_V3D_CORE_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_seq_printf
	add	x28, x28, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	add	x27, x27, #8
	cmp	x28, w0, sxtw
	b.lt	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_v3d_has_csd
	cbz	x0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_16:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	add	x8, x8, x27
	ldp	w24, w23, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_V3D_CORE_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_seq_printf
	add	x28, x28, #1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	add	x27, x27, #8
	cmp	x28, w0, sxtw
	b.lt	LBB0_16
	b	LBB0_9
LBB0_17:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_v3d_hub_reg_defs,8,3           ; @v3d_hub_reg_defs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s (0x%04x): 0x%08x\n"

	.comm	_v3d_gca_reg_defs,8,3           ; @v3d_gca_reg_defs
	.comm	_v3d_core_reg_defs,8,3          ; @v3d_core_reg_defs
l_.str.1:                               ; @.str.1
	.asciz	"core %d %s (0x%04x): 0x%08x\n"

	.comm	_v3d_csd_reg_defs,8,3           ; @v3d_csd_reg_defs
	.no_dead_strip	_v3d_v3d_debugfs_regs
.subsections_via_symbols
