	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movslq	(%r14), %r14
	leaq	-16000(%rax), %rbx
	cmpq	$3, %r14
	movq	(%r13), %rcx
	movq	_lm99@GOTPCREL(%rip), %rdx
	cmovneq	%rax, %rbx
	cmpq	(%rdx), %rcx
	cmovneq	%rax, %rbx
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	_adt7461@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_temp_to_u8_adt7461
	jmp	LBB0_5
LBB0_2:
	movq	_max6646@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_temp_to_u8
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_temp_to_s8
LBB0_5:
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	leaq	_set_temp8.reg(%rip), %rcx
	movl	(%rcx,%r14,4), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @set_temp8.reg
_set_temp8.reg:
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	128                             ## 0x80

	.comm	_lm99,8,3                       ## @lm99
	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_max6646,8,3                    ## @max6646
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x23, x0
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	ldrsw	x24, [x23]
	cmp	x24, #3
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _lm99@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lm99@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, eq
	mov	x8, #-16000
	add	x8, x0, x8
	csel	x23, x8, x0, eq
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _adt7461@GOTPAGE
Lloh4:
	ldr	x9, [x9, _adt7461@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x23
	bl	_temp_to_u8_adt7461
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _max6646@GOTPAGE
Lloh7:
	ldr	x9, [x9, _max6646@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	x0, x23
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_temp_to_u8
	b	LBB0_5
LBB0_4:
	bl	_temp_to_s8
LBB0_5:
	mov	x2, x0
	ldr	x8, [x22, #16]
	str	w0, [x8, x24, lsl #2]
Lloh9:
	adrp	x8, _set_temp8.reg@PAGE
Lloh10:
	add	x8, x8, _set_temp8.reg@PAGEOFF
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @set_temp8.reg
_set_temp8.reg:
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	128                             ; 0x80

	.comm	_lm99,8,3                       ; @lm99
	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_max6646,8,3                    ; @max6646
	.no_dead_strip	_set_temp8
.subsections_via_symbols
