	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function host1x_debug_show_channel_cdma
_host1x_debug_show_channel_cdma:        ## @host1x_debug_show_channel_cdma
	.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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_HOST1X_CHANNEL_DMAPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_host1x_ch_readl
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_HOST1X_CHANNEL_DMAGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_host1x_ch_readl
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_HOST1X_CHANNEL_DMACTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_host1x_ch_readl
	movl	%eax, %r14d
	movl	8(%r15), %edi
	callq	_HOST1X_SYNC_CBREAD
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_host1x_sync_readl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %edi
	callq	_HOST1X_SYNC_CBSTAT
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_host1x_sync_readl
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	movl	8(%r15), %r13d
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movl	%r14d, %edi
	callq	_HOST1X_CHANNEL_DMACTRL_DMASTOP_V
	leaq	L_.str.1(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	cmpl	$0, (%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.3:
	movl	%r13d, %r12d
	movl	%r13d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBCLASS_V
	movq	_HOST1X_CLASS_HOST1X@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
	movq	_HOST1X_UCLASS_WAIT_SYNCPT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	sarl	$24, %edx
	movl	%r13d, %ecx
	andl	$16777215, %ecx                 ## imm = 0xFFFFFF
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
	jmp	LBB0_10
LBB0_6:
	movl	%r12d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBCLASS_V
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.7:
	movl	%r12d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
	movq	_HOST1X_UCLASS_WAIT_SYNCPT_BASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %eax
	shrl	$16, %eax
	movzbl	%al, %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	callq	_HOST1X_SYNC_SYNCPT_BASE
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_host1x_sync_readl
                                        ## kill: def $eax killed $eax def $rax
	movzwl	%r13w, %esi
	movl	%r13d, %edx
	sarl	$24, %edx
	leal	(%rax,%rsi), %ecx
	movl	%esi, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_host1x_debug_output
	jmp	LBB0_10
LBB0_9:
	movl	%r12d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBCLASS_V
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r13d, %r12d
	movl	%eax, %ecx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_host1x_debug_output
LBB0_10:
	movl	%r14d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_show_channel_gathers
	leaq	L_.str.7(%rip), %rsi
LBB0_11:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_host1x_debug_output            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST1X_CHANNEL_DMAPUT,4,2      ## @HOST1X_CHANNEL_DMAPUT
	.comm	_HOST1X_CHANNEL_DMAGET,4,2      ## @HOST1X_CHANNEL_DMAGET
	.comm	_HOST1X_CHANNEL_DMACTRL,4,2     ## @HOST1X_CHANNEL_DMACTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u-%s: "

L_.str.1:                               ## @.str.1
	.asciz	"inactive\n\n"

	.comm	_HOST1X_CLASS_HOST1X,4,2        ## @HOST1X_CLASS_HOST1X
	.comm	_HOST1X_UCLASS_WAIT_SYNCPT,4,2  ## @HOST1X_UCLASS_WAIT_SYNCPT
L_.str.2:                               ## @.str.2
	.asciz	"waiting on syncpt %d val %d\n"

	.comm	_HOST1X_UCLASS_WAIT_SYNCPT_BASE,4,2 ## @HOST1X_UCLASS_WAIT_SYNCPT_BASE
L_.str.3:                               ## @.str.3
	.asciz	"waiting on syncpt %d val %d (base %d = %d; offset = %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"active class %02x, offset %04x, val %08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"DMAPUT %08x, DMAGET %08x, DMACTL %08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"CBREAD %08x, CBSTAT %08x\n"

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

	.no_dead_strip	_host1x_debug_show_channel_cdma
.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_cdma
_host1x_debug_show_channel_cdma:        ; @host1x_debug_show_channel_cdma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x26, x0
Lloh0:
	adrp	x8, _HOST1X_CHANNEL_DMAPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST1X_CHANNEL_DMAPUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x21, x0
Lloh3:
	adrp	x8, _HOST1X_CHANNEL_DMAGET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST1X_CHANNEL_DMAGET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x22, x0
Lloh6:
	adrp	x8, _HOST1X_CHANNEL_DMACTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST1X_CHANNEL_DMACTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x24, x0
	ldr	w0, [x20, #8]
	bl	_HOST1X_SYNC_CBREAD
	mov	x1, x0
	mov	x0, x26
	bl	_host1x_sync_readl
	mov	x23, x0
	ldr	w0, [x20, #8]
	bl	_HOST1X_SYNC_CBSTAT
	mov	x1, x0
	mov	x0, x26
	bl	_host1x_sync_readl
	mov	x25, x0
	ldp	w0, w27, [x20, #4]
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
	mov	x0, x24
	bl	_HOST1X_CHANNEL_DMACTRL_DMASTOP_V
	cbz	x0, LBB0_2
LBB0_1:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.3:
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBCLASS_V
Lloh13:
	adrp	x27, _HOST1X_CLASS_HOST1X@GOTPAGE
Lloh14:
	ldr	x27, [x27, _HOST1X_CLASS_HOST1X@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
Lloh15:
	adrp	x8, _HOST1X_UCLASS_WAIT_SYNCPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HOST1X_UCLASS_WAIT_SYNCPT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	asr	w8, w23, #24
	and	w9, w23, #0xffffff
	stp	x8, x9, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBCLASS_V
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
Lloh20:
	adrp	x8, _HOST1X_UCLASS_WAIT_SYNCPT_BASE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOST1X_UCLASS_WAIT_SYNCPT_BASE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	ubfx	w27, w23, #16, #8
	mov	x0, x27
	bl	_HOST1X_SYNC_SYNCPT_BASE
	mov	x1, x0
	mov	x0, x26
	bl	_host1x_sync_readl
                                        ; kill: def $w0 killed $w0 def $x0
	and	w8, w23, #0xffff
	asr	w9, w23, #24
	add	w10, w0, w8
	stp	x0, x8, [sp, #24]
	stp	x10, x27, [sp, #8]
	str	x9, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBCLASS_V
	mov	x26, x0
	mov	x0, x25
	bl	_HOST1X_SYNC_CBSTAT_CBOFFSET_V
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, x23
	stp	x0, x8, [sp, #8]
	str	x26, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_host1x_debug_output
	stp	x22, x24, [sp, #8]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
	stp	x23, x25, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
	mov	x0, x19
	mov	x1, x20
	bl	_show_channel_gathers
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_host1x_debug_output
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST1X_CHANNEL_DMAPUT,4,2      ; @HOST1X_CHANNEL_DMAPUT
	.comm	_HOST1X_CHANNEL_DMAGET,4,2      ; @HOST1X_CHANNEL_DMAGET
	.comm	_HOST1X_CHANNEL_DMACTRL,4,2     ; @HOST1X_CHANNEL_DMACTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u-%s: "

l_.str.1:                               ; @.str.1
	.asciz	"inactive\n\n"

	.comm	_HOST1X_CLASS_HOST1X,4,2        ; @HOST1X_CLASS_HOST1X
	.comm	_HOST1X_UCLASS_WAIT_SYNCPT,4,2  ; @HOST1X_UCLASS_WAIT_SYNCPT
l_.str.2:                               ; @.str.2
	.asciz	"waiting on syncpt %d val %d\n"

	.comm	_HOST1X_UCLASS_WAIT_SYNCPT_BASE,4,2 ; @HOST1X_UCLASS_WAIT_SYNCPT_BASE
l_.str.3:                               ; @.str.3
	.asciz	"waiting on syncpt %d val %d (base %d = %d; offset = %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"active class %02x, offset %04x, val %08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"DMAPUT %08x, DMAGET %08x, DMACTL %08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"CBREAD %08x, CBSTAT %08x\n"

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

	.no_dead_strip	_host1x_debug_show_channel_cdma
.subsections_via_symbols
