	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_set_color_effect
_m5mols_set_color_effect:               ## @m5mols_set_color_effect
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	movq	_REG_COLOR_EFFECT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_REG_EFFECT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_REG_COLOR_EFFECT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_REG_CFIXR_SEPIA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_REG_CFIXB_SEPIA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_REG_EFFECT_NEGA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_REG_EFFECT_EMBOSS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_REG_COLOR_EFFECT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	_PARM_EFFECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_m5mols_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_MON_EFFECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_m5mols_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	_REG_COLOR_EFFECT_ON@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %r15d
	jne	LBB0_14
## %bb.12:
	movq	_MON_CFIXR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_m5mols_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_MON_CFIXB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_m5mols_write
	movl	%eax, %r14d
LBB0_14:
	movq	_m5mols_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	pushq	%r14
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_v4l2_dbg
	addq	$32, %rsp
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_REG_COLOR_EFFECT_OFF,4,2       ## @REG_COLOR_EFFECT_OFF
	.comm	_REG_EFFECT_OFF,4,2             ## @REG_EFFECT_OFF
	.comm	_REG_COLOR_EFFECT_ON,4,2        ## @REG_COLOR_EFFECT_ON
	.comm	_REG_EFFECT_NEGA,4,2            ## @REG_EFFECT_NEGA
	.comm	_REG_EFFECT_EMBOSS,4,2          ## @REG_EFFECT_EMBOSS
	.comm	_REG_CFIXR_SEPIA,4,2            ## @REG_CFIXR_SEPIA
	.comm	_REG_CFIXB_SEPIA,4,2            ## @REG_CFIXB_SEPIA
	.comm	_PARM_EFFECT,4,2                ## @PARM_EFFECT
	.comm	_MON_EFFECT,4,2                 ## @MON_EFFECT
	.comm	_MON_CFIXR,4,2                  ## @MON_CFIXR
	.comm	_MON_CFIXB,4,2                  ## @MON_CFIXB
	.comm	_m5mols_debug,4,2               ## @m5mols_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p_effect: %#x, m_effect: %#x, r: %#x, b: %#x (%d)\n"

	.no_dead_strip	_m5mols_set_color_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_set_color_effect
_m5mols_set_color_effect:               ; @m5mols_set_color_effect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_COLOR_EFFECT_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_COLOR_EFFECT_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _REG_EFFECT_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_EFFECT_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _REG_COLOR_EFFECT_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_COLOR_EFFECT_ON@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _REG_CFIXR_SEPIA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CFIXR_SEPIA@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _REG_CFIXB_SEPIA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CFIXB_SEPIA@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_3:
	mov	w22, #0
	mov	w23, #0
	b	LBB0_7
LBB0_4:
	mov	w22, #0
	mov	w23, #0
Lloh17:
	adrp	x8, _REG_EFFECT_NEGA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_EFFECT_NEGA@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	mov	w23, #0
Lloh20:
	adrp	x8, _REG_EFFECT_EMBOSS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG_EFFECT_EMBOSS@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_6:
	mov	w22, #0
	mov	w23, #0
Lloh23:
	adrp	x8, _REG_COLOR_EFFECT_ON@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_COLOR_EFFECT_ON@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
LBB0_7:
Lloh26:
	adrp	x8, _PARM_EFFECT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PARM_EFFECT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_m5mols_write
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.8:
Lloh29:
	adrp	x8, _MON_EFFECT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MON_EFFECT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_m5mols_write
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.9:
Lloh32:
	adrp	x8, _REG_COLOR_EFFECT_ON@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_COLOR_EFFECT_ON@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.10:
Lloh35:
	adrp	x8, _MON_CFIXR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MON_CFIXR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_m5mols_write
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.11:
Lloh38:
	adrp	x8, _MON_CFIXB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MON_CFIXB@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_m5mols_write
	mov	x24, x0
	b	LBB0_13
LBB0_12:
	mov	w24, #0
LBB0_13:
Lloh41:
	adrp	x8, _m5mols_debug@GOTPAGE
Lloh42:
	ldr	x8, [x8, _m5mols_debug@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	str	w24, [sp]
Lloh44:
	adrp	x3, l_.str@PAGE
Lloh45:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x21
	mov	x5, x20
	mov	x6, x22
	mov	x7, x23
	bl	_v4l2_dbg
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_REG_COLOR_EFFECT_OFF,4,2       ; @REG_COLOR_EFFECT_OFF
	.comm	_REG_EFFECT_OFF,4,2             ; @REG_EFFECT_OFF
	.comm	_REG_COLOR_EFFECT_ON,4,2        ; @REG_COLOR_EFFECT_ON
	.comm	_REG_EFFECT_NEGA,4,2            ; @REG_EFFECT_NEGA
	.comm	_REG_EFFECT_EMBOSS,4,2          ; @REG_EFFECT_EMBOSS
	.comm	_REG_CFIXR_SEPIA,4,2            ; @REG_CFIXR_SEPIA
	.comm	_REG_CFIXB_SEPIA,4,2            ; @REG_CFIXB_SEPIA
	.comm	_PARM_EFFECT,4,2                ; @PARM_EFFECT
	.comm	_MON_EFFECT,4,2                 ; @MON_EFFECT
	.comm	_MON_CFIXR,4,2                  ; @MON_CFIXR
	.comm	_MON_CFIXB,4,2                  ; @MON_CFIXB
	.comm	_m5mols_debug,4,2               ; @m5mols_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p_effect: %#x, m_effect: %#x, r: %#x, b: %#x (%d)\n"

	.no_dead_strip	_m5mols_set_color_effect
.subsections_via_symbols
