	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt352_set_parameters
_mt352_set_parameters:                  ## @mt352_set_parameters
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$-146, %eax
	addl	32(%rdi), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	$-145, %ecx
	addl	36(%rdi), %ecx
	cmpl	$6, %ecx
	ja	LBB0_1
## %bb.3:
	movq	24(%r12), %r14
	cltq
	leaq	l_switch.table.mt352_set_parameters(%rip), %rdx
	movl	(%rdx,%rax,4), %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movl	$-135, %eax
	addl	40(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_9
	jmp	LBB0_1
LBB0_6:
	orl	$64, %r15d
	jmp	LBB0_9
LBB0_5:
	orl	$48, %r15d
	jmp	LBB0_9
LBB0_4:
	orl	$32, %r15d
	jmp	LBB0_9
LBB0_8:
	orl	$16, %r15d
LBB0_9:
	movl	$-131, %eax
	addl	44(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.10:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	orl	$8192, %r15d                    ## imm = 0x2000
	jmp	LBB0_13
LBB0_11:
	orl	$16384, %r15d                   ## imm = 0x4000
LBB0_13:
	movl	48(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.14:
	cmpl	$130, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$129, %eax
	jne	LBB0_1
## %bb.16:
	orl	$1, %r15d
LBB0_17:
	movl	$-140, %eax
	addl	52(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.18:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	orl	$8, %r15d
	jmp	LBB0_22
LBB0_20:
	orl	$12, %r15d
	jmp	LBB0_22
LBB0_21:
	orl	$4, %r15d
LBB0_22:
	movl	$-135, %eax
	addl	40(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.23:
	leaq	LJTI0_3(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	orl	$3072, %r15d                    ## imm = 0xC00
	jmp	LBB0_27
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	orl	$2048, %r15d                    ## imm = 0x800
	jmp	LBB0_27
LBB0_26:
	orl	$1024, %r15d                    ## imm = 0x400
LBB0_27:
	movq	_TPS_GIVEN_1@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -53(%rbp)
	movl	%r15d, %edi
	callq	_msb
	movb	%al, -52(%rbp)
	movl	%r15d, %edi
	callq	_lsb
	movb	%al, -51(%rbp)
	movb	$80, -50(%rbp)
	movl	56(%r12), %esi
	leaq	-49(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mt352_calc_nominal_rate
	leaq	-47(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mt352_calc_input_freq
	cmpq	$0, (%r14)
	je	LBB0_32
## %bb.28:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	%r12, %rdi
	callq	*%rax
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_31:
	leaq	-53(%rbp), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	__mt352_write
	leaq	_mt352_set_parameters.fsm_go(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	__mt352_write
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_32:
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.33:
	leaq	-45(%rbp), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	*%rcx
	shlb	-45(%rbp)
	leaq	-53(%rbp), %rsi
	movq	%r12, %rdi
	movl	$13, %edx
	callq	__mt352_write
	leaq	_mt352_set_parameters.tuner_go(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	__mt352_write
	jmp	LBB0_34
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_12
	.long	L0_1_set_11
	.long	L0_1_set_12
.set L0_2_set_22, LBB0_22-LJTI0_2
.set L0_2_set_19, LBB0_19-LJTI0_2
.set L0_2_set_20, LBB0_20-LJTI0_2
.set L0_2_set_21, LBB0_21-LJTI0_2
LJTI0_2:
	.long	L0_2_set_22
	.long	L0_2_set_19
	.long	L0_2_set_20
	.long	L0_2_set_22
	.long	L0_2_set_21
.set L0_3_set_27, LBB0_27-LJTI0_3
.set L0_3_set_25, LBB0_25-LJTI0_3
.set L0_3_set_24, LBB0_24-LJTI0_3
.set L0_3_set_26, LBB0_26-LJTI0_3
LJTI0_3:
	.long	L0_3_set_27
	.long	L0_3_set_27
	.long	L0_3_set_25
	.long	L0_3_set_24
	.long	L0_3_set_26
	.end_data_region
                                        ## -- End function
	.section	__DATA,__data
_mt352_set_parameters.tuner_go:         ## @mt352_set_parameters.tuner_go
	.ascii	"]\001"

_mt352_set_parameters.fsm_go:           ## @mt352_set_parameters.fsm_go
	.ascii	"^\001"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TPS_GIVEN_1,1,0                ## @TPS_GIVEN_1
	.no_dead_strip	_mt352_set_parameters
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mt352_set_parameters
l_switch.table.mt352_set_parameters:
	.long	0                               ## 0x0
	.long	512                             ## 0x200
	.long	384                             ## 0x180
	.long	256                             ## 0x100
	.long	128                             ## 0x80
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt352_set_parameters
_mt352_set_parameters:                  ; @mt352_set_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0, #32]
	sub	w8, w8, #146
	cmp	w8, #6
	b.hs	LBB0_24
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0, #36]
	sub	w9, w9, #145
	cmp	w9, #6
	b.hi	LBB0_24
; %bb.2:
Lloh3:
	adrp	x10, l_switch.table.mt352_set_parameters@PAGE
Lloh4:
	add	x10, x10, l_switch.table.mt352_set_parameters@PAGEOFF
	ldr	x20, [x19, #24]
	ldr	w21, [x10, w8, sxtw #2]
Lloh5:
	adrp	x8, lJTI0_0@PAGE
Lloh6:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19, #40]
	sub	w8, w8, #135
	cmp	w8, #2
	b.lo	LBB0_8
	b	LBB0_24
LBB0_4:
	orr	w21, w21, #0x40
	b	LBB0_8
LBB0_5:
	orr	w21, w21, #0x30
	b	LBB0_8
LBB0_6:
	orr	w21, w21, #0x20
	b	LBB0_8
LBB0_7:
	orr	w21, w21, #0x10
LBB0_8:
	ldr	w8, [x19, #44]
	sub	w8, w8, #131
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.9:
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	orr	w21, w21, #0x2000
	b	LBB0_12
LBB0_11:
	orr	w21, w21, #0x4000
LBB0_12:
	ldr	w8, [x19, #48]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #130
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #129
	b.ne	LBB0_24
; %bb.15:
	orr	w21, w21, #0x1
LBB0_16:
	ldr	w8, [x19, #52]
	sub	w8, w8, #140
	cmp	w8, #4
	b.hi	LBB0_24
; %bb.17:
Lloh9:
	adrp	x9, lJTI0_2@PAGE
Lloh10:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	orr	w21, w21, #0x8
	b	LBB0_21
LBB0_19:
	orr	w21, w21, #0xc
	b	LBB0_21
LBB0_20:
	orr	w21, w21, #0x4
LBB0_21:
	ldr	w8, [x19, #40]
	sub	w8, w8, #135
	cmp	w8, #4
	b.hi	LBB0_24
; %bb.22:
Lloh11:
	adrp	x9, lJTI0_3@PAGE
Lloh12:
	add	x9, x9, lJTI0_3@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
	orr	w21, w21, #0xc00
	b	LBB0_29
LBB0_24:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_27:
	orr	w21, w21, #0x800
	b	LBB0_29
LBB0_28:
	orr	w21, w21, #0x400
LBB0_29:
Lloh19:
	adrp	x8, _TPS_GIVEN_1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TPS_GIVEN_1@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #11]
	mov	x0, x21
	bl	_msb
	strb	w0, [sp, #12]
	mov	x0, x21
	bl	_lsb
	strb	w0, [sp, #13]
	mov	w8, #80
	strb	w8, [sp, #14]
	ldr	w1, [x19, #56]
	add	x21, sp, #11
	add	x2, x21, #4
	mov	x0, x20
	bl	_mt352_calc_nominal_rate
	add	x1, x21, #6
	mov	x0, x20
	bl	_mt352_calc_input_freq
	ldr	x8, [x20]
	cbz	x8, LBB0_34
; %bb.30:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_33
; %bb.31:
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_33
; %bb.32:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_33:
	add	x1, sp, #11
	mov	x0, x19
	mov	w2, #8
	bl	__mt352_write
Lloh21:
	adrp	x1, _mt352_set_parameters.fsm_go@PAGE
Lloh22:
	add	x1, x1, _mt352_set_parameters.fsm_go@PAGEOFF
	b	LBB0_36
LBB0_34:
	ldr	x8, [x19]
	cbz	x8, LBB0_37
; %bb.35:
	add	x9, sp, #11
	add	x1, x9, #8
	mov	x0, x19
	mov	w2, #5
	blr	x8
	ldrb	w8, [sp, #19]
	lsl	w8, w8, #1
	strb	w8, [sp, #19]
	add	x1, sp, #11
	mov	x0, x19
	mov	w2, #13
	bl	__mt352_write
Lloh23:
	adrp	x1, _mt352_set_parameters.tuner_go@PAGE
Lloh24:
	add	x1, x1, _mt352_set_parameters.tuner_go@PAGEOFF
LBB0_36:
	mov	x0, x19
	mov	w2, #2
	bl	__mt352_write
LBB0_37:
	mov	w0, #0
	b	LBB0_25
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
lJTI0_2:
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_19-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_20-LBB0_18)>>2
lJTI0_3:
	.byte	(LBB0_29-LBB0_23)>>2
	.byte	(LBB0_29-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_27-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
                                        ; -- End function
	.section	__DATA,__data
_mt352_set_parameters.tuner_go:         ; @mt352_set_parameters.tuner_go
	.ascii	"]\001"

_mt352_set_parameters.fsm_go:           ; @mt352_set_parameters.fsm_go
	.ascii	"^\001"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TPS_GIVEN_1,1,0                ; @TPS_GIVEN_1
	.no_dead_strip	_mt352_set_parameters
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mt352_set_parameters
l_switch.table.mt352_set_parameters:
	.long	0                               ; 0x0
	.long	512                             ; 0x200
	.long	384                             ; 0x180
	.long	256                             ; 0x100
	.long	128                             ; 0x80
	.long	0                               ; 0x0

.subsections_via_symbols
