	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function medusa_PALCombInit
_medusa_PALCombInit:                    ## @medusa_PALCombInit
	.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	%rdi, %r14
	movl	$0, -28(%rbp)
	movq	(%rdi), %rdi
	movq	_COMB_2D_HFS_CFG@GOTPCREL(%rip), %rax
	shll	$9, %esi
	movslq	%esi, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$536881249, %edx                ## imm = 0x20002861
	callq	_cx25821_i2c_write
	movq	(%r14), %rdi
	movq	_COMB_2D_HFD_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$536881249, %edx                ## imm = 0x20002861
	callq	_cx25821_i2c_write
	movq	(%r14), %rdi
	movq	_COMB_2D_LF_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$537530403, %edx                ## imm = 0x200A1023
	callq	_cx25821_i2c_write
	movq	(%r14), %rdi
	movq	_COMB_FLAT_THRESH_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	leaq	-28(%rbp), %rdx
	callq	_cx25821_i2c_read
	andl	$102957056, %eax                ## imm = 0x6230000
	movq	(%r14), %rdi
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edx
	callq	_cx25821_i2c_write
	movq	(%r14), %rdi
	movq	_COMB_2D_BLEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$554635023, %edx                ## imm = 0x210F0F0F
	callq	_cx25821_i2c_write
	movq	(%r14), %rdi
	movq	_COMB_MISC_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	movl	$1091701375, %edx               ## imm = 0x41120A7F
	callq	_cx25821_i2c_write
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMB_2D_HFS_CFG,8,3            ## @COMB_2D_HFS_CFG
	.comm	_COMB_2D_HFD_CFG,8,3            ## @COMB_2D_HFD_CFG
	.comm	_COMB_2D_LF_CFG,8,3             ## @COMB_2D_LF_CFG
	.comm	_COMB_FLAT_THRESH_CTRL,8,3      ## @COMB_FLAT_THRESH_CTRL
	.comm	_COMB_2D_BLEND,8,3              ## @COMB_2D_BLEND
	.comm	_COMB_MISC_CTRL,8,3             ## @COMB_MISC_CTRL
	.no_dead_strip	_medusa_PALCombInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function medusa_PALCombInit
_medusa_PALCombInit:                    ; @medusa_PALCombInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _COMB_2D_HFS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMB_2D_HFS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w1, #9
	sxtw	x20, w9
	add	x1, x8, x20
	mov	w2, #10337
	movk	w2, #8192, lsl #16
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _COMB_2D_HFD_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMB_2D_HFD_CFG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w2, #10337
	movk	w2, #8192, lsl #16
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _COMB_2D_LF_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMB_2D_LF_CFG@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w2, #4131
	movk	w2, #8202, lsl #16
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
Lloh9:
	adrp	x21, _COMB_FLAT_THRESH_CTRL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _COMB_FLAT_THRESH_CTRL@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x2, sp, #12
	bl	_cx25821_i2c_read
	mov	w8, #102957056
	and	w2, w0, w8
	ldr	x0, [x19]
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _COMB_2D_BLEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMB_2D_BLEND@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w2, #3855
	movk	w2, #8463, lsl #16
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _COMB_MISC_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COMB_MISC_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w2, #2687
	movk	w2, #16658, lsl #16
	bl	_cx25821_i2c_write
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMB_2D_HFS_CFG,8,3            ; @COMB_2D_HFS_CFG
	.comm	_COMB_2D_HFD_CFG,8,3            ; @COMB_2D_HFD_CFG
	.comm	_COMB_2D_LF_CFG,8,3             ; @COMB_2D_LF_CFG
	.comm	_COMB_FLAT_THRESH_CTRL,8,3      ; @COMB_FLAT_THRESH_CTRL
	.comm	_COMB_2D_BLEND,8,3              ; @COMB_2D_BLEND
	.comm	_COMB_MISC_CTRL,8,3             ; @COMB_MISC_CTRL
	.no_dead_strip	_medusa_PALCombInit
.subsections_via_symbols
