	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_temp_write
_lm90_temp_write:                       ## @lm90_temp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_lm90_update_device
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addl	$-128, %r13d
	cmpl	$5, %r13d
	ja	LBB0_15
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_REMOTE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_8
LBB0_15:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_lm90_temp_min_index@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_lm90_temp_max_index@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.7:
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_lm90_set_temp11
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_13:
	movq	_lm90_temp_emerg_index@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lm90_set_temphyst
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_10:
	movq	_lm90_temp_crit_index@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	jmp	LBB0_6
LBB0_5:
	movl	(%rax), %esi
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_lm90_set_temp8
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_lm90_temp_min_index,8,3        ## @lm90_temp_min_index
	.comm	_lm90_temp_max_index,8,3        ## @lm90_temp_max_index
	.comm	_lm90_temp_crit_index,8,3       ## @lm90_temp_crit_index
	.comm	_lm90_temp_emerg_index,8,3      ## @lm90_temp_emerg_index
	.comm	_REMOTE_OFFSET,4,2              ## @REMOTE_OFFSET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_lm90_temp_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_temp_write
_lm90_temp_write:                       ; @lm90_temp_write
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x22
	bl	_lm90_update_device
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh2:
	adrp	x8, _REMOTE_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REMOTE_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
LBB0_6:
Lloh8:
	adrp	x8, _lm90_temp_min_index@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lm90_temp_min_index@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	w21, LBB0_10
LBB0_7:
	ldr	w1, [x8, w21, sxtw #2]
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_lm90_set_temp11
	mov	x22, x0
	b	LBB0_1
LBB0_9:
Lloh11:
	adrp	x8, _lm90_temp_max_index@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lm90_temp_max_index@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbnz	w21, LBB0_7
LBB0_10:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_11:
Lloh14:
	adrp	x8, _lm90_temp_emerg_index@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lm90_temp_emerg_index@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_lm90_set_temphyst
	mov	x22, x0
	b	LBB0_1
LBB0_13:
Lloh16:
	adrp	x8, _lm90_temp_crit_index@GOTPAGE
Lloh17:
	ldr	x8, [x8, _lm90_temp_crit_index@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	ldr	w1, [x8, w21, sxtw #2]
LBB0_15:
	mov	x0, x19
	mov	x2, x20
	bl	_lm90_set_temp8
	mov	x22, x0
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_lm90_temp_min_index,8,3        ; @lm90_temp_min_index
	.comm	_lm90_temp_max_index,8,3        ; @lm90_temp_max_index
	.comm	_lm90_temp_crit_index,8,3       ; @lm90_temp_crit_index
	.comm	_lm90_temp_emerg_index,8,3      ; @lm90_temp_emerg_index
	.comm	_REMOTE_OFFSET,4,2              ; @REMOTE_OFFSET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_lm90_temp_write
.subsections_via_symbols
