	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_temp
_set_temp:                              ## @set_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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %rbx
	movl	4(%rax), %r13d
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	$128, %r13d
	je	LBB0_5
## %bb.2:
	cmpl	$129, %r13d
	jne	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_TEMP_TO_REG
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_regtempmax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	16(%r12), %rax
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_TEMP_TO_REG
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_regtemphyst@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	8(%r12), %rax
LBB0_4:
	movq	(%rax,%rbx,8), %rdx
	movq	%r12, %rdi
	callq	_vt1211_write8
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regtempmax,8,3                 ## @regtempmax
	.comm	_regtemphyst,8,3                ## @regtemphyst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown attr fetch (%d)\n"

	.no_dead_strip	_set_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_temp
_set_temp:                              ; @set_temp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	ldp	w21, w23, [x0]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	add	x2, sp, #8
	mov	x0, x24
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
	cmp	w23, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w23, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_TEMP_TO_REG
	ldr	x8, [x20, #16]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
Lloh0:
	adrp	x8, _regtempmax@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regtempmax@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, x21, lsl #2]
	ldr	x8, [x20, #16]
	b	LBB0_5
LBB0_4:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_TEMP_TO_REG
	ldr	x8, [x20, #8]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
Lloh3:
	adrp	x8, _regtemphyst@GOTPAGE
Lloh4:
	ldr	x8, [x8, _regtemphyst@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x21, lsl #2]
	ldr	x8, [x20, #8]
LBB0_5:
	ldr	x2, [x8, x9]
	mov	x0, x20
	bl	_vt1211_write8
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_regtempmax,8,3                 ; @regtempmax
	.comm	_regtemphyst,8,3                ; @regtemphyst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown attr fetch (%d)\n"

	.no_dead_strip	_set_temp
.subsections_via_symbols
