	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95241_write_temp
_lm95241_write_temp:                    ## @lm95241_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movl	%esi, %r14d
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %r15
	movq	24(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$128, %r14d
	je	LBB0_5
## %bb.1:
	cmpl	$130, %r14d
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.3:
	cmpl	$1, %r13d
	jne	LBB0_11
## %bb.4:
	movq	_R1DF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	leaq	-3(%r12), %rax
	cmpq	$-3, %rax
	ja	LBB0_14
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	cmpl	$1, %r13d
	jne	LBB0_16
## %bb.8:
	movq	_R1DF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_11:
	movq	_R2DF_MASK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edx
	testq	%r12, %r12
	js	LBB0_20
## %bb.13:
	notl	%edx
	andl	(%r15), %edx
	jmp	LBB0_21
LBB0_14:
	movq	_TT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %r13d
	jne	LBB0_26
## %bb.15:
	movq	_TT1_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %eax
	notl	%eax
	movq	%r15, %r13
	andl	4(%r15), %eax
	addq	$4, %rbx
	movq	_R1MS_MASK@GOTPCREL(%rip), %rdx
	jmp	LBB0_27
LBB0_16:
	movq	_R2DF_MASK@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edx
	cmpq	$127875, %r12                   ## imm = 0x1F383
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_19
## %bb.18:
	orl	(%r15), %edx
	movl	%edx, (%r15)
	jmp	LBB0_22
LBB0_19:
	notl	%edx
	andl	(%r15), %edx
	movl	%edx, (%r15)
	jmp	LBB0_22
LBB0_20:
	orl	(%r15), %edx
LBB0_21:
	movl	%edx, (%r15)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, 16(%r15)
	movq	_LM95241_REG_RW_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_23:
	callq	_i2c_smbus_write_byte_data
LBB0_24:
	movl	%eax, %ebx
LBB0_25:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_TT2_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %eax
	notl	%eax
	movq	%r15, %r13
	andl	4(%r15), %eax
	addq	$4, %rbx
	movq	_R2MS_MASK@GOTPCREL(%rip), %rdx
LBB0_27:
	movl	(%rdx), %edx
	cmpq	$1, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_29
## %bb.28:
	orl	8(%r13), %edx
	movl	%edx, 8(%r13)
	movq	_TT_ON@GOTPCREL(%rip), %rsi
	jmp	LBB0_30
LBB0_29:
	notl	%edx
	andl	8(%r13), %edx
	movl	%edx, 8(%r13)
	movq	_TT_OFF@GOTPCREL(%rip), %rsi
LBB0_30:
	movl	(%rsi), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orl	%eax, %esi
	movl	%esi, (%rbx)
	movq	_LM95241_REG_RW_REMOTE_MODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_24
## %bb.31:
	movq	_LM95241_REG_RW_TRUTHERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	movq	%r15, %rdi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_R1DF_MASK,4,2                  ## @R1DF_MASK
	.comm	_R2DF_MASK,4,2                  ## @R2DF_MASK
	.comm	_LM95241_REG_RW_CONFIG,4,2      ## @LM95241_REG_RW_CONFIG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TT_MASK,4,2                    ## @TT_MASK
	.comm	_TT1_SHIFT,4,2                  ## @TT1_SHIFT
	.comm	_R1MS_MASK,4,2                  ## @R1MS_MASK
	.comm	_TT_ON,4,2                      ## @TT_ON
	.comm	_TT_OFF,4,2                     ## @TT_OFF
	.comm	_TT2_SHIFT,4,2                  ## @TT2_SHIFT
	.comm	_R2MS_MASK,4,2                  ## @R2MS_MASK
	.comm	_LM95241_REG_RW_REMOTE_MODEL,4,2 ## @LM95241_REG_RW_REMOTE_MODEL
	.comm	_LM95241_REG_RW_TRUTHERM,4,2    ## @LM95241_REG_RW_TRUTHERM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_lm95241_write_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95241_write_temp
_lm95241_write_temp:                    ; @lm95241_write_temp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #24]
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
	cmp	w24, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w24, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w24, #129
	b.ne	LBB0_9
; %bb.3:
	cmp	w23, #1
	b.ne	LBB0_11
; %bb.4:
Lloh0:
	adrp	x8, _R1DF_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1DF_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbz	x22, #63, LBB0_12
	b	LBB0_17
LBB0_5:
	sub	x8, x22, #3
	cmn	x8, #3
	b.hi	LBB0_13
; %bb.6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	cmp	w23, #1
	b.ne	LBB0_15
; %bb.8:
Lloh5:
	adrp	x8, _R1DF_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R1DF_MASK@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_11:
Lloh9:
	adrp	x8, _R2DF_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R2DF_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tbnz	x22, #63, LBB0_17
LBB0_12:
	ldr	w9, [x21]
	bic	w2, w9, w8
	b	LBB0_18
LBB0_13:
Lloh12:
	adrp	x8, _TT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x8]
	cmp	w23, #1
	b.ne	LBB0_22
; %bb.14:
Lloh15:
	adrp	x8, _TT1_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TT1_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x9, x21
	ldr	w11, [x9, #4]!
	lsl	w10, w10, w8
	bic	w10, w11, w10
Lloh18:
	adrp	x11, _R1MS_MASK@GOTPAGE
Lloh19:
	ldr	x11, [x11, _R1MS_MASK@GOTPAGEOFF]
	b	LBB0_23
LBB0_15:
Lloh20:
	adrp	x8, _R2DF_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R2DF_MASK@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	mov	w9, #62339
	movk	w9, #1, lsl #16
	cmp	x22, x9
	b.gt	LBB0_12
LBB0_17:
	ldr	w9, [x21]
	orr	w2, w9, w8
LBB0_18:
	str	w2, [x21]
	str	wzr, [x21, #16]
Lloh22:
	adrp	x8, _LM95241_REG_RW_CONFIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LM95241_REG_RW_CONFIG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
LBB0_19:
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
LBB0_20:
	mov	x22, x0
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh25:
	adrp	x8, _TT2_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TT2_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	x9, x21
	ldr	w11, [x9, #4]!
	lsl	w10, w10, w8
	bic	w10, w11, w10
Lloh28:
	adrp	x11, _R2MS_MASK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _R2MS_MASK@GOTPAGEOFF]
LBB0_23:
	ldr	w11, [x11]
	cmp	x22, #1
	b.ne	LBB0_25
; %bb.24:
	ldr	w12, [x21, #8]
	orr	w2, w12, w11
	str	w2, [x21, #8]
Lloh30:
	adrp	x11, _TT_ON@GOTPAGE
Lloh31:
	ldr	x11, [x11, _TT_ON@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
	ldr	w12, [x21, #8]
	bic	w2, w12, w11
	str	w2, [x21, #8]
Lloh32:
	adrp	x11, _TT_OFF@GOTPAGE
Lloh33:
	ldr	x11, [x11, _TT_OFF@GOTPAGEOFF]
LBB0_26:
	ldr	w11, [x11]
	lsl	w8, w11, w8
	orr	w8, w8, w10
	str	w8, [x9]
Lloh34:
	adrp	x8, _LM95241_REG_RW_REMOTE_MODEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LM95241_REG_RW_REMOTE_MODEL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_20
; %bb.27:
Lloh37:
	adrp	x8, _LM95241_REG_RW_TRUTHERM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LM95241_REG_RW_TRUTHERM@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_R1DF_MASK,4,2                  ; @R1DF_MASK
	.comm	_R2DF_MASK,4,2                  ; @R2DF_MASK
	.comm	_LM95241_REG_RW_CONFIG,4,2      ; @LM95241_REG_RW_CONFIG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TT_MASK,4,2                    ; @TT_MASK
	.comm	_TT1_SHIFT,4,2                  ; @TT1_SHIFT
	.comm	_R1MS_MASK,4,2                  ; @R1MS_MASK
	.comm	_TT_ON,4,2                      ; @TT_ON
	.comm	_TT_OFF,4,2                     ; @TT_OFF
	.comm	_TT2_SHIFT,4,2                  ; @TT2_SHIFT
	.comm	_R2MS_MASK,4,2                  ; @R2MS_MASK
	.comm	_LM95241_REG_RW_REMOTE_MODEL,4,2 ; @LM95241_REG_RW_REMOTE_MODEL
	.comm	_LM95241_REG_RW_TRUTHERM,4,2    ; @LM95241_REG_RW_TRUTHERM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_lm95241_write_temp
.subsections_via_symbols
