	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_pcmcia_init             ## -- Begin function mantis_pcmcia_init
	.p2align	4, 0x90
_mantis_pcmcia_init:                    ## @mantis_pcmcia_init
	.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	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_MANTIS_INT_IRQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mantis_unmask_ints
	movq	_MANTIS_GPIF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mmread
	movl	%eax, %ebx
	movq	_MANTIS_GPIF_IRQCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mmread
	movq	_MANTIS_GPIF_DETSTAT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	%eax, %r12d
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	testl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_MANTIS_MASK_PLUGOUT@GOTPCREL(%rip), %rbx
	cmoveq	_MANTIS_MASK_PLUGIN@GOTPCREL(%rip), %rbx
	movq	_MODULE_INSERTED@GOTPCREL(%rip), %r15
	cmoveq	_MODULE_XTRACTED@GOTPCREL(%rip), %r15
	movq	_DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPCREL(%rip), %r13
	cmoveq	_DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPCREL(%rip), %r13
	movl	$1, %esi
	callq	_dprintk
	movq	_MANTIS_GPIF_IRQCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %r12d
	movl	%r12d, %edi
	callq	_mmwrite
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dvb_ca_en50221_camchange_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_INT_IRQ0,4,2            ## @MANTIS_INT_IRQ0
	.comm	_MANTIS_GPIF_STATUS,4,2         ## @MANTIS_GPIF_STATUS
	.comm	_MANTIS_GPIF_IRQCFG,4,2         ## @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_GPIF_DETSTAT,4,2        ## @MANTIS_GPIF_DETSTAT
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAM found on Adapter(%d) Slot(0)"

	.comm	_MANTIS_MASK_PLUGOUT,4,2        ## @MANTIS_MASK_PLUGOUT
	.comm	_MODULE_INSERTED,4,2            ## @MODULE_INSERTED
	.comm	_DVB_CA_EN50221_CAMCHANGE_INSERTED,4,2 ## @DVB_CA_EN50221_CAMCHANGE_INSERTED
L_.str.1:                               ## @.str.1
	.asciz	"Empty Slot on Adapter(%d) Slot(0)"

	.comm	_MANTIS_MASK_PLUGIN,4,2         ## @MANTIS_MASK_PLUGIN
	.comm	_MODULE_XTRACTED,4,2            ## @MODULE_XTRACTED
	.comm	_DVB_CA_EN50221_CAMCHANGE_REMOVED,4,2 ## @DVB_CA_EN50221_CAMCHANGE_REMOVED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_pcmcia_init             ; -- Begin function mantis_pcmcia_init
	.p2align	2
_mantis_pcmcia_init:                    ; @mantis_pcmcia_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _MANTIS_INT_IRQ0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_INT_IRQ0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mantis_unmask_ints
Lloh3:
	adrp	x8, _MANTIS_GPIF_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MANTIS_GPIF_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_mmread
	mov	x21, x0
Lloh6:
	adrp	x23, _MANTIS_GPIF_IRQCFG@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MANTIS_GPIF_IRQCFG@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_mmread
	mov	x22, x0
Lloh8:
	adrp	x8, _MANTIS_GPIF_DETSTAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MANTIS_GPIF_DETSTAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MANTIS_DEBUG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldr	w3, [x20]
Lloh14:
	adrp	x9, l_.str@PAGE
Lloh15:
	add	x9, x9, l_.str@PAGEOFF
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w21
	csel	x2, x10, x9, eq
Lloh18:
	adrp	x8, _MANTIS_MASK_PLUGIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MANTIS_MASK_PLUGIN@GOTPAGEOFF]
Lloh20:
	adrp	x9, _MANTIS_MASK_PLUGOUT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MANTIS_MASK_PLUGOUT@GOTPAGEOFF]
	csel	x20, x8, x9, eq
Lloh22:
	adrp	x8, _MODULE_XTRACTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MODULE_XTRACTED@GOTPAGEOFF]
Lloh24:
	adrp	x9, _MODULE_INSERTED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MODULE_INSERTED@GOTPAGEOFF]
Lloh26:
	adrp	x10, _DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPAGEOFF]
Lloh28:
	adrp	x11, _DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPAGE
Lloh29:
	ldr	x11, [x11, _DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	csel	x24, x10, x11, eq
	mov	w1, #1
	bl	_dprintk
	ldr	w8, [x20]
	orr	w0, w8, w22
	ldr	w1, [x23]
	bl	_mmwrite
	ldr	w8, [x21]
	str	w8, [x19, #4]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #0
	bl	_dvb_ca_en50221_camchange_irq
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_INT_IRQ0,4,2            ; @MANTIS_INT_IRQ0
	.comm	_MANTIS_GPIF_STATUS,4,2         ; @MANTIS_GPIF_STATUS
	.comm	_MANTIS_GPIF_IRQCFG,4,2         ; @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_GPIF_DETSTAT,4,2        ; @MANTIS_GPIF_DETSTAT
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAM found on Adapter(%d) Slot(0)"

	.comm	_MANTIS_MASK_PLUGOUT,4,2        ; @MANTIS_MASK_PLUGOUT
	.comm	_MODULE_INSERTED,4,2            ; @MODULE_INSERTED
	.comm	_DVB_CA_EN50221_CAMCHANGE_INSERTED,4,2 ; @DVB_CA_EN50221_CAMCHANGE_INSERTED
l_.str.1:                               ; @.str.1
	.asciz	"Empty Slot on Adapter(%d) Slot(0)"

	.comm	_MANTIS_MASK_PLUGIN,4,2         ; @MANTIS_MASK_PLUGIN
	.comm	_MODULE_XTRACTED,4,2            ; @MODULE_XTRACTED
	.comm	_DVB_CA_EN50221_CAMCHANGE_REMOVED,4,2 ; @DVB_CA_EN50221_CAMCHANGE_REMOVED
.subsections_via_symbols
