	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra210_sdhci_writew
_tegra210_sdhci_writew:                 ## @tegra210_sdhci_writew
	.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, %r15d
	movq	%rdi, %r14
	movq	_SDHCI_COMMAND@GOTPCREL(%rip), %rax
	movb	$1, %r13b
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_SDHCI_GET_CMD
	movq	_MMC_SEND_TUNING_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_MMC_SEND_TUNING_BLOCK_HS200@GOTPCREL(%rip), %rcx
                                        ## implicit-def: $r12d
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tegra_sdhci_configure_card_clk
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $r12d
LBB0_5:
	movslq	%ebx, %rsi
	addq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_writew
	testb	%r13b, %r13b
	je	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %edi
	callq	_udelay
	movq	_SDHCI_RESET_CMD@GOTPCREL(%rip), %rax
	movq	_SDHCI_RESET_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_reset
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_sdhci_configure_card_clk ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_COMMAND,4,2              ## @SDHCI_COMMAND
	.comm	_MMC_SEND_TUNING_BLOCK,8,3      ## @MMC_SEND_TUNING_BLOCK
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ## @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_SDHCI_RESET_CMD,4,2            ## @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.no_dead_strip	_tegra210_sdhci_writew
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra210_sdhci_writew
_tegra210_sdhci_writew:                 ; @tegra210_sdhci_writew
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SDHCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_SDHCI_GET_CMD
Lloh3:
	adrp	x8, _MMC_SEND_TUNING_BLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_SEND_TUNING_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_tegra_sdhci_configure_card_clk
	mov	x22, x0
	mov	w23, #0
	b	LBB0_4
LBB0_3:
	mov	w23, #1
                                        ; implicit-def: $w22
LBB0_4:
	ldr	x8, [x19]
	add	x1, x8, w21, sxtw
	mov	x0, x20
	bl	_writew
	tbz	w23, #0, LBB0_6
; %bb.5:
	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
LBB0_6:
	mov	w0, #1
	bl	_udelay
Lloh9:
	adrp	x8, _SDHCI_RESET_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_RESET_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SDHCI_RESET_DATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_RESET_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_sdhci_reset
	mov	x0, x19
	mov	x1, x22
	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
	b	_tegra_sdhci_configure_card_clk
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_COMMAND,4,2              ; @SDHCI_COMMAND
	.comm	_MMC_SEND_TUNING_BLOCK,8,3      ; @MMC_SEND_TUNING_BLOCK
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ; @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_SDHCI_RESET_CMD,4,2            ; @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.no_dead_strip	_tegra210_sdhci_writew
.subsections_via_symbols
