	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microtune_mt7202dtf_tuner_set_params
_microtune_mt7202dtf_tuner_set_params:  ## @microtune_mt7202dtf_tuner_set_params
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	$96, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$16, -56(%rbp)
	movl	16(%rdi), %ecx
	leal	36083333(%rcx), %eax
	cltq
	imulq	$211107077, %rax, %rbx          ## imm = 0xC953D05
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$45, %rbx
	addl	%eax, %ebx
	movl	$128, %eax
	cmpl	$175000000, %ecx                ## imm = 0xA6E49C0
	jl	LBB0_4
## %bb.1:
	movl	$64, %eax
	cmpl	$390000000, %ecx                ## imm = 0x173EED80
	jb	LBB0_4
## %bb.2:
	movl	$128, %eax
	cmpl	$470000000, %ecx                ## imm = 0x1C03A180
	jb	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	$750000000, %ecx                ## imm = 0x2CB41780
	setae	%al
	orl	$2, %eax
	shll	$6, %eax
LBB0_4:
	xorl	%edx, %edx
	cmpl	$470000000, %ecx                ## imm = 0x1C03A180
	setl	%dl
	cmpl	$175000000, %ecx                ## imm = 0xA6E49C0
	leal	3(%rdx,%rdx), %ecx
	movl	$14, %edx
	cmovgel	%ecx, %edx
	movl	%ebx, %ecx
	shrl	$8, %ecx
	andl	$127, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%bl, %ecx
	movl	%ecx, -44(%rbp)
	movl	%ebx, %ecx
	shrl	$10, %ecx
	andl	$96, %ecx
	orl	$136, %ecx
	movl	%ecx, -40(%rbp)
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, %esi
	callq	*%rax
LBB0_6:
	movl	(%r14), %edi
	leaq	-72(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	imull	$166666, %ebx, %eax             ## imm = 0x28B0A
	addl	$-36000000, %eax                ## imm = 0xFDDAAF00
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_microtune_mt7202dtf_tuner_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function microtune_mt7202dtf_tuner_set_params
lCPI0_0:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_microtune_mt7202dtf_tuner_set_params:  ; @microtune_mt7202dtf_tuner_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #41344
	movk	w8, #7171, lsl #16
	mov	w10, #96
	add	x11, sp, #24
	ldr	w12, [x0, #16]
	mov	w9, #38533
	movk	w9, #550, lsl #16
	add	w9, w12, w9
	mov	w13, #15621
	movk	w13, #3221, lsl #16
	smull	x13, w9, w13
	ldp	x9, x14, [x0]
	ldr	x20, [x14]
	str	w10, [sp]
	str	x11, [sp, #8]
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	lsr	x10, x13, #63
	asr	x11, x13, #45
	add	w19, w11, w10
	mov	w10, #128
	mov	w11, #18880
	movk	w11, #2670, lsl #16
	mov	w13, #64
	mov	w14, #128
	mov	w15, #6016
	movk	w15, #11444, lsl #16
	mov	w16, #192
	cmp	w12, w15
	csel	w15, w14, w16, lo
	cmp	w12, w8
	csel	w14, w14, w15, lo
	mov	w15, #60800
	movk	w15, #5950, lsl #16
	cmp	w12, w15
	csel	w13, w13, w14, lo
	cmp	w12, w11
	csel	w10, w10, w13, lt
	mov	w13, #3
	mov	w14, #5
	cmp	w12, w8
	csel	w8, w14, w13, lt
	mov	w13, #14
	cmp	w12, w11
	csel	w8, w13, w8, lt
	ubfx	w11, w19, #8, #7
	and	w12, w19, #0xff
	stp	w11, w12, [sp, #24]
	lsr	w11, w19, #10
	and	w11, w11, #0x60
	mov	w12, #136
	orr	w11, w11, w12
	orr	w8, w10, w8
	stp	w11, w8, [sp, #32]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w1, #1
	blr	x9
LBB0_2:
	ldr	w0, [x20]
	mov	x1, sp
	mov	w2, #1
	bl	_i2c_transfer
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #35594
	movk	w8, #2, lsl #16
	mov	w9, #44800
	movk	w9, #64986, lsl #16
	madd	w0, w19, w8, w9
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_microtune_mt7202dtf_tuner_set_params
.subsections_via_symbols
