	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_point2
_set_point2:                            ## @set_point2
	.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	$40, %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, %r14
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strict_strtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_REG_CONFIG5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adt7475_read
	movl	%eax, (%r13)
	movq	(%rbx), %rdi
	callq	_TEMP_TMIN_REG
	movl	%eax, %edi
	callq	_adt7475_read
	shll	$2, %eax
	movq	8(%r13), %rcx
	movq	_AUTOMIN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rbx), %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx,%rdi,4)
	callq	_TEMP_TRANGE_REG
	movl	%eax, %edi
	callq	_adt7475_read
	movq	16(%r13), %rcx
	movq	(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%r13), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rdx,4), %esi
	movq	%r13, %rdi
	callq	_reg2temp
	movq	-48(%rbp), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r12
	movq	_autorange_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%r14), %rbx
	addq	%r12, %rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	movq	-8(%r14,%rax,8), %rdx
	addq	%r12, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_SENSORS_LIMIT
	movq	%rax, %rbx
	subq	%r12, %rbx
	movq	%rbx, -48(%rbp)
	movq	_autorange_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_find_nearest
	movq	%rax, -48(%rbp)
	movq	16(%r13), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movl	$-241, %edx
	andl	(%rcx,%rdi,4), %edx
	shll	$4, %eax
	orl	%edx, %eax
	movl	%eax, (%rcx,%rdi,4)
	callq	_TEMP_TRANGE_REG
	movq	16(%r13), %rcx
	movq	(%rbx), %rdx
	movslq	(%rcx,%rdx,4), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_3:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_REG_CONFIG5,4,2                ## @REG_CONFIG5
	.comm	_AUTOMIN,8,3                    ## @AUTOMIN
	.comm	_autorange_table,8,3            ## @autorange_table
	.no_dead_strip	_set_point2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_point2
_set_point2:                            ; @set_point2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x22, x1
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_strict_strtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_3
LBB0_2:
	add	x23, x21, #24
	mov	x0, x23
	bl	_mutex_lock
Lloh3:
	adrp	x8, _REG_CONFIG5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_CONFIG5@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_adt7475_read
	str	w0, [x21]
	ldr	x0, [x22]
	bl	_TEMP_TMIN_REG
	bl	_adt7475_read
	lsl	w8, w0, #2
	ldr	x9, [x21, #8]
Lloh6:
	adrp	x24, _AUTOMIN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AUTOMIN@GOTPAGEOFF]
	ldr	x10, [x24]
	ldr	x9, [x9, x10, lsl #3]
	ldr	x0, [x22]
	str	w8, [x9, x0, lsl #2]
	bl	_TEMP_TRANGE_REG
	bl	_adt7475_read
	ldr	x8, [x22]
	lsl	x8, x8, #2
	ldp	x10, x9, [x21, #8]
	str	w0, [x9, x8]
	ldr	x9, [x24]
	ldr	x9, [x10, x9, lsl #3]
	ldr	w1, [x9, x8]
	mov	x0, x21
	bl	_reg2temp
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x24, [sp, #8]
	sxtw	x27, w0
Lloh8:
	adrp	x28, _autorange_table@GOTPAGE
Lloh9:
	ldr	x28, [x28, _autorange_table@GOTPAGEOFF]
	ldr	x25, [x28]
	ldr	x8, [x25]
	add	x26, x8, x27
	mov	x0, x25
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	ldr	x8, [x25, w8, sxtw #3]
	add	x2, x8, x27
	mov	x0, x24
	mov	x1, x26
	bl	_SENSORS_LIMIT
	sub	x24, x0, x27
	str	x24, [sp, #8]
	ldr	x25, [x28]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_find_nearest
	str	x0, [sp, #8]
	ldr	x9, [x21, #16]
	ldr	x8, [x22]
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	and	w11, w11, #0xffffff0f
	orr	w11, w11, w0, lsl #4
	str	w11, [x9, x10]
	mov	x0, x8
	bl	_TEMP_TRANGE_REG
	mov	x1, x0
	ldr	x8, [x21, #16]
	ldr	x9, [x22]
	ldrsw	x2, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x23
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_REG_CONFIG5,4,2                ; @REG_CONFIG5
	.comm	_AUTOMIN,8,3                    ; @AUTOMIN
	.comm	_autorange_table,8,3            ; @autorange_table
	.no_dead_strip	_set_point2
.subsections_via_symbols
