	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __calc_target_rate
___calc_target_rate:                    ## @__calc_target_rate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	12(%r15), %ebx
	imull	(%r15), %ebx
	leaq	8(%r15), %rdi
	callq	_atomic_long_read
	subl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_bdev_sectors
	movq	_WRITEBACK_SHARE_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %eax
	movl	4(%r15), %esi
	movl	%eax, %edi
	callq	_div64_u64
	movl	%eax, %r15d
	imull	(%r14), %ebx
	movl	%ebx, %edi
	movl	$100, %esi
	callq	_div_u64
	cmpl	$2, %r15d
	movl	$1, %ecx
	cmovgel	%r15d, %ecx
	imull	%ecx, %eax
	movb	(%r12), %cl
	sarl	%cl, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITEBACK_SHARE_SHIFT,4,2      ## @WRITEBACK_SHARE_SHIFT
	.no_dead_strip	___calc_target_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __calc_target_rate
___calc_target_rate:                    ; @__calc_target_rate
	.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	x20, [x0, #8]
	ldr	w21, [x20]
	ldr	w22, [x20, #12]
	add	x0, x20, #8
	bl	_atomic_long_read
	neg	w8, w0
	madd	w21, w22, w21, w8
	ldr	w0, [x19, #4]
	bl	_bdev_sectors
Lloh0:
	adrp	x22, _WRITEBACK_SHARE_SHIFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WRITEBACK_SHARE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w0, w8
	ldr	w1, [x20, #4]
	bl	_div64_u64
	mov	x20, x0
	ldr	w8, [x19]
	mul	w0, w8, w21
	mov	w1, #100
	bl	_div_u64
	cmp	w20, #1
	csinc	w8, w20, wzr, gt
	mul	w8, w0, w8
	ldr	w9, [x22]
	asr	w0, w8, w9
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITEBACK_SHARE_SHIFT,4,2      ; @WRITEBACK_SHARE_SHIFT
	.no_dead_strip	___calc_target_rate
.subsections_via_symbols
