	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_temp11
_set_temp11:                            ## @set_temp11
	.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
	cmovgeq	%rax, %rbx
	cmpq	(%rdx), %rcx
	cmovneq	%rax, %rbx
	leaq	16(%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_u16_adt7461
	jmp	LBB0_9
LBB0_2:
	movq	_max6657@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_max6680@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.6:
	movq	_max6646@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_temp_to_u8
	shll	$8, %eax
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_temp_to_s8
	shll	$8, %eax
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_temp_to_s16
LBB0_9:
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	leal	(%r14,%r14), %ecx
	addl	$-2, %ecx
	movslq	%ecx, %rcx
	leaq	_set_temp11.reg(%rip), %rbx
	movl	(%rbx,%rcx,4), %esi
	sarl	$8, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	movq	(%r13), %rax
	movq	_max6657@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.10:
	movq	_max6680@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.11:
	movq	_max6646@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addl	%r14d, %eax
	decl	%eax
	cltq
	movl	(%rbx,%rax,4), %esi
	movq	8(%r13), %rax
	movzbl	(%rax,%r14,4), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
LBB0_13:
	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_temp11.reg
_set_temp11.reg:
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_lm99,8,3                       ## @lm99
	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_max6657,8,3                    ## @max6657
	.comm	_max6680,8,3                    ## @max6680
	.comm	_max6646,8,3                    ## @max6646
	.no_dead_strip	_set_temp11
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_temp11
_set_temp11:                            ; @set_temp11
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, 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	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	ldrsw	x24, [x23]
	cmp	x24, #3
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _lm99@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lm99@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, lt
	mov	x8, #-16000
	add	x8, x0, x8
	csel	x23, x8, x0, eq
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _adt7461@GOTPAGE
Lloh4:
	ldr	x9, [x9, _adt7461@GOTPAGEOFF]
Lloh5:
	adrp	x25, _max6657@GOTPAGE
Lloh6:
	ldr	x25, [x25, _max6657@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x26, _max6680@GOTPAGE
Lloh9:
	ldr	x26, [x26, _max6680@GOTPAGEOFF]
Lloh10:
	adrp	x27, _max6646@GOTPAGE
Lloh11:
	ldr	x27, [x27, _max6646@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x23
	bl	_temp_to_u16_adt7461
	b	LBB0_7
LBB0_2:
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_temp_to_s8
	lsl	w0, w0, #8
	b	LBB0_7
LBB0_4:
	ldr	x9, [x27]
	mov	x0, x23
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_temp_to_u8
	lsl	w0, w0, #8
	b	LBB0_7
LBB0_6:
	bl	_temp_to_s16
LBB0_7:
	ldr	x8, [x21, #8]
	str	w0, [x8, x24, lsl #2]
	lsl	w23, w24, #1
	sub	w8, w23, #2
Lloh12:
	adrp	x28, _set_temp11.reg@PAGE
Lloh13:
	add	x28, x28, _set_temp11.reg@PAGEOFF
	ldr	w1, [x28, w8, sxtw #2]
	asr	w2, w0, #8
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x21]
	ldr	x9, [x25]
	ldr	x10, [x26]
	ldr	x11, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_9
; %bb.8:
	sub	w8, w23, #1
	ldr	w1, [x28, w8, sxtw #2]
	ldr	x8, [x21, #8]
	lsl	x9, x24, #2
	ldrb	w2, [x8, x9]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
LBB0_9:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @set_temp11.reg
_set_temp11.reg:
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_lm99,8,3                       ; @lm99
	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_max6657,8,3                    ; @max6657
	.comm	_max6680,8,3                    ; @max6680
	.comm	_max6646,8,3                    ; @max6646
	.no_dead_strip	_set_temp11
.subsections_via_symbols
