	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_chassis_clear
_store_chassis_clear:                   ## @store_chassis_clear
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	cmpq	$0, -40(%rbp)
	jne	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_W83795_REG_CLR_CHASSIS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_w83795_read
	orq	$128, %rax
	movq	%rax, -40(%rbp)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_w83795_write
	movl	$5, %edi
	callq	_W83795_REG_ALARM
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_w83795_read
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
LBB0_4:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_W83795_REG_CLR_CHASSIS,4,2     ## @W83795_REG_CLR_CHASSIS
	.no_dead_strip	_store_chassis_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_chassis_clear
_store_chassis_clear:                   ; @store_chassis_clear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _W83795_REG_CLR_CHASSIS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _W83795_REG_CLR_CHASSIS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83795_read
	orr	x2, x0, #0x80
	str	x2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83795_write
	mov	w0, #5
	bl	_W83795_REG_ALARM
	mov	x1, x0
	mov	x0, x21
	bl	_w83795_read
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83795_REG_CLR_CHASSIS,4,2     ; @W83795_REG_CLR_CHASSIS
	.no_dead_strip	_store_chassis_clear
.subsections_via_symbols
