	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_execute_tuning
_tmio_mmc_execute_tuning:               ## @tmio_mmc_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	%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, %r15d
	movq	%rdi, %r14
	callq	_mmc_priv
	movq	(%rax), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	movq	%rax, %r13
	cmpq	$0, 8(%rax)
	je	LBB0_14
## %bb.2:
	movq	%r13, %rdi
	callq	*%rcx
	movl	%eax, 16(%r13)
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	addl	%eax, %eax
	movslq	%eax, %rcx
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shlq	$2, %rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_4
## %bb.5:
	movl	32(%r13), %edi
	movl	%eax, %esi
	callq	_bitmap_zero
	movl	16(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movl	16(%r13), %ecx
	leal	(%rcx,%rcx), %eax
	cmpl	%eax, %ebx
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %r8
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	*%r8
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_mmc_send_tuning
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r13), %esi
	movl	%ebx, %edi
	callq	_set_bit
	jmp	LBB0_11
LBB0_4:
	movq	24(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn_once
	jmp	LBB0_14
LBB0_12:
	movq	%r13, %rdi
	callq	*8(%r13)
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:
	movq	24(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_tmio_mmc_hw_reset
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many taps, skipping tuning. Please consider updating size of taps field of tmio_mmc_host\n"

L_.str.1:                               ## @.str.1
	.asciz	"Tuning procedure failed\n"

	.no_dead_strip	_tmio_mmc_execute_tuning
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_execute_tuning
_tmio_mmc_execute_tuning:               ; @tmio_mmc_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	x21, x1
	mov	x19, x0
	bl	_mmc_priv
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_11
; %bb.2:
	mov	x0, x20
	blr	x8
	str	w0, [x20, #16]
	cbz	w0, LBB0_11
; %bb.3:
	lsl	w1, w0, #1
	sxtw	x8, w1
Lloh0:
	adrp	x9, _BITS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsl #2
	b.hs	LBB0_13
; %bb.4:
	ldr	w0, [x20, #32]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_bitmap_zero
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20, #16]
	cmp	w22, w8, lsl #1
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sdiv	w10, w22, w8
	msub	w1, w10, w8, w22
	mov	x0, x20
	blr	x9
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_mmc_send_tuning
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x20, #32]
	mov	x0, x22
	bl	_set_bit
	b	LBB0_6
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	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
LBB0_13:
	ldr	x0, [x20, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn_once
	mov	w21, #0
	b	LBB0_12
LBB0_14:
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	tbz	w0, #31, LBB0_12
; %bb.15:
	ldr	x0, [x20, #24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	bl	_tmio_mmc_hw_reset
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many taps, skipping tuning. Please consider updating size of taps field of tmio_mmc_host\n"

l_.str.1:                               ; @.str.1
	.asciz	"Tuning procedure failed\n"

	.no_dead_strip	_tmio_mmc_execute_tuning
.subsections_via_symbols
