	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_event_cam_plugin        ## -- Begin function mantis_event_cam_plugin
	.p2align	4, 0x90
_mantis_event_cam_plugin:               ## @mantis_event_cam_plugin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_MODULE_XTRACTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$50, %edi
	callq	_udelay
	movq	_MANTIS_CARD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-637534208, %edi               ## imm = 0xDA000000
	callq	_mmwrite
	movq	_MANTIS_GPIF_IRQCFG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mmread
	movq	_MANTIS_MASK_PLUGOUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MANTIS_MASK_PLUGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r14), %esi
	callq	_mmwrite
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	_MODULE_INSERTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movl	$100, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULE_XTRACTED,8,3            ## @MODULE_XTRACTED
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event: CAM Plugged IN: Adapter(%d) Slot(0)"

	.comm	_MANTIS_CARD_RESET,4,2          ## @MANTIS_CARD_RESET
	.comm	_MANTIS_GPIF_IRQCFG,4,2         ## @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_PLUGOUT,4,2        ## @MANTIS_MASK_PLUGOUT
	.comm	_MANTIS_MASK_PLUGIN,4,2         ## @MANTIS_MASK_PLUGIN
	.comm	_MODULE_INSERTED,8,3            ## @MODULE_INSERTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_event_cam_plugin        ; -- Begin function mantis_event_cam_plugin
	.p2align	2
_mantis_event_cam_plugin:               ; @mantis_event_cam_plugin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MODULE_XTRACTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODULE_XTRACTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _MANTIS_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	w3, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #50
	bl	_udelay
Lloh8:
	adrp	x8, _MANTIS_CARD_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MANTIS_CARD_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #-637534208
	bl	_mmwrite
Lloh11:
	adrp	x20, _MANTIS_GPIF_IRQCFG@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MANTIS_GPIF_IRQCFG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
Lloh13:
	adrp	x8, _MANTIS_MASK_PLUGOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MANTIS_MASK_PLUGOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh16:
	adrp	x9, _MANTIS_MASK_PLUGIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MANTIS_MASK_PLUGIN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w0, w8, w9
	ldr	w1, [x20]
	bl	_mmwrite
	mov	w0, #500
	bl	_udelay
Lloh19:
	adrp	x8, _MODULE_INSERTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MODULE_INSERTED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	mov	w0, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULE_XTRACTED,8,3            ; @MODULE_XTRACTED
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event: CAM Plugged IN: Adapter(%d) Slot(0)"

	.comm	_MANTIS_CARD_RESET,4,2          ; @MANTIS_CARD_RESET
	.comm	_MANTIS_GPIF_IRQCFG,4,2         ; @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_PLUGOUT,4,2        ; @MANTIS_MASK_PLUGOUT
	.comm	_MANTIS_MASK_PLUGIN,4,2         ; @MANTIS_MASK_PLUGIN
	.comm	_MODULE_INSERTED,8,3            ; @MODULE_INSERTED
.subsections_via_symbols
