	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_adjust_fifoth
_dw_mci_adjust_fifoth:                  ## @dw_mci_adjust_fifoth
	.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
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	(%rdi), %r12d
	movl	%ebx, %r13d
	movl	%r12d, %ecx
	shrl	%cl, %r13d
	leaq	_dw_mci_adjust_fifoth.mszs(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	$0, 8(%r14)
	je	LBB0_9
## %bb.1:
	movl	4(%r14), %r9d
	movl	%r9d, %r8d
	shrl	$31, %r8d
	addl	%r9d, %r8d
	movl	$-1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	sarl	%r8d
	notl	%edx
	movl	$1, %esi
	testl	%edx, %ebx
	je	LBB0_2
LBB0_7:
	xorl	%edi, %edi
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r8d, %edx
	callq	_SDMMC_SET_FIFOTH
	movq	_FIFOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mci_writel                     ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	subl	%r8d, %r9d
	movslq	%eax, %rdi
	leaq	1(%rdi), %rcx
	decl	%edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%rcx
	decl	%edi
	cmpq	$2, %rcx
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%r15,%rcx,4), %ebx
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:
	decl	%ebx
	movl	%ebx, %esi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @dw_mci_adjust_fifoth.mszs
_dw_mci_adjust_fifoth.mszs:
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	64                              ## 0x40
	.long	128                             ## 0x80
	.long	256                             ## 0x100

	.comm	_FIFOTH,4,2                     ## @FIFOTH
	.no_dead_strip	_dw_mci_adjust_fifoth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_adjust_fifoth
_dw_mci_adjust_fifoth:                  ; @dw_mci_adjust_fifoth
	.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, x0
	ldr	w21, [x1]
	ldr	w22, [x0]
Lloh0:
	adrp	x20, _dw_mci_adjust_fifoth.mszs@PAGE
Lloh1:
	add	x20, x20, _dw_mci_adjust_fifoth.mszs@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w9, [x19, #4]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w2, w8, #1
	mov	w8, #-1
	lsl	w8, w8, w22
	bics	wzr, w21, w8
	b.eq	LBB0_5
LBB0_2:
	mov	w0, #0
	mov	w1, #1
LBB0_3:
	bl	_SDMMC_SET_FIFOTH
	mov	x2, x0
Lloh2:
	adrp	x8, _FIFOTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIFOTH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	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	_mci_writel
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
LBB0_5:
	lsr	w8, w21, w22
	sub	w9, w9, w2
	sxtw	x10, w0
	sub	w0, w0, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x10, x10, #1
	add	x11, x10, #1
	sub	w0, w0, #1
	cmp	x11, #2
	b.le	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x20, x10, lsl #2
	ldur	w11, [x11, #-4]
	sdiv	w12, w8, w11
	msub	w12, w12, w11, w8
	cbnz	w12, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sdiv	w12, w9, w11
	msub	w12, w12, w11, w9
	cbnz	w12, LBB0_6
; %bb.9:
	sub	w1, w11, #1
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @dw_mci_adjust_fifoth.mszs
_dw_mci_adjust_fifoth.mszs:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	64                              ; 0x40
	.long	128                             ; 0x80
	.long	256                             ; 0x100

	.comm	_FIFOTH,4,2                     ; @FIFOTH
	.no_dead_strip	_dw_mci_adjust_fifoth
.subsections_via_symbols
