	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_mbox_send_data
_cmdq_mbox_send_data:                   ## @cmdq_mbox_send_data
	.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	%rsi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_WARN_ON
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, 32(%rax)
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%r15), %rax
	movq	%rax, 8(%r12)
	movq	%r14, 24(%r12)
	movq	%r15, 16(%r12)
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	callq	_clk_enable
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cmdq_thread_reset
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	8(%r12), %rdi
	movq	_CMDQ_THR_CURR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	movq	_CMDQ_THR_END_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	24(%r14), %rdi
	movq	_CMDQ_THR_PRIORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_CMDQ_THR_IRQ_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_CMDQ_THR_IRQ_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_CMDQ_THR_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_CMDQ_THR_ENABLE_TASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cmdq_thread_suspend
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_CMDQ_THR_CURR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CMDQ_THR_END_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, %r13
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_cmdq_thread_is_in_wfe
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_cmdq_task_insert_into_thread
	movq	%r12, %rdi
	callq	_cmdq_task_remove_wfe
	jmp	LBB0_12
LBB0_8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r13, %rcx
	je	LBB0_10
## %bb.9:
	movq	_CMDQ_INST_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rax, %r13
	cmpq	%r13, %rcx
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	callq	_cmdq_task_insert_into_thread
LBB0_12:
	xorl	%eax, %eax
	callq	_smp_mb
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	callq	_cmdq_thread_resume
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_cmdq_thread_wait_end
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cmdq_thread_suspend
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_10:
	movq	8(%r12), %rdi
	movq	_CMDQ_THR_CURR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
LBB0_13:
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	movq	_CMDQ_THR_END_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_cmdq_thread_resume
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_move_tail
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMDQ_THR_CURR_ADDR,8,3         ## @CMDQ_THR_CURR_ADDR
	.comm	_CMDQ_THR_END_ADDR,8,3          ## @CMDQ_THR_END_ADDR
	.comm	_CMDQ_THR_PRIORITY,8,3          ## @CMDQ_THR_PRIORITY
	.comm	_CMDQ_THR_IRQ_EN,8,3            ## @CMDQ_THR_IRQ_EN
	.comm	_CMDQ_THR_IRQ_ENABLE,8,3        ## @CMDQ_THR_IRQ_ENABLE
	.comm	_CMDQ_THR_ENABLED,8,3           ## @CMDQ_THR_ENABLED
	.comm	_CMDQ_THR_ENABLE_TASK,8,3       ## @CMDQ_THR_ENABLE_TASK
	.comm	_CMDQ_INST_SIZE,8,3             ## @CMDQ_INST_SIZE
	.no_dead_strip	_cmdq_mbox_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_mbox_send_data
_cmdq_mbox_send_data:                   ; @cmdq_mbox_send_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	ldp	x8, x19, [x0]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	w0, [x0]
	bl	_WARN_ON
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x22, [x0, #32]
	bl	_INIT_LIST_HEAD
	ldr	x8, [x21, #8]
	stp	x21, x19, [x20, #16]
	str	x8, [x20, #8]
	mov	x0, x19
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x22, #4]
	bl	_clk_enable
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN_ON
	mov	x0, x22
	mov	x1, x19
	bl	_cmdq_thread_reset
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN_ON
	ldr	x0, [x20, #8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CMDQ_THR_CURR_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMDQ_THR_CURR_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _CMDQ_THR_END_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMDQ_THR_END_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #24]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _CMDQ_THR_PRIORITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMDQ_THR_PRIORITY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _CMDQ_THR_IRQ_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMDQ_THR_IRQ_EN@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _CMDQ_THR_IRQ_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMDQ_THR_IRQ_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh18:
	adrp	x8, _CMDQ_THR_ENABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMDQ_THR_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _CMDQ_THR_ENABLE_TASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CMDQ_THR_ENABLE_TASK@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_13
LBB0_3:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	bl	_cmdq_thread_suspend
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN_ON
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x26, _CMDQ_THR_CURR_ADDR@GOTPAGE
Lloh28:
	ldr	x26, [x26, _CMDQ_THR_CURR_ADDR@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	mov	x24, x0
	ldr	x8, [x19, #8]
Lloh29:
	adrp	x25, _CMDQ_THR_END_ADDR@GOTPAGE
Lloh30:
	ldr	x25, [x25, _CMDQ_THR_END_ADDR@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_cmdq_thread_is_in_wfe
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_cmdq_task_insert_into_thread
	mov	x0, x20
	bl	_cmdq_task_remove_wfe
	b	LBB0_9
LBB0_7:
Lloh31:
	adrp	x8, _CMDQ_INST_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CMDQ_INST_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	sub	x8, x23, x8
	cmp	x24, x23
	ccmp	x24, x8, #4, ne
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_cmdq_task_insert_into_thread
LBB0_9:
	bl	_smp_mb
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_cmdq_thread_resume
	mov	x0, x19
	mov	x1, x23
	bl	_cmdq_thread_wait_end
	mov	x0, x22
	mov	x1, x19
	bl	_cmdq_thread_suspend
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN_ON
LBB0_11:
	ldr	x0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_cmdq_thread_resume
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_list_move_tail
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMDQ_THR_CURR_ADDR,8,3         ; @CMDQ_THR_CURR_ADDR
	.comm	_CMDQ_THR_END_ADDR,8,3          ; @CMDQ_THR_END_ADDR
	.comm	_CMDQ_THR_PRIORITY,8,3          ; @CMDQ_THR_PRIORITY
	.comm	_CMDQ_THR_IRQ_EN,8,3            ; @CMDQ_THR_IRQ_EN
	.comm	_CMDQ_THR_IRQ_ENABLE,8,3        ; @CMDQ_THR_IRQ_ENABLE
	.comm	_CMDQ_THR_ENABLED,8,3           ; @CMDQ_THR_ENABLED
	.comm	_CMDQ_THR_ENABLE_TASK,8,3       ; @CMDQ_THR_ENABLE_TASK
	.comm	_CMDQ_INST_SIZE,8,3             ; @CMDQ_INST_SIZE
	.no_dead_strip	_cmdq_mbox_send_data
.subsections_via_symbols
