	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g2d_setup_ctrls
_g2d_setup_ctrls:                       ## @g2d_setup_ctrls
	.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	%rdi, %r12
	movq	24(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_g2d_ctrl_ops@GOTPCREL(%rip), %r13
	movl	$1, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%r12)
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%r12)
	movq	_V4L2_CID_COLORFX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_COLORFX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %ecx
	shll	%cl, %ebx
	movq	_V4L2_COLORFX_NEGATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	btsl	%ecx, %ebx
	notl	%ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %r8d
	callq	_v4l2_ctrl_new_std_menu
	movl	8(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_3
LBB0_2:
	movl	$2, %edi
	movq	%r12, %rsi
	callq	_v4l2_ctrl_cluster
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g2d_ctrl_ops,4,2               ## @g2d_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_COLORFX,4,2           ## @V4L2_CID_COLORFX
	.comm	_V4L2_COLORFX_NEGATIVE,4,2      ## @V4L2_COLORFX_NEGATIVE
	.comm	_V4L2_COLORFX_NONE,4,2          ## @V4L2_COLORFX_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g2d_setup_ctrls failed\n"

	.no_dead_strip	_g2d_setup_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g2d_setup_ctrls
_g2d_setup_ctrls:                       ; @g2d_setup_ctrls
	.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, x0
	ldr	x20, [x0, #24]
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
Lloh0:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x22, _g2d_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x22, [x22, _g2d_ctrl_ops@GOTPAGEOFF]
	mov	w23, #1
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x21]
Lloh5:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh8:
	adrp	x8, _V4L2_CID_COLORFX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_COLORFX@GOTPAGEOFF]
	str	x0, [x21, #16]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _V4L2_COLORFX_NEGATIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_COLORFX_NEGATIVE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _V4L2_COLORFX_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_COLORFX_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	ldr	w5, [x9]
	lsl	w8, w23, w5
	lsl	w9, w23, w3
	orr	w8, w8, w9
	mvn	w4, w8
	mov	x0, x19
	mov	x1, x22
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_v4l2_ctrl_new_std_menu
	ldr	w22, [x21, #8]
	cbz	w22, LBB0_2
; %bb.1:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_3
LBB0_2:
	mov	w0, #2
	mov	x1, x21
	bl	_v4l2_ctrl_cluster
LBB0_3:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_g2d_ctrl_ops,4,2               ; @g2d_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_COLORFX,4,2           ; @V4L2_CID_COLORFX
	.comm	_V4L2_COLORFX_NEGATIVE,4,2      ; @V4L2_COLORFX_NEGATIVE
	.comm	_V4L2_COLORFX_NONE,4,2          ; @V4L2_COLORFX_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g2d_setup_ctrls failed\n"

	.no_dead_strip	_g2d_setup_ctrls
.subsections_via_symbols
