	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_alarm_store
_temp_alarm_store:                      ## @temp_alarm_store
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_fts_update_device
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	orq	-48(%rbp), %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%r13, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	8(%r13), %ebx
	movl	%r15d, %edi
	callq	_FTS_REG_TEMP_CONTROL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fts_read_byte
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movl	8(%r13), %ebx
	movl	%r15d, %edi
	callq	_FTS_REG_TEMP_CONTROL
	movq	-48(%rbp), %rdx
	orq	$1, %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fts_write_byte
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movl	$0, (%r13)
	movq	%r14, -48(%rbp)
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_temp_alarm_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_alarm_store
_temp_alarm_store:                      ; @temp_alarm_store
	.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, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldr	w21, [x0]
	mov	x0, x20
	bl	_fts_update_device
	str	x0, [sp, #8]
	tbnz	x0, #63, LBB0_7
; %bb.1:
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	ldr	x8, [sp, #8]
	orr	x8, x0, x8
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_7
LBB0_3:
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w23, [x20, #8]
	mov	x0, x21
	bl	_FTS_REG_TEMP_CONTROL
	mov	x1, x0
	mov	x0, x23
	bl	_fts_read_byte
	str	x0, [sp, #8]
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	w23, [x20, #8]
	mov	x0, x21
	bl	_FTS_REG_TEMP_CONTROL
	mov	x1, x0
	ldr	x8, [sp, #8]
	orr	x2, x8, #0x1
	mov	x0, x23
	bl	_fts_write_byte
	str	x0, [sp, #8]
	tbnz	x0, #63, LBB0_6
; %bb.5:
	str	wzr, [x20]
	str	x19, [sp, #8]
LBB0_6:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x0, [sp, #8]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_temp_alarm_store
.subsections_via_symbols
