	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sd_erase_timeout
_mmc_sd_erase_timeout:                  ## @mmc_sd_erase_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SD_DISCARD_ARG@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	movq	_SD_DISCARD_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	imull	%edx, %ecx
	addl	4(%rdi), %ecx
	jmp	LBB0_4
LBB0_3:
	imull	$250, %edx, %ecx
LBB0_4:
	cmpl	$1001, %ecx                     ## imm = 0x3E9
	movl	$1000, %eax                     ## imm = 0x3E8
	cmovael	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_DISCARD_ARG,4,2             ## @SD_DISCARD_ARG
	.comm	_SD_DISCARD_TIMEOUT_MS,4,2      ## @SD_DISCARD_TIMEOUT_MS
	.no_dead_strip	_mmc_sd_erase_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_sd_erase_timeout
_mmc_sd_erase_timeout:                  ; @mmc_sd_erase_timeout
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SD_DISCARD_ARG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_DISCARD_ARG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SD_DISCARD_TIMEOUT_MS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_DISCARD_TIMEOUT_MS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w9, [x0, #4]
	madd	w8, w8, w2, w9
	b	LBB0_5
LBB0_4:
	mov	w8, #250
	mul	w8, w2, w8
LBB0_5:
	mov	w9, #1000
	cmp	w8, #1000
	csel	w0, w8, w9, hi
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_DISCARD_ARG,4,2             ; @SD_DISCARD_ARG
	.comm	_SD_DISCARD_TIMEOUT_MS,4,2      ; @SD_DISCARD_TIMEOUT_MS
	.no_dead_strip	_mmc_sd_erase_timeout
.subsections_via_symbols
