	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_ctrls_setup
_coda_ctrls_setup:                      ## @coda_ctrls_setup
	.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
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_coda_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	(%r14), %rax
	movq	_CODA_INST_ENCODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_V4L2_CID_MIN_BUFFERS_FOR_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_coda_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_coda_jpeg_encode_ctrls
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_coda_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_coda_decode_ctrls
	jmp	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_coda_encode_ctrls
LBB0_6:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_ctrl_handler_setup        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_coda_ctrl_ops,4,2              ## @coda_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_CODA_INST_ENCODER,8,3          ## @CODA_INST_ENCODER
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,4,2 ## @V4L2_CID_MIN_BUFFERS_FOR_OUTPUT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ## @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_PIX_FMT_H264,8,3          ## @V4L2_PIX_FMT_H264
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control initialization error (%d)"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_ctrls_setup
_coda_ctrls_setup:                      ; @coda_ctrls_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #2
	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	x21, _coda_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _coda_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh5:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _CODA_INST_ENCODER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CODA_INST_ENCODER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _V4L2_CID_MIN_BUFFERS_FOR_OUTPUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_MIN_BUFFERS_FOR_OUTPUT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, _coda_ctrl_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _coda_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	bl	_coda_jpeg_encode_ctrls
	ldr	x2, [x20]
	cbnz	x2, LBB0_6
	b	LBB0_8
LBB0_3:
Lloh19:
	adrp	x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x1, _coda_ctrl_ops@GOTPAGE
Lloh23:
	ldr	x1, [x1, _coda_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _V4L2_PIX_FMT_H264@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_PIX_FMT_H264@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_coda_decode_ctrls
LBB0_5:
	ldr	x2, [x20]
	cbz	x2, LBB0_8
LBB0_6:
	ldr	x0, [x19, #16]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_coda_encode_ctrls
	ldr	x2, [x20]
	cbnz	x2, LBB0_6
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_v4l2_ctrl_handler_setup
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_coda_ctrl_ops,4,2              ; @coda_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_CODA_INST_ENCODER,8,3          ; @CODA_INST_ENCODER
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,4,2 ; @V4L2_CID_MIN_BUFFERS_FOR_OUTPUT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ; @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_PIX_FMT_H264,8,3          ; @V4L2_PIX_FMT_H264
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control initialization error (%d)"

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