	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_group_get_avg_queues
_cfq_group_get_avg_queues:              ## @cfq_group_get_avg_queues
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rsi
	movq	_cfq_hist_divisor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movl	%edx, %edi
	movq	%r15, %rdx
	callq	_cfq_group_busy_queues_wl
	movl	%eax, %r12d
	movq	(%r15), %rax
	movslq	%r14d, %r14
	movl	(%rax,%r14,4), %edi
	movl	%r12d, %esi
	callq	_min
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edi
	movl	%r12d, %esi
	callq	_max
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%r13d, %ebx
	addl	%ebx, %eax
	xorl	%edx, %edx
	movq	_cfq_hist_divisor@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cfq_hist_divisor,4,2           ## @cfq_hist_divisor
	.no_dead_strip	_cfq_group_get_avg_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_group_get_avg_queues
_cfq_group_get_avg_queues:              ; @cfq_group_get_avg_queues
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x1, x0
Lloh0:
	adrp	x22, _cfq_hist_divisor@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cfq_hist_divisor@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w23, w8, #1
	cmp	w8, #0
	cinc	w24, w8, lt
	mov	x0, x2
	mov	x2, x20
	bl	_cfq_group_busy_queues_wl
	mov	x21, x0
	ldr	x8, [x20]
	sbfiz	x25, x19, #2, #32
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_min
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_max
	add	w8, w19, w24, asr #1
	madd	w8, w0, w23, w8
	ldr	w9, [x22]
	udiv	w0, w8, w9
	ldr	x8, [x20]
	str	w0, [x8, x25]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cfq_hist_divisor,4,2           ; @cfq_hist_divisor
	.no_dead_strip	_cfq_group_get_avg_queues
.subsections_via_symbols
