	.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, %r14
	movq	%rsi, %rbx
	movq	_HOST1X_CHANNEL_DMAPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_HOST1X_CHANNEL_DMAGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_HOST1X_CHANNEL_DMACTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, %r13
	movq	_HOST1X_CHANNEL_CMDP_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_HOST1X_CHANNEL_CMDP_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_HOST1X_CHANNEL_CHANNELSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_ch_readl
	movq	%rax, %r15
	movl	4(%rbx), %edi
	movl	8(%rbx), %r12d
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	_HOST1X_CHANNEL_DMACTRL_DMASTOP@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	testq	%r13, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	movq	_HOST1X_CLASS_HOST1X@GOTPCREL(%rip), %rax
	movq	%r14, %rdx
	cmpq	(%rax), %r14
	movq	%r13, %rcx
	jne	LBB0_5
## %bb.3:
	movq	_HOST1X_UCLASS_WAIT_SYNCPT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_host1x_debug_output
LBB0_6:
	movq	%r12, %rdx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_host1x_debug_output
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_host1x_debug_output
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_show_channel_gathers
	leaq	L_.str.6(%rip), %rsi
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	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
	.comm	_HOST1X_CHANNEL_CMDP_OFFSET,4,2 ## @HOST1X_CHANNEL_CMDP_OFFSET
	.comm	_HOST1X_CHANNEL_CMDP_CLASS,4,2  ## @HOST1X_CHANNEL_CMDP_CLASS
	.comm	_HOST1X_CHANNEL_CHANNELSTAT,4,2 ## @HOST1X_CHANNEL_CHANNELSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u-%s: "

	.comm	_HOST1X_CHANNEL_DMACTRL_DMASTOP,8,3 ## @HOST1X_CHANNEL_DMACTRL_DMASTOP
L_.str.1:                               ## @.str.1
	.asciz	"inactive\n\n"

	.comm	_HOST1X_CLASS_HOST1X,8,3        ## @HOST1X_CLASS_HOST1X
	.comm	_HOST1X_UCLASS_WAIT_SYNCPT,8,3  ## @HOST1X_UCLASS_WAIT_SYNCPT
L_.str.2:                               ## @.str.2
	.asciz	"waiting on syncpt\n"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"CHANNELSTAT %02x\n"

L_.str.6:                               ## @.str.6
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
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	x23, x0
Lloh9:
	adrp	x8, _HOST1X_CHANNEL_CMDP_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOST1X_CHANNEL_CMDP_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x25, x0
Lloh12:
	adrp	x8, _HOST1X_CHANNEL_CMDP_CLASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HOST1X_CHANNEL_CMDP_CLASS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x26, x0
Lloh15:
	adrp	x8, _HOST1X_CHANNEL_CHANNELSTAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HOST1X_CHANNEL_CHANNELSTAT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_host1x_ch_readl
	mov	x24, x0
	ldp	w0, w27, [x20, #4]
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
Lloh20:
	adrp	x8, _HOST1X_CHANNEL_DMACTRL_DMASTOP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOST1X_CHANNEL_DMACTRL_DMASTOP@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	tst	x8, x23
	b.eq	LBB0_2
LBB0_1:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.3:
Lloh25:
	adrp	x8, _HOST1X_CLASS_HOST1X@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HOST1X_CLASS_HOST1X@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_6
; %bb.4:
Lloh28:
	adrp	x8, _HOST1X_UCLASS_WAIT_SYNCPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HOST1X_UCLASS_WAIT_SYNCPT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_6
; %bb.5:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	stp	x26, x25, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_host1x_debug_output
	stp	x22, x23, [sp, #8]
	str	x21, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
	str	x24, [sp]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_host1x_debug_output
	mov	x0, x19
	mov	x1, x20
	bl	_show_channel_gathers
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_host1x_debug_output
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.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
	.comm	_HOST1X_CHANNEL_CMDP_OFFSET,4,2 ; @HOST1X_CHANNEL_CMDP_OFFSET
	.comm	_HOST1X_CHANNEL_CMDP_CLASS,4,2  ; @HOST1X_CHANNEL_CMDP_CLASS
	.comm	_HOST1X_CHANNEL_CHANNELSTAT,4,2 ; @HOST1X_CHANNEL_CHANNELSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u-%s: "

	.comm	_HOST1X_CHANNEL_DMACTRL_DMASTOP,8,3 ; @HOST1X_CHANNEL_DMACTRL_DMASTOP
l_.str.1:                               ; @.str.1
	.asciz	"inactive\n\n"

	.comm	_HOST1X_CLASS_HOST1X,8,3        ; @HOST1X_CLASS_HOST1X
	.comm	_HOST1X_UCLASS_WAIT_SYNCPT,8,3  ; @HOST1X_UCLASS_WAIT_SYNCPT
l_.str.2:                               ; @.str.2
	.asciz	"waiting on syncpt\n"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"CHANNELSTAT %02x\n"

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

	.no_dead_strip	_host1x_debug_show_channel_cdma
.subsections_via_symbols
