	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host1x_cdma_push               ## -- Begin function host1x_cdma_push
	.p2align	4, 0x90
_host1x_cdma_push:                      ## @host1x_cdma_push
	.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
	pushq	%rax
	.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, %rbx
	callq	_cdma_to_host1x
	movq	%rax, %r13
	movq	(%rbx), %r12
	movq	_host1x_debug_trace_cmdbuf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cdma_to_channel
	movl	(%rax), %edi
	callq	_dev_name
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_trace_host1x_cdma_push
LBB0_2:
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_host1x_hw_cdma_flush
	movq	_CDMA_EVENT_PUSH_BUFFER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_host1x_cdma_wait_locked
	movq	%rax, %r12
LBB0_4:
	leaq	12(%rbx), %rdi
	decq	%r12
	movq	%r12, (%rbx)
	incl	8(%rbx)
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_host1x_pushbuffer_push         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_host1x_debug_trace_cmdbuf,8,3  ## @host1x_debug_trace_cmdbuf
	.comm	_CDMA_EVENT_PUSH_BUFFER_SPACE,4,2 ## @CDMA_EVENT_PUSH_BUFFER_SPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host1x_cdma_push               ; -- Begin function host1x_cdma_push
	.p2align	2
_host1x_cdma_push:                      ; @host1x_cdma_push
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_cdma_to_host1x
	mov	x23, x0
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _host1x_debug_trace_cmdbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _host1x_debug_trace_cmdbuf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_cdma_to_channel
	ldr	w0, [x0]
	bl	_dev_name
	mov	x1, x20
	mov	x2, x19
	bl	_trace_host1x_cdma_push
LBB0_2:
	cbnz	x22, LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x1, x21
	bl	_host1x_hw_cdma_flush
Lloh3:
	adrp	x8, _CDMA_EVENT_PUSH_BUFFER_SPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDMA_EVENT_PUSH_BUFFER_SPACE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_host1x_cdma_wait_locked
	mov	x22, x0
LBB0_4:
	add	x0, x21, #12
	sub	x8, x22, #1
	str	x8, [x21]
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_host1x_pushbuffer_push
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_host1x_debug_trace_cmdbuf,8,3  ; @host1x_debug_trace_cmdbuf
	.comm	_CDMA_EVENT_PUSH_BUFFER_SPACE,4,2 ; @CDMA_EVENT_PUSH_BUFFER_SPACE
.subsections_via_symbols
