	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_cqhci_writel
_tegra_cqhci_writel:                    ## @tegra_cqhci_writel
	.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
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_CQHCI_CTL@GOTPCREL(%rip), %r14
	cmpl	%edx, (%r14)
	jne	LBB0_8
## %bb.1:
	movq	_CQHCI_HALT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
LBB0_8:
	movslq	%ebx, %r15
	addq	(%r12), %r15
LBB0_9:
	movl	%r13d, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_2:
	movq	8(%r12), %r15
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cqhci_readl
	movq	_CQHCI_HALT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	_sdhci_cqe_enable
	movslq	%ebx, %r15
	movq	(%r12), %rsi
	addq	%r15, %rsi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	$50, %esi
	callq	_ktime_add_us
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ktime_compare
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_cqhci_readl
	movq	_CQHCI_HALT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rbx, %rbx
	jle	LBB0_4
LBB0_6:
	testq	%rbx, %rbx
	jle	LBB0_10
## %bb.7:
	addq	(%r12), %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CQHCI_CTL,4,2                  ## @CQHCI_CTL
	.comm	_CQHCI_HALT,4,2                 ## @CQHCI_HALT
	.no_dead_strip	_tegra_cqhci_writel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_cqhci_writel
_tegra_cqhci_writel:                    ; @tegra_cqhci_writel
	.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, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _CQHCI_CTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CQHCI_CTL@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x24, _CQHCI_HALT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CQHCI_HALT@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	add	x1, x8, w21, sxtw
LBB0_3:
	mov	x0, x19
	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
	b	_writel
LBB0_4:
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_cqhci_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.5:
	mov	x0, x22
	bl	_sdhci_cqe_enable
	ldr	x8, [x20]
	sxtw	x25, w21
	add	x1, x8, x25
	mov	x0, x19
	bl	_writel
	bl	_ktime_get
	mov	w1, #50
	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, [x23]
	mov	x0, x20
	bl	_cqhci_readl
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	x22, #1, #0, ne
	b.lt	LBB0_6
; %bb.7:
	cmp	x22, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x20]
	add	x1, x8, x25
	b	LBB0_3
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CQHCI_CTL,4,2                  ; @CQHCI_CTL
	.comm	_CQHCI_HALT,4,2                 ; @CQHCI_HALT
	.no_dead_strip	_tegra_cqhci_writel
.subsections_via_symbols
