	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_ca_init                 ## -- Begin function mantis_ca_init
	.p2align	4, 0x90
_mantis_ca_init:                        ## @mantis_ca_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, %r12
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	8(%r12), %r15
	movq	%r12, 64(%rbx)
	movq	%rbx, (%r12)
	movq	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_mantis_ca_read_attr_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_mantis_ca_write_attr_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_mantis_ca_read_cam_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_mantis_ca_write_cam_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_mantis_ca_slot_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_mantis_ca_slot_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_mantis_ts_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_mantis_slot_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, (%rbx)
	leaq	60(%rbx), %rdi
	callq	_mutex_init
	leaq	56(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	52(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_init_waitqueue_head
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_dvb_ca_en50221_init
	movl	(%r13), %edi
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	%r15d, %r14d
	jmp	LBB0_4
LBB0_1:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mantis_evmgr_init
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing Mantis CA"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory!, exiting .."

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE,4,2 ## @DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mantis_ca_read_attr_mem,4,2    ## @mantis_ca_read_attr_mem
	.comm	_mantis_ca_write_attr_mem,4,2   ## @mantis_ca_write_attr_mem
	.comm	_mantis_ca_read_cam_ctl,4,2     ## @mantis_ca_read_cam_ctl
	.comm	_mantis_ca_write_cam_ctl,4,2    ## @mantis_ca_write_cam_ctl
	.comm	_mantis_ca_slot_reset,4,2       ## @mantis_ca_slot_reset
	.comm	_mantis_ca_slot_shutdown,4,2    ## @mantis_ca_slot_shutdown
	.comm	_mantis_ts_control,4,2          ## @mantis_ts_control
	.comm	_mantis_slot_status,4,2         ## @mantis_slot_status
L_.str.2:                               ## @.str.2
	.asciz	"Registering EN50221 device"

L_.str.3:                               ## @.str.3
	.asciz	"EN50221: Initialization failed <%d>"

L_.str.4:                               ## @.str.4
	.asciz	"Registered EN50221 device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_ca_init                 ; -- Begin function mantis_ca_init
	.p2align	2
_mantis_ca_init:                        ; @mantis_ca_init
	.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	x20, x0
Lloh0:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	str	x20, [x19, #64]
	str	x19, [x20], #8
Lloh8:
	adrp	x8, _DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh14:
	adrp	x8, _mantis_ca_read_attr_mem@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mantis_ca_read_attr_mem@GOTPAGEOFF]
Lloh16:
	adrp	x9, _mantis_ca_write_attr_mem@GOTPAGE
Lloh17:
	ldr	x9, [x9, _mantis_ca_write_attr_mem@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh20:
	adrp	x8, _mantis_ca_read_cam_ctl@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mantis_ca_read_cam_ctl@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _mantis_ca_write_cam_ctl@GOTPAGE
Lloh24:
	ldr	x9, [x9, _mantis_ca_write_cam_ctl@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh26:
	adrp	x8, _mantis_ca_slot_reset@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mantis_ca_slot_reset@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _mantis_ca_slot_shutdown@GOTPAGE
Lloh30:
	ldr	x9, [x9, _mantis_ca_slot_shutdown@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh32:
	adrp	x8, _mantis_ts_control@GOTPAGE
Lloh33:
	ldr	x8, [x8, _mantis_ts_control@GOTPAGEOFF]
Lloh34:
	adrp	x9, _mantis_slot_status@GOTPAGE
Lloh35:
	ldr	x9, [x9, _mantis_slot_status@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	add	x0, x19, #60
	str	x19, [x19]
	bl	_mutex_init
	add	x0, x19, #56
	bl	_init_waitqueue_head
	add	x0, x19, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_init_waitqueue_head
Lloh38:
	adrp	x22, _MANTIS_ERROR@GOTPAGE
Lloh39:
	ldr	x22, [x22, _MANTIS_ERROR@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh40:
	adrp	x2, l_.str.2@PAGE
Lloh41:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #1
	bl	_dvb_ca_en50221_init
	mov	x20, x0
	ldr	w0, [x22]
	cbz	w20, LBB0_5
; %bb.2:
	str	x20, [sp]
Lloh42:
	adrp	x2, l_.str.3@PAGE
Lloh43:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	b	LBB0_4
LBB0_3:
Lloh44:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x2, l_.str.1@PAGE
Lloh48:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh52:
	adrp	x2, l_.str.4@PAGE
Lloh53:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mantis_evmgr_init
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing Mantis CA"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory!, exiting .."

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE,4,2 ; @DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mantis_ca_read_attr_mem,4,2    ; @mantis_ca_read_attr_mem
	.comm	_mantis_ca_write_attr_mem,4,2   ; @mantis_ca_write_attr_mem
	.comm	_mantis_ca_read_cam_ctl,4,2     ; @mantis_ca_read_cam_ctl
	.comm	_mantis_ca_write_cam_ctl,4,2    ; @mantis_ca_write_cam_ctl
	.comm	_mantis_ca_slot_reset,4,2       ; @mantis_ca_slot_reset
	.comm	_mantis_ca_slot_shutdown,4,2    ; @mantis_ca_slot_shutdown
	.comm	_mantis_ts_control,4,2          ; @mantis_ts_control
	.comm	_mantis_slot_status,4,2         ; @mantis_slot_status
l_.str.2:                               ; @.str.2
	.asciz	"Registering EN50221 device"

l_.str.3:                               ; @.str.3
	.asciz	"EN50221: Initialization failed <%d>"

l_.str.4:                               ; @.str.4
	.asciz	"Registered EN50221 device"

.subsections_via_symbols
