	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp514x_g_ctrl
_tvp514x_g_ctrl:                        ## @tvp514x_g_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_decoder
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %r8d
	leal	-128(%r8), %ecx
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	(%rax), %rax
	movq	_REG_SATURATION@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	(%rax), %rax
	movq	_REG_CONTRAST@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_11:
	movq	(%rax), %rax
	movq	_REG_AFE_GAIN_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	notl	%eax
	testb	$3, %al
	jne	LBB0_13
## %bb.12:
	movl	$1, 4(%rbx)
	movl	$1, %r9d
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r8d, %edx
	callq	_v4l2_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_8:
	movq	(%rax), %rax
	movq	_REG_HUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.9:
	cmpl	$127, %eax
	jne	LBB0_13
## %bb.10:
	movl	$180, 4(%rbx)
	movl	$180, %r9d
	jmp	LBB0_16
LBB0_4:
	movq	(%rax), %rax
	movq	_REG_BRIGHTNESS@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r9d
	movl	%r9d, 4(%rbx)
	jmp	LBB0_16
LBB0_13:
	movl	$0, 4(%rbx)
	xorl	%r9d, %r9d
	jmp	LBB0_16
LBB0_15:
	movl	$-180, 4(%rbx)
	movl	$-180, %r9d
LBB0_16:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_v4l2_dbg
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_BRIGHTNESS,8,3             ## @REG_BRIGHTNESS
	.comm	_REG_CONTRAST,8,3               ## @REG_CONTRAST
	.comm	_REG_SATURATION,8,3             ## @REG_SATURATION
	.comm	_REG_HUE,8,3                    ## @REG_HUE
	.comm	_REG_AFE_GAIN_CTRL,8,3          ## @REG_AFE_GAIN_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid control id %d\n"

	.comm	_debug,4,2                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"Get Control: ID - %d - %d"

	.no_dead_strip	_tvp514x_g_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp514x_g_ctrl
_tvp514x_g_ctrl:                        ; @tvp514x_g_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_to_decoder
	cbz	x20, LBB0_8
; %bb.1:
	ldr	w4, [x20]
	sub	w8, w4, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _REG_SATURATION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_SATURATION@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _REG_CONTRAST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _REG_CONTRAST@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
Lloh6:
	adrp	x8, _REG_AFE_GAIN_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_AFE_GAIN_CTRL@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	mvn	w8, w8
	tst	w8, #0x3
	b.ne	LBB0_17
; %bb.6:
	mov	w5, #1
	b	LBB0_14
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x4
	bl	_v4l2_err
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_9:
	ldr	x8, [x0]
Lloh14:
	adrp	x9, _REG_HUE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REG_HUE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #128
	b.eq	LBB0_18
; %bb.10:
	cmp	w8, #127
	b.ne	LBB0_17
; %bb.11:
	mov	w5, #180
	b	LBB0_14
LBB0_12:
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _REG_BRIGHTNESS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REG_BRIGHTNESS@GOTPAGEOFF]
LBB0_13:
	ldr	x9, [x9]
	ldr	w5, [x8, x9, lsl #2]
LBB0_14:
	str	w5, [x20, #4]
LBB0_15:
Lloh19:
	adrp	x8, _debug@GOTPAGE
Lloh20:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w5, #0
	str	wzr, [x20, #4]
	b	LBB0_15
LBB0_18:
	mov	w5, #-180
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_BRIGHTNESS,8,3             ; @REG_BRIGHTNESS
	.comm	_REG_CONTRAST,8,3               ; @REG_CONTRAST
	.comm	_REG_SATURATION,8,3             ; @REG_SATURATION
	.comm	_REG_HUE,8,3                    ; @REG_HUE
	.comm	_REG_AFE_GAIN_CTRL,8,3          ; @REG_AFE_GAIN_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid control id %d\n"

	.comm	_debug,4,2                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"Get Control: ID - %d - %d"

	.no_dead_strip	_tvp514x_g_ctrl
.subsections_via_symbols
