	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda7432_g_ctrl
_tda7432_g_ctrl:                        ## @tda7432_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_state
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_maxvol@GOTPCREL(%rip), %rcx
	movl	4(%rax), %edx
	andl	$127, %edx
	movl	$111, %eax
	subl	%edx, %eax
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.6:
	imull	$829, %eax, %eax                ## imm = 0x33D
	jmp	LBB0_5
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_13:
	movl	20(%rax), %eax
	jmp	LBB0_12
LBB0_2:
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_11:
	movl	16(%rax), %eax
LBB0_12:
	movl	$7, %ecx
	subl	%eax, %ecx
	andl	$15, %ecx
	cmpl	$8, %eax
	cmovll	%eax, %ecx
	imull	$4369, %ecx, %eax               ## imm = 0x1111
LBB0_5:
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rax), %ecx
	movl	12(%rax), %eax
	cmpl	%eax, %ecx
	jge	LBB0_10
## %bb.8:
	imull	$-1057, %eax, %eax              ## imm = 0xFBDF
	addl	$32768, %eax                    ## imm = 0x8000
	jmp	LBB0_5
LBB0_10:
	imull	$1057, %ecx, %eax               ## imm = 0x421
	addl	$32768, %eax                    ## imm = 0x8000
	jmp	LBB0_5
LBB0_4:
	imull	$630, %eax, %eax                ## imm = 0x276
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_maxvol,4,2                     ## @maxvol
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tda7432_g_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda7432_g_ctrl
_tda7432_g_ctrl:                        ; @tda7432_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	x19, x1
	bl	_to_state
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
	mov	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:
Lloh2:
	adrp	x9, _maxvol@GOTPAGE
Lloh3:
	ldr	x9, [x9, _maxvol@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
	and	w8, w8, #0x7f
	mov	w10, #111
	sub	w8, w10, w8
	mov	w0, #0
	cbz	w9, LBB0_15
; %bb.3:
	mov	w9, #829
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	w0, #0
	ldr	w8, [x8, #20]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	ldr	w8, [x8, #16]
LBB0_8:
	mov	w9, #7
	sub	w9, w9, w8
	and	w9, w9, #0xf
	cmp	w8, #7
	csel	w8, w9, w8, gt
	mov	w9, #4369
LBB0_9:
	mul	w8, w8, w9
LBB0_10:
	str	w8, [x19, #4]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldp	w9, w8, [x8, #8]
	cmp	w9, w8
	b.ge	LBB0_14
; %bb.13:
	mov	w0, #0
	mov	w9, #-1057
	orr	w10, wzr, #0x8000
	madd	w8, w8, w9, w10
	b	LBB0_10
LBB0_14:
	mov	w0, #0
	mov	w8, #1057
	orr	w10, wzr, #0x8000
	madd	w8, w9, w8, w10
	b	LBB0_10
LBB0_15:
	mov	w9, #630
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_maxvol,4,2                     ; @maxvol
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tda7432_g_ctrl
.subsections_via_symbols
