	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r15
	movslq	4(%rax), %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$2, %r14d
	je	LBB0_7
## %bb.2:
	cmpl	$3, %r14d
	jne	LBB0_8
## %bb.3:
	movq	_IT87_REG_BEEP_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_it87_read_value
	testb	$-128, %al
	jne	LBB0_5
## %bb.4:
	orl	$128, %eax
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_it87_write_value
LBB0_5:
	movl	$0, 12(%r12)
	movq	_IT87_REG_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r13d
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_11
LBB0_7:
	movl	%r15d, %edi
	callq	_IT87_REG_TEMP_HIGH
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %edi
	callq	_IT87_REG_TEMP_LOW
LBB0_9:
	movl	%eax, %r13d
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_TEMP_TO_REG
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_it87_write_value
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_IT87_REG_BEEP_ENABLE,4,2       ## @IT87_REG_BEEP_ENABLE
	.comm	_IT87_REG_TEMP_OFFSET,8,3       ## @IT87_REG_TEMP_OFFSET
	.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	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldpsw	x20, x24, [x0]
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	tbnz	x0, #63, LBB0_6
; %bb.1:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	cmp	w24, #2
	b.eq	LBB0_7
; %bb.2:
	cmp	w24, #3
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x23, _IT87_REG_BEEP_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IT87_REG_BEEP_ENABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_it87_read_value
	tbnz	w0, #7, LBB0_5
; %bb.4:
	orr	w2, w0, #0x80
	ldr	w1, [x23]
	mov	x0, x21
	bl	_it87_write_value
LBB0_5:
	str	wzr, [x21, #12]
Lloh2:
	adrp	x8, _IT87_REG_TEMP_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IT87_REG_TEMP_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w23, [x8, x20, lsl #2]
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_IT87_REG_TEMP_HIGH
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_IT87_REG_TEMP_LOW
LBB0_9:
	mov	x23, x0
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_TEMP_TO_REG
	mov	x2, x0
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	str	w0, [x8, x24, lsl #2]
	mov	x0, x21
	mov	x1, x23
	bl	_it87_write_value
	mov	x0, x22
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_IT87_REG_BEEP_ENABLE,4,2       ; @IT87_REG_BEEP_ENABLE
	.comm	_IT87_REG_TEMP_OFFSET,8,3       ; @IT87_REG_TEMP_OFFSET
	.no_dead_strip	_set_temp
.subsections_via_symbols
