	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intrusion0_alarm_store
_intrusion0_alarm_store:                ## @intrusion0_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, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	orq	-48(%rbp), %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_6
LBB0_2:
	movq	%r12, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%r12), %edi
	callq	_superio_enter
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movslq	%eax, %r14
	jmp	LBB0_5
LBB0_4:
	movl	8(%r12), %edi
	movq	_NCT6683_LD_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_select
	movl	8(%r12), %edi
	movq	_NCT6683_REG_CR_CASEOPEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_superio_inb
	movl	%eax, %ebx
	movq	_NCT6683_CR_CASEOPEN_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	8(%r12), %edi
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_superio_outb
	movq	_NCT6683_CR_CASEOPEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	8(%r12), %edi
	movl	(%r13), %esi
	callq	_superio_outb
	movl	8(%r12), %edi
	callq	_superio_exit
	movl	$0, (%r12)
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%r14, %rax
	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
	.comm	_NCT6683_LD_ACPI,4,2            ## @NCT6683_LD_ACPI
	.comm	_NCT6683_REG_CR_CASEOPEN,4,2    ## @NCT6683_REG_CR_CASEOPEN
	.comm	_NCT6683_CR_CASEOPEN_MASK,4,2   ## @NCT6683_CR_CASEOPEN_MASK
	.no_dead_strip	_intrusion0_alarm_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intrusion0_alarm_store
_intrusion0_alarm_store:                ; @intrusion0_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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	ldr	x8, [sp, #8]
	orr	x8, x0, x8
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_2:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x20, #8]
	bl	_superio_enter
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.3:
	sxtw	x19, w0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _NCT6683_LD_ACPI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCT6683_LD_ACPI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_superio_select
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x23, _NCT6683_REG_CR_CASEOPEN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NCT6683_REG_CR_CASEOPEN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_superio_inb
Lloh8:
	adrp	x24, _NCT6683_CR_CASEOPEN_MASK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _NCT6683_CR_CASEOPEN_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w22, w8, w0
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	mov	x2, x22
	bl	_superio_outb
	ldr	w8, [x24]
	bic	w2, w22, w8
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	bl	_superio_outb
	ldr	w0, [x20, #8]
	bl	_superio_exit
	str	wzr, [x20]
LBB0_5:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_NCT6683_LD_ACPI,4,2            ; @NCT6683_LD_ACPI
	.comm	_NCT6683_REG_CR_CASEOPEN,4,2    ; @NCT6683_REG_CR_CASEOPEN
	.comm	_NCT6683_CR_CASEOPEN_MASK,4,2   ; @NCT6683_CR_CASEOPEN_MASK
	.no_dead_strip	_intrusion0_alarm_store
.subsections_via_symbols
