	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_off
_cqhci_off:                             ## @cqhci_off
	.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	8(%rdi), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_12
## %bb.2:
	cmpq	$0, 8(%r15)
	jne	LBB0_12
## %bb.3:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_CQHCI_HALT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_CQHCI_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_cqhci_writel
	xorl	%eax, %eax
	callq	_ktime_get
	movq	_CQHCI_OFF_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ktime_add_us
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ktime_compare
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_cqhci_readl
	testl	%eax, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	jle	LBB0_6
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mmc_hostname
	testq	%rbx, %rbx
	jle	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
LBB0_11:
	movl	$0, (%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CQHCI_HALT,4,2                 ## @CQHCI_HALT
	.comm	_CQHCI_CTL,4,2                  ## @CQHCI_CTL
	.comm	_CQHCI_OFF_TIMEOUT,4,2          ## @CQHCI_OFF_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cqhci: CQE stuck on\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: cqhci: CQE off\n"

	.no_dead_strip	_cqhci_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_off
_cqhci_off:                             ; @cqhci_off
	.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
	ldr	x20, [x0, #8]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.2:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_11
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_5:
Lloh0:
	adrp	x23, _CQHCI_HALT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CQHCI_HALT@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _CQHCI_CTL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CQHCI_CTL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_cqhci_writel
	bl	_ktime_get
Lloh4:
	adrp	x8, _CQHCI_OFF_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CQHCI_OFF_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_ktime_add_us
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ktime_get
	mov	x1, x21
	bl	_ktime_compare
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_cqhci_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	x22, #1, #0, eq
	b.lt	LBB0_6
; %bb.7:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
	cmp	x22, #1
	b.lt	LBB0_9
; %bb.8:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CQHCI_HALT,4,2                 ; @CQHCI_HALT
	.comm	_CQHCI_CTL,4,2                  ; @CQHCI_CTL
	.comm	_CQHCI_OFF_TIMEOUT,4,2          ; @CQHCI_OFF_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cqhci: CQE stuck on\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: cqhci: CQE off\n"

	.no_dead_strip	_cqhci_off
.subsections_via_symbols
