	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sdhci_execute_tuning
_tegra_sdhci_execute_tuning:            ## @tegra_sdhci_execute_tuning
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	$10, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_tegra_sdhci_set_tap
	movl	(%r15), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mmc_send_tuning
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	cmpl	$255, %r12d
	jne	LBB0_1
## %bb.3:
	movl	$255, %r12d
LBB0_4:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	leal	1(%rax), %ebx
	cmpl	$253, %eax
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tegra_sdhci_set_tap
	movl	(%r15), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mmc_send_tuning
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	decl	%ebx
LBB0_8:
	subl	%r12d, %ebx
	leal	(%rbx,%rbx,2), %esi
	shrl	$2, %esi
	addl	%r12d, %esi
	movq	%r15, %rdi
	callq	_tegra_sdhci_set_tap
	movl	(%r15), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_send_tuning                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tegra_sdhci_execute_tuning
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sdhci_execute_tuning
_tegra_sdhci_execute_tuning:            ; @tegra_sdhci_execute_tuning
	.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	x19, x1
	mov	x20, x0
	mov	w21, #10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_tegra_sdhci_set_tap
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_mmc_send_tuning
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w21, #1
	cmp	w21, #255
	b.ne	LBB0_1
LBB0_3:
	mov	x8, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w8, #1
	cmp	w8, #253
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_tegra_sdhci_set_tap
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_mmc_send_tuning
	mov	x8, x22
	cbz	w0, LBB0_4
; %bb.6:
	sub	w22, w22, #1
LBB0_7:
	sub	w8, w22, w21
	add	w8, w8, w8, lsl #1
	add	w1, w21, w8, lsr #2
	mov	x0, x20
	bl	_tegra_sdhci_set_tap
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	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	_mmc_send_tuning
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tegra_sdhci_execute_tuning
.subsections_via_symbols
