	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_thread_suspend
_cmdq_thread_suspend:                   ## @cmdq_thread_suspend
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_CMDQ_THR_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMDQ_THR_SUSPEND_TASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	_CMDQ_THR_ENABLE_TASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_CMDQ_THR_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_CMDQ_THR_CURR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$10, %r8d
	callq	_readl_poll_timeout_atomic
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	movl	(%r15), %edx
	subl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDQ_THR_SUSPEND,4,2           ## @CMDQ_THR_SUSPEND
	.comm	_CMDQ_THR_SUSPEND_TASK,8,3      ## @CMDQ_THR_SUSPEND_TASK
	.comm	_CMDQ_THR_ENABLE_TASK,8,3       ## @CMDQ_THR_ENABLE_TASK
	.comm	_CMDQ_THR_ENABLED,4,2           ## @CMDQ_THR_ENABLED
	.comm	_CMDQ_THR_CURR_STATUS,8,3       ## @CMDQ_THR_CURR_STATUS
	.comm	_CMDQ_THR_STATUS_SUSPENDED,4,2  ## @CMDQ_THR_STATUS_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspend GCE thread 0x%x failed\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_cmdq_thread_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_thread_suspend
_cmdq_thread_suspend:                   ; @cmdq_thread_suspend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CMDQ_THR_SUSPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDQ_THR_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _CMDQ_THR_SUSPEND_TASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMDQ_THR_SUSPEND_TASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _CMDQ_THR_ENABLE_TASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMDQ_THR_ENABLE_TASK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh9:
	adrp	x8, _CMDQ_THR_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMDQ_THR_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _CMDQ_THR_CURR_STATUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CMDQ_THR_CURR_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #0
	mov	w4, #10
	bl	_readl_poll_timeout_atomic
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x19]
	sub	w2, w8, w9
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDQ_THR_SUSPEND,4,2           ; @CMDQ_THR_SUSPEND
	.comm	_CMDQ_THR_SUSPEND_TASK,8,3      ; @CMDQ_THR_SUSPEND_TASK
	.comm	_CMDQ_THR_ENABLE_TASK,8,3       ; @CMDQ_THR_ENABLE_TASK
	.comm	_CMDQ_THR_ENABLED,4,2           ; @CMDQ_THR_ENABLED
	.comm	_CMDQ_THR_CURR_STATUS,8,3       ; @CMDQ_THR_CURR_STATUS
	.comm	_CMDQ_THR_STATUS_SUSPENDED,4,2  ; @CMDQ_THR_STATUS_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspend GCE thread 0x%x failed\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_cmdq_thread_suspend
.subsections_via_symbols
