	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sdhci_writel
_tegra_sdhci_writel:                    ## @tegra_sdhci_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	(%rax), %r12
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SDHCI_INT_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_SDHCI_INT_CRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
LBB0_2:
	movslq	%ebx, %rbx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_NVQUIRK_ENABLE_BLOCK_GAP_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	setne	%al
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_SDHCI_BLOCK_GAP_CONTROL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readb
                                        ## kill: def $eax killed $eax def $rax
	movq	_SDHCI_INT_CARD_INT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %r15d
	setne	%dl
	andl	$-9, %eax
	leal	(%rax,%rdx,8), %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeb                         ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_TIMEOUT,4,2          ## @SDHCI_INT_TIMEOUT
	.comm	_SDHCI_INT_CRC,4,2              ## @SDHCI_INT_CRC
	.comm	_NVQUIRK_ENABLE_BLOCK_GAP_DET,4,2 ## @NVQUIRK_ENABLE_BLOCK_GAP_DET
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_BLOCK_GAP_CONTROL,8,3    ## @SDHCI_BLOCK_GAP_CONTROL
	.comm	_SDHCI_INT_CARD_INT,4,2         ## @SDHCI_INT_CARD_INT
	.no_dead_strip	_tegra_sdhci_writel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sdhci_writel
_tegra_sdhci_writel:                    ; @tegra_sdhci_writel
	.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, x2
	mov	x20, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SDHCI_INT_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_INT_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SDHCI_INT_CRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_INT_CRC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w20, w8
LBB0_2:
	ldr	x8, [x19]
	add	x1, x8, w21, sxtw
	mov	x0, x20
	bl	_writel
	ldr	w8, [x22]
Lloh9:
	adrp	x9, _NVQUIRK_ENABLE_BLOCK_GAP_DET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVQUIRK_ENABLE_BLOCK_GAP_DET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
Lloh12:
	adrp	x8, _SDHCI_INT_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_INT_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ccmp	w8, w21, #0, ne
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
Lloh15:
	adrp	x21, _SDHCI_BLOCK_GAP_CONTROL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _SDHCI_BLOCK_GAP_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readb
Lloh17:
	adrp	x8, _SDHCI_INT_CARD_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDHCI_INT_CARD_INT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	bfi	w0, w8, #3, #1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writeb
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_TIMEOUT,4,2          ; @SDHCI_INT_TIMEOUT
	.comm	_SDHCI_INT_CRC,4,2              ; @SDHCI_INT_CRC
	.comm	_NVQUIRK_ENABLE_BLOCK_GAP_DET,4,2 ; @NVQUIRK_ENABLE_BLOCK_GAP_DET
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_BLOCK_GAP_CONTROL,8,3    ; @SDHCI_BLOCK_GAP_CONTROL
	.comm	_SDHCI_INT_CARD_INT,4,2         ; @SDHCI_INT_CARD_INT
	.no_dead_strip	_tegra_sdhci_writel
.subsections_via_symbols
