	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_set_temphyst
_lm90_set_temphyst:                     ## @lm90_set_temphyst
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	movq	_adt7461@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_tmp451@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_max6646@GOTPCREL(%rip), %rcx
	movq	16(%rbx), %rdx
	movq	_LOCAL_CRIT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	callq	_temp_from_u8
	jmp	LBB0_6
LBB0_2:
	movq	16(%rbx), %rax
	movq	_LOCAL_CRIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_temp_from_u8_adt7461
	jmp	LBB0_6
LBB0_5:
	callq	_temp_from_s8
LBB0_6:
	subl	%r15d, %eax
	movl	%eax, %edi
	callq	_hyst_to_reg
	movl	%eax, 8(%rbx)
	movq	_LM90_REG_W_TCRIT_HYST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_tmp451,8,3                     ## @tmp451
	.comm	_LOCAL_CRIT,8,3                 ## @LOCAL_CRIT
	.comm	_max6646,8,3                    ## @max6646
	.comm	_LM90_REG_W_TCRIT_HYST,4,2      ## @LM90_REG_W_TCRIT_HYST
	.no_dead_strip	_lm90_set_temphyst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_set_temphyst
_lm90_set_temphyst:                     ; @lm90_set_temphyst
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _adt7461@GOTPAGE
Lloh1:
	ldr	x9, [x9, _adt7461@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _tmp451@GOTPAGE
Lloh4:
	ldr	x10, [x10, _tmp451@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _LOCAL_CRIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOCAL_CRIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_temp_from_u8_adt7461
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x9, _max6646@GOTPAGE
Lloh10:
	ldr	x9, [x9, _max6646@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x10, [x20, #16]
Lloh12:
	adrp	x11, _LOCAL_CRIT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _LOCAL_CRIT@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldr	w0, [x10, x11, lsl #2]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_temp_from_u8
	b	LBB0_5
LBB0_4:
	bl	_temp_from_s8
LBB0_5:
	sub	w0, w0, w21
	bl	_hyst_to_reg
	mov	x2, x0
	str	w0, [x20, #8]
Lloh15:
	adrp	x8, _LM90_REG_W_TCRIT_HYST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LM90_REG_W_TCRIT_HYST@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_tmp451,8,3                     ; @tmp451
	.comm	_LOCAL_CRIT,8,3                 ; @LOCAL_CRIT
	.comm	_max6646,8,3                    ; @max6646
	.comm	_LM90_REG_W_TCRIT_HYST,4,2      ; @LM90_REG_W_TCRIT_HYST
	.no_dead_strip	_lm90_set_temphyst
.subsections_via_symbols
