	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_sd_set_data_timeout
_tifm_sd_set_data_timeout:              ## @tifm_sd_set_data_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_fixed_timeout@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rcx
	movq	16(%rdi), %r14
	movl	(%rsi), %edi
	movq	8(%rsi), %r8
	movq	(%rcx), %rsi
	cmpq	$1000000000, %rsi               ## imm = 0x3B9ACA00
	ja	LBB0_2
## %bb.3:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
	jmp	LBB0_4
LBB0_2:
	xorl	%esi, %esi
LBB0_4:
	imulq	8(%rcx), %rsi
	movq	%r8, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_7
LBB0_5:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	addl	%eax, %edi
	cmpl	$65534, %edi                    ## imm = 0xFFFE
	ja	LBB0_9
## %bb.8:
	movq	_SOCK_MMCSD_DATA_TO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_TIFM_MMCSD_DPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	_SOCK_MMCSD_SDIO_MODE_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %edi
	andl	%ebx, %edi
	jmp	LBB0_10
LBB0_9:
	movl	%edi, %ecx
	shrl	$10, %ecx
	incl	%ecx
	xorl	%eax, %eax
	cmpl	$67107840, %edi                 ## imm = 0x3FFFC00
	cmovbl	%ecx, %eax
	movq	_SOCK_MMCSD_DATA_TO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_TIFM_MMCSD_DPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCK_MMCSD_SDIO_MODE_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %edi
	orl	%ebx, %edi
LBB0_10:
	movq	_SOCK_MMCSD_SDIO_MODE_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fixed_timeout,8,3              ## @fixed_timeout
	.comm	_SOCK_MMCSD_DATA_TO,8,3         ## @SOCK_MMCSD_DATA_TO
	.comm	_TIFM_MMCSD_DPE,4,2             ## @TIFM_MMCSD_DPE
	.comm	_SOCK_MMCSD_SDIO_MODE_CONFIG,8,3 ## @SOCK_MMCSD_SDIO_MODE_CONFIG
	.no_dead_strip	_tifm_sd_set_data_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_sd_set_data_timeout
_tifm_sd_set_data_timeout:              ; @tifm_sd_set_data_timeout
	.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
Lloh0:
	adrp	x8, _fixed_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fixed_timeout@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	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_2:
	ldp	x12, x19, [x0, #8]
	ldr	w8, [x1]
	ldr	x9, [x1, #8]
	mov	w10, #51712
	movk	w10, #15258, lsl #16
	ldr	x11, [x0]
	udiv	x10, x10, x11
	mul	x10, x12, x10
	udiv	x9, x9, x10
	mov	w10, #65534
	add	w0, w8, w9
	cmp	w0, w10
Lloh3:
	adrp	x20, _SOCK_MMCSD_SDIO_MODE_CONFIG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SOCK_MMCSD_SDIO_MODE_CONFIG@GOTPAGEOFF]
	b.hi	LBB0_4
; %bb.3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _SOCK_MMCSD_DATA_TO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_MMCSD_DATA_TO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh8:
	adrp	x8, _TIFM_MMCSD_DPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIFM_MMCSD_DPE@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	bic	w0, w0, w21
	b	LBB0_5
LBB0_4:
	lsr	w8, w0, #10
	mov	w9, #64511
	movk	w9, #1023, lsl #16
	cmp	w0, w9
	csinc	w0, wzr, w8, hi
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _SOCK_MMCSD_DATA_TO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SOCK_MMCSD_DATA_TO@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh14:
	adrp	x8, _TIFM_MMCSD_DPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TIFM_MMCSD_DPE@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w21
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_fixed_timeout,8,3              ; @fixed_timeout
	.comm	_SOCK_MMCSD_DATA_TO,8,3         ; @SOCK_MMCSD_DATA_TO
	.comm	_TIFM_MMCSD_DPE,4,2             ; @TIFM_MMCSD_DPE
	.comm	_SOCK_MMCSD_SDIO_MODE_CONFIG,8,3 ; @SOCK_MMCSD_SDIO_MODE_CONFIG
	.no_dead_strip	_tifm_sd_set_data_timeout
.subsections_via_symbols
