	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg_tdtpe001p_tuner_set_params
_lg_tdtpe001p_tuner_set_params:         ## @lg_tdtpe001p_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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_frontend_to_pluto
	movq	%rax, %r14
	movl	8(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	movl	$500000, %esi                   ## imm = 0x7A120
	callq	_divide
	addl	$217, %eax
	movzbl	%al, %ecx
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -48(%rbp)
	movl	%ecx, -44(%rbp)
	movl	8(%rbx), %eax
	cmpl	$611000000, %eax                ## imm = 0x246B1EC0
	jge	LBB0_1
## %bb.3:
	movl	$180, -40(%rbp)
	cmpl	$350000000, %eax                ## imm = 0x14DC9380
	jge	LBB0_2
## %bb.4:
	movl	$10, %eax
	movl	$2, %ecx
	jmp	LBB0_5
LBB0_1:
	cmpl	$811000000, %eax                ## imm = 0x3056E0C0
	movl	$188, %eax
	movl	$244, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, -40(%rbp)
LBB0_2:
	movl	$12, %eax
	movl	$4, %ecx
LBB0_5:
	movl	%ecx, -36(%rbp)
	cmpl	$8000000, 12(%rbx)              ## imm = 0x7A1200
	jne	LBB0_7
## %bb.6:
	movl	%eax, -36(%rbp)
LBB0_7:
	movq	_I2C_ADDR_TUA6034@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	movl	%eax, -80(%rbp)
	movq	$0, -56(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$16, -64(%rbp)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_9:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_13
## %bb.12:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_10:
	movl	%ecx, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_ADDR_TUA6034,4,2           ## @I2C_ADDR_TUA6034
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_lg_tdtpe001p_tuner_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg_tdtpe001p_tuner_set_params
_lg_tdtpe001p_tuner_set_params:         ; @lg_tdtpe001p_tuner_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_frontend_to_pluto
	mov	x19, x0
	ldr	w8, [x20, #8]
	add	w0, w8, w8, lsl #1
	mov	w1, #41248
	movk	w1, #7, lsl #16
	bl	_divide
	add	w8, w0, #217
	ubfx	w9, w8, #8, #7
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #40]
	ldr	w8, [x20, #8]
	mov	w9, #7872
	movk	w9, #9323, lsl #16
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	mov	w9, #180
	str	w9, [sp, #48]
	mov	w9, #37760
	movk	w9, #5340, lsl #16
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	mov	w8, #10
	mov	w9, #2
	b	LBB0_5
LBB0_3:
	mov	w9, #57536
	movk	w9, #12374, lsl #16
	mov	w10, #244
	mov	w11, #188
	cmp	w8, w9
	csel	w8, w11, w10, lo
	str	w8, [sp, #48]
LBB0_4:
	mov	w8, #12
	mov	w9, #4
LBB0_5:
	str	w9, [sp, #52]
	ldr	w9, [x20, #12]
	sub	w9, w9, #1953, lsl #12          ; =7999488
	cmp	w9, #512
	b.ne	LBB0_7
; %bb.6:
	str	w8, [sp, #52]
LBB0_7:
Lloh3:
	adrp	x8, _I2C_ADDR_TUA6034@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_ADDR_TUA6034@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w8, #1
	str	w8, [sp, #8]
	str	xzr, [sp, #32]
	add	x8, sp, #40
	str	x8, [sp, #16]
	mov	w8, #16
	str	w8, [sp, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_13
; %bb.10:
	cbz	w0, LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_ADDR_TUA6034,4,2           ; @I2C_ADDR_TUA6034
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_lg_tdtpe001p_tuner_set_params
.subsections_via_symbols
