	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp108_write
_tmp108_write:                          ## @tmp108_write
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_hwmon_chip@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_10
## %bb.1:
	movq	_hwmon_chip_update_interval@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_28
## %bb.2:
	cmpq	$156, %r12
	jge	LBB0_4
## %bb.3:
	movq	_TMP108_CONVRATE_16HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_28
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	_TMP108_TEMP_MIN_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMP108_TEMP_MAX_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_clamp_val
	movq	%rax, %rbx
	movl	(%r14), %edi
	cmpl	$128, %r15d
	jne	LBB0_17
## %bb.18:
	movq	_TMP108_REG_TLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_28:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_29
LBB0_12:
	movq	_TMP108_TEMP_MIN_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMP108_TEMP_MAX_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_clamp_val
	movl	(%r14), %r14d
	cmpl	$129, %r15d
	jne	LBB0_13
## %bb.14:
	movq	_TMP108_REG_TLOW@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_4:
	cmpq	$625, %r12                      ## imm = 0x271
	jae	LBB0_6
## %bb.5:
	movq	_TMP108_CONVRATE_4HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_17:
	movq	_TMP108_REG_THIGH@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_29
## %bb.20:
	movl	-36(%rbp), %edi
	callq	_tmp108_temp_reg_to_mC
	movq	%rbx, %rcx
	subq	%rax, %rcx
	subq	%rbx, %rax
	cmpl	$128, %r15d
	cmoveq	%rcx, %rax
	cmpq	$500, %rax                      ## imm = 0x1F4
	jge	LBB0_22
## %bb.21:
	movq	_TMP108_HYSTERESIS_0C@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_13:
	movq	_TMP108_REG_THIGH@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_tmp108_mC_to_temp_reg
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_6:
	cmpq	$2500, %r12                     ## imm = 0x9C4
	jae	LBB0_7
## %bb.8:
	movq	_TMP108_CONVRATE_1HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_22:
	cmpq	$1500, %rax                     ## imm = 0x5DC
	jae	LBB0_24
## %bb.23:
	movq	_TMP108_HYSTERESIS_1C@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_7:
	movq	_TMP108_CONVRATE_0P25HZ@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ecx
	movl	(%r14), %edi
	movq	_TMP108_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMP108_CONF_CONVRATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_24:
	cmpq	$3000, %rax                     ## imm = 0xBB8
	jae	LBB0_25
## %bb.26:
	movq	_TMP108_HYSTERESIS_2C@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movq	_TMP108_HYSTERESIS_4C@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %ecx
	movl	(%r14), %edi
	movq	_TMP108_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMP108_CONF_HYSTERESIS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
LBB0_29:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_hwmon_chip,4,2                 ## @hwmon_chip
	.comm	_hwmon_chip_update_interval,4,2 ## @hwmon_chip_update_interval
	.comm	_TMP108_CONVRATE_16HZ,4,2       ## @TMP108_CONVRATE_16HZ
	.comm	_TMP108_CONVRATE_4HZ,4,2        ## @TMP108_CONVRATE_4HZ
	.comm	_TMP108_CONVRATE_1HZ,4,2        ## @TMP108_CONVRATE_1HZ
	.comm	_TMP108_CONVRATE_0P25HZ,4,2     ## @TMP108_CONVRATE_0P25HZ
	.comm	_TMP108_REG_CONF,4,2            ## @TMP108_REG_CONF
	.comm	_TMP108_CONF_CONVRATE_MASK,4,2  ## @TMP108_CONF_CONVRATE_MASK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_TMP108_TEMP_MIN_MC,4,2         ## @TMP108_TEMP_MIN_MC
	.comm	_TMP108_TEMP_MAX_MC,4,2         ## @TMP108_TEMP_MAX_MC
	.comm	_TMP108_REG_TLOW,4,2            ## @TMP108_REG_TLOW
	.comm	_TMP108_REG_THIGH,4,2           ## @TMP108_REG_THIGH
	.comm	_TMP108_HYSTERESIS_0C,4,2       ## @TMP108_HYSTERESIS_0C
	.comm	_TMP108_HYSTERESIS_1C,4,2       ## @TMP108_HYSTERESIS_1C
	.comm	_TMP108_HYSTERESIS_2C,4,2       ## @TMP108_HYSTERESIS_2C
	.comm	_TMP108_HYSTERESIS_4C,4,2       ## @TMP108_HYSTERESIS_4C
	.comm	_TMP108_CONF_HYSTERESIS_MASK,4,2 ## @TMP108_CONF_HYSTERESIS_MASK
	.no_dead_strip	_tmp108_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp108_write
_tmp108_write:                          ; @tmp108_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x4
	mov	x20, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _hwmon_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hwmon_chip@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _hwmon_chip_update_interval@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hwmon_chip_update_interval@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _TMP108_CONVRATE_16HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMP108_CONVRATE_16HZ@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TMP108_CONVRATE_4HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TMP108_CONVRATE_4HZ@GOTPAGEOFF]
Lloh10:
	adrp	x10, _TMP108_CONVRATE_0P25HZ@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TMP108_CONVRATE_0P25HZ@GOTPAGEOFF]
Lloh12:
	adrp	x11, _TMP108_CONVRATE_1HZ@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TMP108_CONVRATE_1HZ@GOTPAGEOFF]
	cmp	x21, #2500
	csel	x10, x11, x10, lo
	cmp	x21, #625
	csel	x9, x9, x10, lo
	cmp	x21, #156
	csel	x8, x8, x9, lt
	ldr	w3, [x8]
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _TMP108_REG_CONF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TMP108_REG_CONF@GOTPAGEOFF]
Lloh16:
	adrp	x9, _TMP108_CONF_CONVRATE_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TMP108_CONF_CONVRATE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	ldr	w2, [x9]
	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
	add	sp, sp, #64
	b	_regmap_update_bits
LBB0_3:
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.4:
Lloh20:
	adrp	x9, lJTI0_0@PAGE
Lloh21:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh22:
	adrp	x8, _TMP108_TEMP_MIN_MC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TMP108_TEMP_MIN_MC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _TMP108_TEMP_MAX_MC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TMP108_TEMP_MAX_MC@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_clamp_val
	mov	x21, x0
Lloh28:
	adrp	x8, _TMP108_REG_TLOW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TMP108_REG_TLOW@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh30:
	adrp	x9, _TMP108_REG_THIGH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TMP108_REG_THIGH@GOTPAGEOFF]
	cmp	w20, #128
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_14
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_tmp108_temp_reg_to_mC
	sub	x8, x21, x0
	sub	x9, x0, x21
	cmp	w20, #128
	csel	x8, x8, x9, eq
	cmp	x8, #500
	b.ge	LBB0_10
; %bb.7:
Lloh32:
	adrp	x8, _TMP108_HYSTERESIS_0C@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TMP108_HYSTERESIS_0C@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh34:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_9:
Lloh37:
	adrp	x8, _TMP108_TEMP_MIN_MC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TMP108_TEMP_MIN_MC@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _TMP108_TEMP_MAX_MC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TMP108_TEMP_MAX_MC@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_clamp_val
Lloh43:
	adrp	x8, _TMP108_REG_TLOW@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TMP108_REG_TLOW@GOTPAGEOFF]
	ldr	w19, [x19]
Lloh45:
	adrp	x9, _TMP108_REG_THIGH@GOTPAGE
Lloh46:
	ldr	x9, [x9, _TMP108_REG_THIGH@GOTPAGEOFF]
	cmp	w20, #129
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	bl	_tmp108_mC_to_temp_reg
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #64
	b	_regmap_write
LBB0_10:
	cmp	x8, #1500
	b.hs	LBB0_12
; %bb.11:
Lloh47:
	adrp	x8, _TMP108_HYSTERESIS_1C@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TMP108_HYSTERESIS_1C@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh49:
	adrp	x9, _TMP108_HYSTERESIS_4C@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TMP108_HYSTERESIS_4C@GOTPAGEOFF]
Lloh51:
	adrp	x10, _TMP108_HYSTERESIS_2C@GOTPAGE
Lloh52:
	ldr	x10, [x10, _TMP108_HYSTERESIS_2C@GOTPAGEOFF]
	cmp	x8, #3000
	csel	x8, x10, x9, lo
LBB0_13:
	ldr	w3, [x8]
	ldr	w0, [x19]
Lloh53:
	adrp	x8, _TMP108_REG_CONF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TMP108_REG_CONF@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x8, _TMP108_CONF_HYSTERESIS_MASK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _TMP108_CONF_HYSTERESIS_MASK@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	bl	_regmap_update_bits
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_hwmon_chip,4,2                 ; @hwmon_chip
	.comm	_hwmon_chip_update_interval,4,2 ; @hwmon_chip_update_interval
	.comm	_TMP108_CONVRATE_16HZ,4,2       ; @TMP108_CONVRATE_16HZ
	.comm	_TMP108_CONVRATE_4HZ,4,2        ; @TMP108_CONVRATE_4HZ
	.comm	_TMP108_CONVRATE_1HZ,4,2        ; @TMP108_CONVRATE_1HZ
	.comm	_TMP108_CONVRATE_0P25HZ,4,2     ; @TMP108_CONVRATE_0P25HZ
	.comm	_TMP108_REG_CONF,4,2            ; @TMP108_REG_CONF
	.comm	_TMP108_CONF_CONVRATE_MASK,4,2  ; @TMP108_CONF_CONVRATE_MASK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_TMP108_TEMP_MIN_MC,4,2         ; @TMP108_TEMP_MIN_MC
	.comm	_TMP108_TEMP_MAX_MC,4,2         ; @TMP108_TEMP_MAX_MC
	.comm	_TMP108_REG_TLOW,4,2            ; @TMP108_REG_TLOW
	.comm	_TMP108_REG_THIGH,4,2           ; @TMP108_REG_THIGH
	.comm	_TMP108_HYSTERESIS_0C,4,2       ; @TMP108_HYSTERESIS_0C
	.comm	_TMP108_HYSTERESIS_1C,4,2       ; @TMP108_HYSTERESIS_1C
	.comm	_TMP108_HYSTERESIS_2C,4,2       ; @TMP108_HYSTERESIS_2C
	.comm	_TMP108_HYSTERESIS_4C,4,2       ; @TMP108_HYSTERESIS_4C
	.comm	_TMP108_CONF_HYSTERESIS_MASK,4,2 ; @TMP108_CONF_HYSTERESIS_MASK
	.no_dead_strip	_tmp108_write
.subsections_via_symbols
