	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgtdqcs001f_tuner_set
_lgtdqcs001f_tuner_set:                 ## @lgtdqcs001f_tuner_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$64, %rsp
	movq	%rdi, %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -8(%rbp)
	movq	(%rdi), %rcx
	movq	(%rcx), %rdi
	movl	$97, -56(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rcx, -48(%rbp)
	movq	$16, -40(%rbp)
	movslq	8(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	$1531000, %rax                  ## imm = 0x175C78
	setl	%cl
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$36, %rax
	addl	%edx, %eax
	movzbl	%al, %edx
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -32(%rbp)
	movl	%edx, -28(%rbp)
	movl	$131, -24(%rbp)
	leal	192(,%rcx,4), %eax
	movl	%eax, -20(%rbp)
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	$100, %edi
	callq	_msleep_interruptible
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$64, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write: I2C Transfer failed"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_lgtdqcs001f_tuner_set
.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 lgtdqcs001f_tuner_set
lCPI0_0:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lgtdqcs001f_tuner_set:                 ; @lgtdqcs001f_tuner_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w9, #97
	str	w9, [sp]
	add	x9, sp, #24
	str	x9, [sp, #8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldrsw	x9, [x0, #8]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x10, x9, x10
	lsr	x11, x10, #63
	asr	x10, x10, #36
	add	w10, w10, w11
	ubfx	w11, w10, #8, #7
	and	w10, w10, #0xff
	stp	w11, w10, [sp, #24]
	mov	w10, #131
	mov	w11, #23672
	movk	w11, #23, lsl #16
	mov	w12, #192
	mov	w13, #196
	cmp	w9, w11
	csel	w9, w13, w12, lt
	stp	w10, w9, [sp, #32]
	mov	x1, sp
	mov	x0, x8
	mov	w2, #1
	bl	_i2c_transfer
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #100
	bl	_msleep_interruptible
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldur	x8, [x29, #-8]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write: I2C Transfer failed"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_lgtdqcs001f_tuner_set
.subsections_via_symbols
