	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_cqe_enable               ## -- Begin function sdhci_cqe_enable
	.p2align	4, 0x90
_sdhci_cqe_enable:                      ## @sdhci_cqe_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_mmc_priv
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SDHCI_HOST_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readb
	movq	_SDHCI_CTRL_DMA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_SDHCI_CAN_DO_ADMA3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_SDHCI_CTRL_ADMA3@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_3:
	movq	_SDHCI_USE_64_BIT_DMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rbx)
	jne	LBB0_4
## %bb.5:
	movq	_SDHCI_CTRL_ADMA32@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_SDHCI_CTRL_ADMA64@GOTPCREL(%rip), %rdx
LBB0_6:
	notl	%ecx
	andl	%ecx, %eax
	orl	(%rdx), %eax
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writeb
	movl	24(%rbx), %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_SDHCI_MAKE_BLKSZ
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writew
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdhci_set_timeout
	movl	20(%rbx), %esi
	movl	%esi, 16(%rbx)
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movl	16(%rbx), %esi
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movl	$1, 8(%rbx)
	movq	%r15, %rdi
	callq	_mmc_hostname
	movl	%eax, %r15d
	movl	16(%rbx), %r12d
	movq	_SDHCI_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_pr_debug
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_HOST_CONTROL,4,2         ## @SDHCI_HOST_CONTROL
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ## @SDHCI_CTRL_DMA_MASK
	.comm	_SDHCI_CAN_DO_ADMA3,4,2         ## @SDHCI_CAN_DO_ADMA3
	.comm	_SDHCI_CTRL_ADMA3,4,2           ## @SDHCI_CTRL_ADMA3
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ## @SDHCI_USE_64_BIT_DMA
	.comm	_SDHCI_CTRL_ADMA64,4,2          ## @SDHCI_CTRL_ADMA64
	.comm	_SDHCI_CTRL_ADMA32,4,2          ## @SDHCI_CTRL_ADMA32
	.comm	_SDHCI_BLOCK_SIZE,4,2           ## @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: sdhci: CQE on, IRQ mask %#x, IRQ status %#x\n"

	.comm	_SDHCI_INT_STATUS,4,2           ## @SDHCI_INT_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_cqe_enable               ; -- Begin function sdhci_cqe_enable
	.p2align	2
_sdhci_cqe_enable:                      ; @sdhci_cqe_enable
	.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	x21, x0
	bl	_mmc_priv
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _SDHCI_HOST_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDHCI_HOST_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sdhci_readb
Lloh2:
	adrp	x8, _SDHCI_CTRL_DMA_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_CTRL_DMA_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x20]
Lloh5:
	adrp	x10, _SDHCI_CAN_DO_ADMA3@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SDHCI_CAN_DO_ADMA3@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _SDHCI_CTRL_ADMA3@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDHCI_CTRL_ADMA3@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20, #4]
Lloh10:
	adrp	x10, _SDHCI_USE_64_BIT_DMA@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SDHCI_USE_64_BIT_DMA@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _SDHCI_CTRL_ADMA64@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SDHCI_CTRL_ADMA64@GOTPAGEOFF]
Lloh15:
	adrp	x12, _SDHCI_CTRL_ADMA32@GOTPAGE
Lloh16:
	ldr	x12, [x12, _SDHCI_CTRL_ADMA32@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x12, x11, eq
LBB0_4:
	bic	w8, w0, w8
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x22]
	mov	x0, x20
	bl	_sdhci_writeb
	ldr	w0, [x20, #24]
	mov	w1, #512
	bl	_SDHCI_MAKE_BLKSZ
	mov	x1, x0
Lloh17:
	adrp	x8, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sdhci_writew
	mov	x0, x20
	mov	x1, #0
	bl	_sdhci_set_timeout
	ldr	w1, [x20, #20]
	str	w1, [x20, #16]
Lloh20:
	adrp	x8, _SDHCI_INT_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SDHCI_INT_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sdhci_writel
	ldr	w1, [x20, #16]
Lloh23:
	adrp	x8, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sdhci_writel
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_mmc_hostname
	mov	x21, x0
	ldr	w22, [x20, #16]
Lloh26:
	adrp	x8, _SDHCI_INT_STATUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SDHCI_INT_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_readl
	mov	x3, x0
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_pr_debug
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_HOST_CONTROL,4,2         ; @SDHCI_HOST_CONTROL
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ; @SDHCI_CTRL_DMA_MASK
	.comm	_SDHCI_CAN_DO_ADMA3,4,2         ; @SDHCI_CAN_DO_ADMA3
	.comm	_SDHCI_CTRL_ADMA3,4,2           ; @SDHCI_CTRL_ADMA3
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ; @SDHCI_USE_64_BIT_DMA
	.comm	_SDHCI_CTRL_ADMA64,4,2          ; @SDHCI_CTRL_ADMA64
	.comm	_SDHCI_CTRL_ADMA32,4,2          ; @SDHCI_CTRL_ADMA32
	.comm	_SDHCI_BLOCK_SIZE,4,2           ; @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: sdhci: CQE on, IRQ mask %#x, IRQ status %#x\n"

	.comm	_SDHCI_INT_STATUS,4,2           ; @SDHCI_INT_STATUS
.subsections_via_symbols
