	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function host1x_debug_show_channel_fifo
_host1x_debug_show_channel_fifo:        ## @host1x_debug_show_channel_fifo
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	_HOST1X_CHANNEL_FIFOSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_host1x_ch_readl
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	%rbx, %rdi
	callq	_HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_host1x_debug_output            ## TAILCALL
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_HOST1X_SYNC_CFPEEK_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_host1x_sync_writel
	movl	$1, %edi
	callq	_HOST1X_SYNC_CFPEEK_CTRL_ENA_F
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F
	orl	%eax, %ebx
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_host1x_sync_writel
	movq	_HOST1X_SYNC_CFPEEK_PTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_host1x_sync_readl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_HOST1X_SYNC_CF_SETUP
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_host1x_sync_readl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HOST1X_SYNC_CF_SETUP_BASE_V
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_HOST1X_SYNC_CF_SETUP_LIMIT_V
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r13d
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_host1x_debug_cont
	decl	%r13d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	leaq	1(%r14), %rax
	cmoveq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, %r14
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HOST1X_SYNC_CFPEEK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_host1x_sync_writel
	movl	$1, %edi
	callq	_HOST1X_SYNC_CFPEEK_CTRL_ENA_F
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_HOST1X_SYNC_CFPEEK_CTRL_ADDR_F
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_HOST1X_SYNC_CFPEEK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_host1x_sync_writel
	movq	_HOST1X_SYNC_CFPEEK_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_host1x_sync_readl
	movq	%rax, %r15
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_show_channel_command
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_6:
	testl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_cont
LBB0_8:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	_HOST1X_SYNC_CFPEEK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_host1x_sync_writel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u: fifo:\n"

	.comm	_HOST1X_CHANNEL_FIFOSTAT,4,2    ## @HOST1X_CHANNEL_FIFOSTAT
L_.str.1:                               ## @.str.1
	.asciz	"FIFOSTAT %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"[empty]\n"

	.comm	_HOST1X_SYNC_CFPEEK_CTRL,4,2    ## @HOST1X_SYNC_CFPEEK_CTRL
	.comm	_HOST1X_SYNC_CFPEEK_PTRS,4,2    ## @HOST1X_SYNC_CFPEEK_PTRS
	.comm	_HOST1X_SYNC_CFPEEK_READ,4,2    ## @HOST1X_SYNC_CFPEEK_READ
L_.str.3:                               ## @.str.3
	.asciz	"%08x: "

L_.str.4:                               ## @.str.4
	.asciz	"%08x%s"

L_.str.5:                               ## @.str.5
	.asciz	", "

L_.str.6:                               ## @.str.6
	.asciz	"])\n"

L_.str.7:                               ## @.str.7
	.asciz	", ...])\n"

L_.str.8:                               ## @.str.8
	.asciz	"\n"

	.no_dead_strip	_host1x_debug_show_channel_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function host1x_debug_show_channel_fifo
_host1x_debug_show_channel_fifo:        ; @host1x_debug_show_channel_fifo
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_host1x_debug_output
Lloh2:
	adrp	x8, _HOST1X_CHANNEL_FIFOSTAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HOST1X_CHANNEL_FIFOSTAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_host1x_ch_readl
	mov	x22, x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_host1x_debug_output
	mov	x0, x22
	bl	_HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	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
	b	_host1x_debug_output
LBB0_2:
Lloh9:
	adrp	x27, _HOST1X_SYNC_CFPEEK_CTRL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _HOST1X_SYNC_CFPEEK_CTRL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w1, #0
	bl	_host1x_sync_writel
	mov	w0, #1
	bl	_HOST1X_SYNC_CFPEEK_CTRL_ENA_F
	mov	x22, x0
	ldr	w0, [x21]
	bl	_HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F
	orr	w1, w0, w22
	ldr	w2, [x27]
	mov	x0, x19
	bl	_host1x_sync_writel
Lloh11:
	adrp	x8, _HOST1X_SYNC_CFPEEK_PTRS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HOST1X_SYNC_CFPEEK_PTRS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_host1x_sync_readl
	mov	x23, x0
	bl	_HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V
	mov	x22, x0
	mov	x0, x23
	bl	_HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V
	mov	x23, x0
	ldr	w0, [x21]
	bl	_HOST1X_SYNC_CF_SETUP
	mov	x1, x0
	mov	x0, x19
	bl	_host1x_sync_readl
	mov	x25, x0
	bl	_HOST1X_SYNC_CF_SETUP_BASE_V
	mov	x24, x0
	mov	x0, x25
	bl	_HOST1X_SYNC_CF_SETUP_LIMIT_V
	mov	x25, x0
	mov	w28, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	subs	w28, w28, #1
Lloh14:
	adrp	x8, l_.str.5@PAGE
Lloh15:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh16:
	adrp	x9, l_.str.6@PAGE
Lloh17:
	add	x9, x9, l_.str.6@PAGEOFF
	csel	x8, x9, x8, eq
	stp	x26, x8, [sp]
	mov	x0, x20
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_host1x_debug_cont
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x25
	csinc	x22, x24, x22, eq
	cmp	x22, x23
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x27]
	mov	x0, x19
	mov	w1, #0
	bl	_host1x_sync_writel
	mov	w0, #1
	bl	_HOST1X_SYNC_CFPEEK_CTRL_ENA_F
	mov	x26, x0
	ldr	w0, [x21]
	bl	_HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F
	orr	w26, w0, w26
	mov	x0, x22
	bl	_HOST1X_SYNC_CFPEEK_CTRL_ADDR_F
	orr	w1, w26, w0
	ldr	w2, [x27]
	mov	x0, x19
	bl	_host1x_sync_writel
Lloh20:
	adrp	x8, _HOST1X_SYNC_CFPEEK_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOST1X_SYNC_CFPEEK_READ@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_host1x_sync_readl
	mov	x26, x0
	cbnz	w28, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x26, [sp]
	mov	x0, x20
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_host1x_debug_output
	mov	x0, x20
	mov	x1, x26
	mov	x2, #0
	bl	_show_channel_command
	mov	x28, x0
	b	LBB0_4
LBB0_7:
	cbz	w28, LBB0_9
; %bb.8:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_host1x_debug_cont
LBB0_9:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_host1x_debug_output
	ldr	w2, [x27]
	mov	x0, x19
	mov	w1, #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
	b	_host1x_sync_writel
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u: fifo:\n"

	.comm	_HOST1X_CHANNEL_FIFOSTAT,4,2    ; @HOST1X_CHANNEL_FIFOSTAT
l_.str.1:                               ; @.str.1
	.asciz	"FIFOSTAT %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"[empty]\n"

	.comm	_HOST1X_SYNC_CFPEEK_CTRL,4,2    ; @HOST1X_SYNC_CFPEEK_CTRL
	.comm	_HOST1X_SYNC_CFPEEK_PTRS,4,2    ; @HOST1X_SYNC_CFPEEK_PTRS
	.comm	_HOST1X_SYNC_CFPEEK_READ,4,2    ; @HOST1X_SYNC_CFPEEK_READ
l_.str.3:                               ; @.str.3
	.asciz	"%08x: "

l_.str.4:                               ; @.str.4
	.asciz	"%08x%s"

l_.str.5:                               ; @.str.5
	.asciz	", "

l_.str.6:                               ; @.str.6
	.asciz	"])\n"

l_.str.7:                               ; @.str.7
	.asciz	", ...])\n"

l_.str.8:                               ; @.str.8
	.asciz	"\n"

	.no_dead_strip	_host1x_debug_show_channel_fifo
.subsections_via_symbols
