	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_thread_reset
_cmdq_thread_reset:                     ## @cmdq_thread_reset
	.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_DO_WARM_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMDQ_THR_WARM_RESET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$10, %r8d
	callq	_readl_poll_timeout_atomic
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	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
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDQ_THR_DO_WARM_RESET,4,2     ## @CMDQ_THR_DO_WARM_RESET
	.comm	_CMDQ_THR_WARM_RESET,8,3        ## @CMDQ_THR_WARM_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset GCE thread 0x%x failed\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_thread_reset
_cmdq_thread_reset:                     ; @cmdq_thread_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CMDQ_THR_DO_WARM_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDQ_THR_DO_WARM_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x1]
Lloh3:
	adrp	x21, _CMDQ_THR_WARM_RESET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CMDQ_THR_WARM_RESET@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	w2, #1
	mov	w3, #0
	mov	w4, #10
	bl	_readl_poll_timeout_atomic
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x19]
	sub	w2, w8, w9
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDQ_THR_DO_WARM_RESET,4,2     ; @CMDQ_THR_DO_WARM_RESET
	.comm	_CMDQ_THR_WARM_RESET,8,3        ; @CMDQ_THR_WARM_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset GCE thread 0x%x failed\n"

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