	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ctrl_set_image_effect
___ctrl_set_image_effect:               ## @__ctrl_set_image_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	___ctrl_set_image_effect.effects(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%r12,%rbx,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	4(%r12,%rbx,8), %esi
	movq	%r14, %rdi
	callq	___is_set_isp_effect
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__ctrl_set_image_effect.effects
___ctrl_set_image_effect.effects:
	.long	129                             ## 0x81
	.long	136                             ## 0x88
	.long	131                             ## 0x83
	.long	135                             ## 0x87
	.long	128                             ## 0x80
	.long	132                             ## 0x84
	.long	130                             ## 0x82
	.long	133                             ## 0x85
	.long	16                              ## 0x10
	.long	134                             ## 0x86

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___ctrl_set_image_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ctrl_set_image_effect
___ctrl_set_image_effect:               ; @__ctrl_set_image_effect
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, ___ctrl_set_image_effect.effects@PAGE
Lloh1:
	add	x0, x0, ___ctrl_set_image_effect.effects@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x23, ___ctrl_set_image_effect.effects@PAGE+4
Lloh3:
	add	x23, x23, ___ctrl_set_image_effect.effects@PAGEOFF+4
Lloh4:
	adrp	x21, ___ctrl_set_image_effect.effects@PAGE
Lloh5:
	add	x21, x21, ___ctrl_set_image_effect.effects@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x23, #-4]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x19
	bl	___is_set_isp_effect
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__ctrl_set_image_effect.effects
___ctrl_set_image_effect.effects:
	.long	129                             ; 0x81
	.long	136                             ; 0x88
	.long	131                             ; 0x83
	.long	135                             ; 0x87
	.long	128                             ; 0x80
	.long	132                             ; 0x84
	.long	130                             ; 0x82
	.long	133                             ; 0x85
	.long	16                              ; 0x10
	.long	134                             ; 0x86

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___ctrl_set_image_effect
.subsections_via_symbols
