	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvaudio_queryctrl
_tvaudio_queryctrl:                     ## @tvaudio_queryctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_state
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_11
## %bb.1:
	movq	(%rax), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_CHIP_HAS_BASSTREBLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_CHIP_HAS_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$655, %ecx                      ## imm = 0x28F
	movl	$58880, %r8d                    ## imm = 0xE600
	jmp	LBB0_4
LBB0_2:
	movq	_CHIP_HAS_INPUTSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_4
LBB0_7:
	movq	_CHIP_HAS_VOLUME@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$655, %ecx                      ## imm = 0x28F
	movl	$32768, %r8d                    ## imm = 0x8000
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_v4l2_ctrl_query_fill           ## TAILCALL
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_CHIP_HAS_INPUTSEL,4,2          ## @CHIP_HAS_INPUTSEL
	.comm	_CHIP_HAS_VOLUME,4,2            ## @CHIP_HAS_VOLUME
	.comm	_CHIP_HAS_BASSTREBLE,4,2        ## @CHIP_HAS_BASSTREBLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tvaudio_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvaudio_queryctrl
_tvaudio_queryctrl:                     ; @tvaudio_queryctrl
	.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	x19, x1
	bl	_to_state
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_11
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _CHIP_HAS_BASSTREBLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CHIP_HAS_BASSTREBLE@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _CHIP_HAS_VOLUME@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHIP_HAS_VOLUME@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #65535
	mov	w3, #655
	mov	w4, #58880
	b	LBB0_10
LBB0_5:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _CHIP_HAS_INPUTSEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHIP_HAS_INPUTSEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	b	LBB0_10
LBB0_7:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CHIP_HAS_VOLUME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CHIP_HAS_VOLUME@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #65535
	mov	w3, #655
	mov	w4, #32768
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_ctrl_query_fill
LBB0_11:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CHIP_HAS_INPUTSEL,4,2          ; @CHIP_HAS_INPUTSEL
	.comm	_CHIP_HAS_VOLUME,4,2            ; @CHIP_HAS_VOLUME
	.comm	_CHIP_HAS_BASSTREBLE,4,2        ; @CHIP_HAS_BASSTREBLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tvaudio_queryctrl
.subsections_via_symbols
