	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_mapped_value
_calculate_mapped_value:                ## @calculate_mapped_value
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_CHANNEL_NAME_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	jne	LBB0_2
## %bb.1:
	addq	$64, %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_CHANNEL_NAME_GREEN@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_4
## %bb.3:
	addq	$32, %rbx
LBB0_4:
	movq	(%rbx), %rsi
	cmpq	%rcx, %rsi
	ja	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	cmpq	%rcx, %rdi
	jbe	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
LBB0_7:
	movq	_dc_fixpt_zero@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	16(%rbx), %r15
	movq	_HW_POINT_POSITION_MIDDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jne	LBB0_12
## %bb.10:
	cmpl	%edx, %eax
	jne	LBB0_14
## %bb.11:
	movl	24(%rbx), %r15d
	leaq	(%rdi,%rdi,2), %rax
	movl	8(%r14,%rax,4), %edi
	leaq	(%rsi,%rsi,2), %rax
	movl	8(%r14,%rax,4), %esi
	callq	_dc_fixpt_sub
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%r14,%rcx,4), %esi
	jmp	LBB0_18
LBB0_12:
	movq	_HW_POINT_POSITION_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	cmpq	%rbx, %r15
	je	LBB0_7
## %bb.16:
	movq	_dc_fixpt_one@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_14:
	movq	_CHANNEL_NAME_GREEN@GOTPCREL(%rip), %rax
	movl	24(%rbx), %r15d
	cmpl	%edx, (%rax)
	jne	LBB0_17
## %bb.15:
	leaq	(%rdi,%rdi,2), %rax
	movl	4(%r14,%rax,4), %edi
	leaq	(%rsi,%rsi,2), %rax
	movl	4(%r14,%rax,4), %esi
	callq	_dc_fixpt_sub
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%r14,%rcx,4), %esi
	jmp	LBB0_18
LBB0_17:
	leaq	(%rdi,%rdi,2), %rax
	movl	(%r14,%rax,4), %edi
	leaq	(%rsi,%rsi,2), %rax
	movl	(%r14,%rax,4), %esi
	callq	_dc_fixpt_sub
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%r14,%rcx,4), %esi
LBB0_18:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dc_fixpt_add                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_NAME_RED,4,2           ## @CHANNEL_NAME_RED
	.comm	_CHANNEL_NAME_GREEN,4,2         ## @CHANNEL_NAME_GREEN
	.comm	_dc_fixpt_zero,4,2              ## @dc_fixpt_zero
	.comm	_HW_POINT_POSITION_MIDDLE,8,3   ## @HW_POINT_POSITION_MIDDLE
	.comm	_HW_POINT_POSITION_LEFT,8,3     ## @HW_POINT_POSITION_LEFT
	.comm	_dc_fixpt_one,4,2               ## @dc_fixpt_one
	.no_dead_strip	_calculate_mapped_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_mapped_value
_calculate_mapped_value:                ; @calculate_mapped_value
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CHANNEL_NAME_RED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_NAME_RED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	add	x20, x20, #64
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _CHANNEL_NAME_GREEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_NAME_GREEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.3:
	add	x20, x20, #32
LBB0_4:
	ldr	x8, [x20]
	cmp	x8, x3
	b.hi	LBB0_6
; %bb.5:
	ldr	x10, [x20, #8]
	cmp	x10, x3
	b.ls	LBB0_9
LBB0_6:
	bl	_BREAK_TO_DEBUGGER
LBB0_7:
Lloh6:
	adrp	x8, _dc_fixpt_zero@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dc_fixpt_zero@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
LBB0_9:
	ldr	x21, [x20, #16]
Lloh8:
	adrp	x11, _HW_POINT_POSITION_MIDDLE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _HW_POINT_POSITION_MIDDLE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x21, x11
	b.ne	LBB0_12
; %bb.10:
	cmp	w9, w2
	b.ne	LBB0_14
; %bb.11:
	ldr	w21, [x20, #24]
	mov	w22, #12
	madd	x9, x10, x22, x19
	ldr	w0, [x9, #8]
	madd	x8, x8, x22, x19
	ldr	w1, [x8, #8]
	bl	_dc_fixpt_sub
	mov	x1, x0
	mov	x0, x21
	bl	_dc_fixpt_mul
	ldr	x8, [x20]
	madd	x8, x8, x22, x19
	ldr	w1, [x8, #8]
	b	LBB0_17
LBB0_12:
Lloh11:
	adrp	x8, _HW_POINT_POSITION_LEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HW_POINT_POSITION_LEFT@GOTPAGEOFF]
Lloh13:
	ldr	x19, [x8]
	bl	_BREAK_TO_DEBUGGER
	cmp	x21, x19
	b.eq	LBB0_7
; %bb.13:
Lloh14:
	adrp	x8, _dc_fixpt_one@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dc_fixpt_one@GOTPAGEOFF]
	b	LBB0_8
LBB0_14:
Lloh16:
	adrp	x9, _CHANNEL_NAME_GREEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHANNEL_NAME_GREEN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w21, [x20, #24]
	mov	w22, #12
	cmp	w9, w2
	b.ne	LBB0_16
; %bb.15:
	madd	x9, x10, x22, x19
	ldr	w0, [x9, #4]
	madd	x8, x8, x22, x19
	ldr	w1, [x8, #4]
	bl	_dc_fixpt_sub
	mov	x1, x0
	mov	x0, x21
	bl	_dc_fixpt_mul
	ldr	x8, [x20]
	madd	x8, x8, x22, x19
	ldr	w1, [x8, #4]
	b	LBB0_17
LBB0_16:
	mul	x9, x10, x22
	ldr	w0, [x19, x9]
	mul	x8, x8, x22
	ldr	w1, [x19, x8]
	bl	_dc_fixpt_sub
	mov	x1, x0
	mov	x0, x21
	bl	_dc_fixpt_mul
	ldr	x8, [x20]
	mul	x8, x8, x22
	ldr	w1, [x19, x8]
LBB0_17:
	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
	b	_dc_fixpt_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_NAME_RED,4,2           ; @CHANNEL_NAME_RED
	.comm	_CHANNEL_NAME_GREEN,4,2         ; @CHANNEL_NAME_GREEN
	.comm	_dc_fixpt_zero,4,2              ; @dc_fixpt_zero
	.comm	_HW_POINT_POSITION_MIDDLE,8,3   ; @HW_POINT_POSITION_MIDDLE
	.comm	_HW_POINT_POSITION_LEFT,8,3     ; @HW_POINT_POSITION_LEFT
	.comm	_dc_fixpt_one,4,2               ; @dc_fixpt_one
	.no_dead_strip	_calculate_mapped_value
.subsections_via_symbols
