	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_mgr_set_cpr_coef
_dispc_mgr_set_cpr_coef:                ## @dispc_mgr_set_cpr_coef
	.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
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_dss_mgr_is_lcd
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	32(%r12), %edi
	movl	$31, %esi
	movl	$22, %edx
	callq	_FLD_VAL
	movl	%eax, %ebx
	movl	28(%r12), %edi
	movl	$20, %esi
	movl	$11, %edx
	callq	_FLD_VAL
	orl	%eax, %ebx
	movl	24(%r12), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_FLD_VAL
	orl	%eax, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	20(%r12), %edi
	movl	$31, %esi
	movl	$22, %edx
	callq	_FLD_VAL
	movl	%eax, %r13d
	movl	16(%r12), %edi
	movl	$20, %esi
	movl	$11, %edx
	callq	_FLD_VAL
	orl	%eax, %r13d
	movl	12(%r12), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_FLD_VAL
	orl	%eax, %r13d
	movl	8(%r12), %edi
	movl	$31, %esi
	movl	$22, %edx
	callq	_FLD_VAL
	movq	%r14, %rbx
	movl	%eax, %r14d
	movl	4(%r12), %edi
	movl	$20, %esi
	movl	$11, %edx
	callq	_FLD_VAL
	orl	%eax, %r14d
	movl	(%r12), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_FLD_VAL
	orl	%eax, %r14d
	movl	%r15d, %edi
	callq	_DISPC_CPR_COEF_R
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dispc_write_reg
	movl	%r15d, %edi
	callq	_DISPC_CPR_COEF_G
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_dispc_write_reg
	movl	%r15d, %edi
	callq	_DISPC_CPR_COEF_B
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dispc_write_reg                ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dispc_mgr_set_cpr_coef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_mgr_set_cpr_coef
_dispc_mgr_set_cpr_coef:                ; @dispc_mgr_set_cpr_coef
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dss_mgr_is_lcd
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #32]
	mov	w1, #31
	mov	w2, #22
	bl	_FLD_VAL
	mov	x22, x0
	ldr	w0, [x21, #28]
	mov	w1, #20
	mov	w2, #11
	bl	_FLD_VAL
	orr	w22, w0, w22
	ldr	w0, [x21, #24]
	mov	w1, #9
	mov	w2, #0
	bl	_FLD_VAL
	orr	w22, w22, w0
	ldr	w0, [x21, #20]
	mov	w1, #31
	mov	w2, #22
	bl	_FLD_VAL
	mov	x23, x0
	ldr	w0, [x21, #16]
	mov	w1, #20
	mov	w2, #11
	bl	_FLD_VAL
	orr	w23, w0, w23
	ldr	w0, [x21, #12]
	mov	w1, #9
	mov	w2, #0
	bl	_FLD_VAL
	orr	w23, w23, w0
	ldr	w0, [x21, #8]
	mov	w1, #31
	mov	w2, #22
	bl	_FLD_VAL
	mov	x24, x0
	ldr	w0, [x21, #4]
	mov	w1, #20
	mov	w2, #11
	bl	_FLD_VAL
	orr	w24, w0, w24
	ldr	w0, [x21]
	mov	w1, #9
	mov	w2, #0
	bl	_FLD_VAL
	orr	w21, w24, w0
	mov	x0, x20
	bl	_DISPC_CPR_COEF_R
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_dispc_write_reg
	mov	x0, x20
	bl	_DISPC_CPR_COEF_G
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_dispc_write_reg
	mov	x0, x20
	bl	_DISPC_CPR_COEF_B
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dispc_write_reg
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dispc_mgr_set_cpr_coef
.subsections_via_symbols
