	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm75_write_temp
_lm75_write_temp:                       ## @lm75_write_temp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	cmpl	$129, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.3:
	movq	_LM75_REG_HYST@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_LM75_REG_MAX@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	8(%r12), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %ebx
LBB0_6:
	movq	_LM75_TEMP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LM75_TEMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_clamp_val
	leal	-8(%rbx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	movq	%rax, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movb	$16, %cl
	subb	%bl, %cl
	shll	%cl, %eax
	movl	4(%r12), %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM75_REG_MAX,4,2               ## @LM75_REG_MAX
	.comm	_LM75_REG_HYST,4,2              ## @LM75_REG_HYST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LM75_TEMP_MIN,4,2              ## @LM75_TEMP_MIN
	.comm	_LM75_TEMP_MAX,4,2              ## @LM75_TEMP_MAX
	.no_dead_strip	_lm75_write_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm75_write_temp
_lm75_write_temp:                       ; @lm75_write_temp
	.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	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	cmp	w21, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _LM75_REG_HYST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM75_REG_HYST@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _LM75_REG_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LM75_REG_MAX@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	ldr	w22, [x8]
	cbnz	w22, LBB0_6
; %bb.5:
	ldr	w22, [x19]
LBB0_6:
Lloh4:
	adrp	x8, _LM75_TEMP_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LM75_TEMP_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _LM75_TEMP_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LM75_TEMP_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_clamp_val
	sub	w8, w22, #8
	lsl	x0, x0, x8
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	mov	w8, #16
	sub	w8, w8, w22
	lsl	w2, w0, w8
	ldr	w0, [x19, #4]
	mov	x1, x21
	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	_regmap_write
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LM75_REG_MAX,4,2               ; @LM75_REG_MAX
	.comm	_LM75_REG_HYST,4,2              ; @LM75_REG_HYST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LM75_TEMP_MIN,4,2              ; @LM75_TEMP_MIN
	.comm	_LM75_TEMP_MAX,4,2              ; @LM75_TEMP_MAX
	.no_dead_strip	_lm75_write_temp
.subsections_via_symbols
