	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalculateActiveRowBandwidth
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalculateActiveRowBandwidth:           ## @CalculateActiveRowBandwidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	56(%rbp), %rax
	xorpd	%xmm2, %xmm2
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.1:
	movq	_dm_420_8@GOTPCREL(%rip), %rdx
	movl	%ecx, %ecx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rcx, %xmm2
	mulsd	%xmm0, %xmm2
	movl	%r9d, %ecx
	cvtsi2sd	%rcx, %xmm3
	mulsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	cmpl	%esi, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	_dm_420_10@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_4
LBB0_3:
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movl	%r8d, %ecx
	cvtsi2sd	%rcx, %xmm4
	mulsd	%xmm0, %xmm3
	movl	16(%rbp), %ecx
	cvtsi2sd	%rcx, %xmm5
	mulsd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm5
	divsd	%xmm5, %xmm4
	addsd	%xmm4, %xmm2
LBB0_4:
	movq	64(%rbp), %rdx
	movsd	%xmm2, (%rax)
	cmpl	$1, %edi
	jne	LBB0_5
## %bb.6:
	movq	_dm_420_8@GOTPCREL(%rip), %rcx
	movl	24(%rbp), %edi
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rdi, %xmm2
	movl	(%rcx), %ecx
	movl	40(%rbp), %edi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%rdi, %xmm3
	mulsd	%xmm0, %xmm2
	mulsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	cmpl	%esi, %ecx
	je	LBB0_8
## %bb.7:
	movq	_dm_420_10@GOTPCREL(%rip), %rdi
	cmpl	%esi, (%rdi)
	jne	LBB0_9
LBB0_8:
	mulsd	LCPI0_0(%rip), %xmm0
	movl	32(%rbp), %edi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%rdi, %xmm3
	mulsd	%xmm0, %xmm3
	movl	48(%rbp), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdi, %xmm0
	mulsd	%xmm1, %xmm0
	divsd	%xmm0, %xmm3
	addsd	%xmm3, %xmm2
LBB0_9:
	movsd	%xmm2, (%rdx)
	jmp	LBB0_10
LBB0_5:
	movq	$0, (%rdx)
	movq	_dm_420_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorpd	%xmm2, %xmm2
LBB0_10:
	movq	72(%rbp), %rdx
	cmpl	%esi, %ecx
	je	LBB0_12
## %bb.11:
	movq	_dm_420_10@GOTPCREL(%rip), %rcx
	xorpd	%xmm0, %xmm0
	cmpl	%esi, (%rcx)
	jne	LBB0_13
LBB0_12:
	addsd	(%rax), %xmm2
	movapd	%xmm2, %xmm0
LBB0_13:
	movsd	%xmm0, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_420_8,4,2                   ## @dm_420_8
	.comm	_dm_420_10,4,2                  ## @dm_420_10
	.no_dead_strip	_CalculateActiveRowBandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalculateActiveRowBandwidth
_CalculateActiveRowBandwidth:           ; @CalculateActiveRowBandwidth
	.cfi_startproc
; %bb.0:
	ldp	x8, x10, [sp, #16]
	movi	d2, #0000000000000000
Lloh0:
	adrp	x12, _dm_420_8@GOTPAGE
Lloh1:
	ldr	x12, [x12, _dm_420_8@GOTPAGEOFF]
Lloh2:
	adrp	x9, _dm_420_10@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dm_420_10@GOTPAGEOFF]
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w11, [x12]
	ldr	w13, [x9]
	ucvtf	d2, w3
	fmul	d2, d2, d0
	ucvtf	d3, w5
	fmul	d3, d3, d1
	fdiv	d2, d2, d3
	cmp	w11, w1
	ccmp	w13, w1, #4, ne
	b.ne	LBB0_3
; %bb.2:
	fmov	d3, #0.50000000
	fmul	d3, d0, d3
	ucvtf	d4, w4
	fmul	d3, d3, d4
	ucvtf	d4, w6
	fmul	d4, d4, d1
	fdiv	d3, d3, d4
	fadd	d2, d2, d3
LBB0_3:
	ldr	x11, [sp, #32]
	str	d2, [x8]
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	w13, [sp, #4]
	ldr	w12, [x12]
	ldr	w14, [x9]
	ucvtf	d2, w7
	fmul	d2, d2, d0
	ucvtf	d3, w13
	fmul	d3, d3, d1
	fdiv	d2, d2, d3
	cmp	w12, w1
	ccmp	w14, w1, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	w13, [sp, #8]
	ldr	w14, [sp]
	fmov	d3, #0.50000000
	fmul	d0, d0, d3
	ucvtf	d3, w14
	fmul	d0, d0, d3
	ucvtf	d3, w13
	fmul	d1, d3, d1
	fdiv	d0, d0, d1
	fadd	d2, d2, d0
LBB0_6:
	str	d2, [x10]
	b	LBB0_8
LBB0_7:
	str	xzr, [x10]
	ldr	w12, [x12]
	movi	d2, #0000000000000000
LBB0_8:
	ldr	w9, [x9]
	movi	d0, #0000000000000000
	cmp	w12, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldr	d0, [x8]
	fadd	d0, d0, d2
LBB0_10:
	str	d0, [x11]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_420_8,4,2                   ; @dm_420_8
	.comm	_dm_420_10,4,2                  ; @dm_420_10
	.no_dead_strip	_CalculateActiveRowBandwidth
.subsections_via_symbols
