	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sdhci_set_tap
_tegra_sdhci_set_tap:                   ## @tegra_sdhci_set_tap
	.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	%esi, %ebx
	movq	%rdi, %r15
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	(%rax), %r12
	movq	_NVQUIRK_DIS_CARD_CLK_CONFIG_TAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_tegra_sdhci_configure_card_clk
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	_SDHCI_TEGRA_VENDOR_CLOCK_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CLOCK_CTRL_TAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_SDHCI_CLOCK_CTRL_TAP_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sdhci_writel
	movq	_NVQUIRK_DIS_CARD_CLK_CONFIG_TAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	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	%r15, %rdi
	callq	_sdhci_reset
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_sdhci_configure_card_clk ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVQUIRK_DIS_CARD_CLK_CONFIG_TAP,4,2 ## @NVQUIRK_DIS_CARD_CLK_CONFIG_TAP
	.comm	_SDHCI_TEGRA_VENDOR_CLOCK_CTRL,4,2 ## @SDHCI_TEGRA_VENDOR_CLOCK_CTRL
	.comm	_SDHCI_CLOCK_CTRL_TAP_MASK,4,2  ## @SDHCI_CLOCK_CTRL_TAP_MASK
	.comm	_SDHCI_CLOCK_CTRL_TAP_SHIFT,4,2 ## @SDHCI_CLOCK_CTRL_TAP_SHIFT
	.comm	_SDHCI_RESET_CMD,4,2            ## @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.no_dead_strip	_tegra_sdhci_set_tap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sdhci_set_tap
_tegra_sdhci_set_tap:                   ; @tegra_sdhci_set_tap
	.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, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _NVQUIRK_DIS_CARD_CLK_CONFIG_TAP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVQUIRK_DIS_CARD_CLK_CONFIG_TAP@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_tegra_sdhci_configure_card_clk
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh2:
	adrp	x24, _SDHCI_TEGRA_VENDOR_CLOCK_CTRL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SDHCI_TEGRA_VENDOR_CLOCK_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_sdhci_readl
Lloh4:
	adrp	x8, _SDHCI_CLOCK_CTRL_TAP_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDHCI_CLOCK_CTRL_TAP_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh7:
	adrp	x9, _SDHCI_CLOCK_CTRL_TAP_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SDHCI_CLOCK_CTRL_TAP_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w1, w9, w8
	ldr	w2, [x24]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	w8, [x22]
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	b.ne	LBB0_5
; %bb.4:
	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_5:
	mov	w0, #1
	bl	_udelay
Lloh10:
	adrp	x8, _SDHCI_RESET_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDHCI_RESET_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SDHCI_RESET_DATA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDHCI_RESET_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_sdhci_reset
	mov	x0, x19
	mov	x1, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NVQUIRK_DIS_CARD_CLK_CONFIG_TAP,4,2 ; @NVQUIRK_DIS_CARD_CLK_CONFIG_TAP
	.comm	_SDHCI_TEGRA_VENDOR_CLOCK_CTRL,4,2 ; @SDHCI_TEGRA_VENDOR_CLOCK_CTRL
	.comm	_SDHCI_CLOCK_CTRL_TAP_MASK,4,2  ; @SDHCI_CLOCK_CTRL_TAP_MASK
	.comm	_SDHCI_CLOCK_CTRL_TAP_SHIFT,4,2 ; @SDHCI_CLOCK_CTRL_TAP_SHIFT
	.comm	_SDHCI_RESET_CMD,4,2            ; @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.no_dead_strip	_tegra_sdhci_set_tap
.subsections_via_symbols
