	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_temp8
_set_temp8:                             ## @set_temp8
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	24(%rax), %rbx
	movslq	(%r14), %r14
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$1, %r14d
	je	LBB0_5
## %bb.2:
	cmpl	$2, %r14d
	jne	LBB0_6
## %bb.3:
	movq	_LM63_REG_REMOTE_TCRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	$0, 16(%r12)
	movq	-56(%rbp), %rdi
	movslq	12(%r12), %rax
	je	LBB0_7
## %bb.4:
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEMP8U_TO_REG
	jmp	LBB0_9
LBB0_5:
	movq	_LM63_REG_LOCAL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-56(%rbp), %rdi
	jmp	LBB0_8
LBB0_6:
	leal	-3(%r14), %edi
	callq	_LM63_REG_LUT_TEMP
	movl	%eax, %r13d
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lut_temp_to_reg
	jmp	LBB0_9
LBB0_7:
	subq	%rax, %rdi
LBB0_8:
	callq	_TEMP8_TO_REG
LBB0_9:
	movl	%eax, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r12), %rax
	movl	%edx, (%rax,%r14,4)
	movl	%r13d, %esi
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM63_REG_REMOTE_TCRIT,4,2      ## @LM63_REG_REMOTE_TCRIT
	.comm	_LM63_REG_LOCAL_HIGH,4,2        ## @LM63_REG_LOCAL_HIGH
	.no_dead_strip	_set_temp8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_temp8
_set_temp8:                             ; @set_temp8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x23, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldrsw	x24, [x23]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_10
; %bb.1:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	cmp	w24, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w24, #2
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _LM63_REG_REMOTE_TCRIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM63_REG_REMOTE_TCRIT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x8, [sp, #8]
	ldp	w9, w10, [x21, #12]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cbz	w10, LBB0_7
; %bb.4:
	sub	w0, w8, w9
	bl	_TEMP8U_TO_REG
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _LM63_REG_LOCAL_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM63_REG_LOCAL_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	x0, [sp, #8]
	b	LBB0_8
LBB0_6:
	sub	w0, w24, #3
	bl	_LM63_REG_LUT_TEMP
	mov	x23, x0
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_lut_temp_to_reg
	b	LBB0_9
LBB0_7:
	sub	x0, x8, x9
LBB0_8:
	bl	_TEMP8_TO_REG
LBB0_9:
	mov	x2, x0
	ldr	x8, [x21]
	str	w0, [x8, x24, lsl #2]
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_smbus_write_byte_data
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LM63_REG_REMOTE_TCRIT,4,2      ; @LM63_REG_REMOTE_TCRIT
	.comm	_LM63_REG_LOCAL_HIGH,4,2        ; @LM63_REG_LOCAL_HIGH
	.no_dead_strip	_set_temp8
.subsections_via_symbols
