	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdswap_wlfreq
_mtdswap_wlfreq:                        ## @mtdswap_wlfreq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_ERASE_DIFF@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	movq	_COLLECT_NONDIRTY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_COLLECT_NONDIRTY_FREQ1@GOTPCREL(%rip), %rax
	movq	_COLLECT_NONDIRTY_FREQ2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r8d, %edx
	subl	(%rax), %edx
	xorl	%eax, %eax
	movl	%esi, %ecx
	subl	%edi, %ecx
	cmovbl	%eax, %ecx
	imull	%edx, %ecx
	movl	%esi, %eax
	shrl	%eax
	addl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	addl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ERASE_DIFF,4,2             ## @MAX_ERASE_DIFF
	.comm	_COLLECT_NONDIRTY_BASE,4,2      ## @COLLECT_NONDIRTY_BASE
	.comm	_COLLECT_NONDIRTY_FREQ1,4,2     ## @COLLECT_NONDIRTY_FREQ1
	.comm	_COLLECT_NONDIRTY_FREQ2,4,2     ## @COLLECT_NONDIRTY_FREQ2
	.no_dead_strip	_mtdswap_wlfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdswap_wlfreq
_mtdswap_wlfreq:                        ; @mtdswap_wlfreq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_ERASE_DIFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ERASE_DIFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _COLLECT_NONDIRTY_BASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _COLLECT_NONDIRTY_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _COLLECT_NONDIRTY_FREQ1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _COLLECT_NONDIRTY_FREQ1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _COLLECT_NONDIRTY_FREQ2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _COLLECT_NONDIRTY_FREQ2@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	sub	w10, w11, w10
	sub	w8, w0, w8
	subs	w8, w9, w8
	csel	w8, wzr, w8, lo
	mul	w8, w10, w8
	add	w8, w8, w9, lsr #1
	udiv	w8, w8, w9
	add	w0, w8, w11
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ERASE_DIFF,4,2             ; @MAX_ERASE_DIFF
	.comm	_COLLECT_NONDIRTY_BASE,4,2      ; @COLLECT_NONDIRTY_BASE
	.comm	_COLLECT_NONDIRTY_FREQ1,4,2     ; @COLLECT_NONDIRTY_FREQ1
	.comm	_COLLECT_NONDIRTY_FREQ2,4,2     ; @COLLECT_NONDIRTY_FREQ2
	.no_dead_strip	_mtdswap_wlfreq
.subsections_via_symbols
