	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tt3650_ci_init
_tt3650_ci_init:                        ## @tt3650_ci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	(%r15), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_ci_dbg
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_tt3650_ci_read_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_tt3650_ci_write_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_tt3650_ci_read_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_tt3650_ci_write_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_tt3650_ci_slot_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_tt3650_ci_slot_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_tt3650_ci_slot_ts_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_tt3650_ci_poll_slot_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_dvb_ca_en50221_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_err
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_info
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_tt3650_ci_read_attribute_mem,4,2 ## @tt3650_ci_read_attribute_mem
	.comm	_tt3650_ci_write_attribute_mem,4,2 ## @tt3650_ci_write_attribute_mem
	.comm	_tt3650_ci_read_cam_control,4,2 ## @tt3650_ci_read_cam_control
	.comm	_tt3650_ci_write_cam_control,4,2 ## @tt3650_ci_write_cam_control
	.comm	_tt3650_ci_slot_reset,4,2       ## @tt3650_ci_slot_reset
	.comm	_tt3650_ci_slot_shutdown,4,2    ## @tt3650_ci_slot_shutdown
	.comm	_tt3650_ci_slot_ts_enable,4,2   ## @tt3650_ci_slot_ts_enable
	.comm	_tt3650_ci_poll_slot_status,4,2 ## @tt3650_ci_poll_slot_status
L_.str.1:                               ## @.str.1
	.asciz	"Cannot initialize CI: Error %d."

L_.str.2:                               ## @.str.2
	.asciz	"CI initialized."

	.no_dead_strip	_tt3650_ci_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tt3650_ci_init
_tt3650_ci_init:                        ; @tt3650_ci_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #8]
	ldr	x19, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ci_dbg
	add	x0, x19, #48
	bl	_mutex_init
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh5:
	adrp	x8, _tt3650_ci_read_attribute_mem@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tt3650_ci_read_attribute_mem@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _tt3650_ci_write_attribute_mem@GOTPAGE
Lloh9:
	ldr	x9, [x9, _tt3650_ci_write_attribute_mem@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _tt3650_ci_read_cam_control@GOTPAGE
Lloh12:
	ldr	x10, [x10, _tt3650_ci_read_cam_control@GOTPAGEOFF]
	stp	w9, w8, [x19, #32]
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _tt3650_ci_write_cam_control@GOTPAGE
Lloh15:
	ldr	x9, [x9, _tt3650_ci_write_cam_control@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh17:
	adrp	x8, _tt3650_ci_slot_reset@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tt3650_ci_slot_reset@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _tt3650_ci_slot_shutdown@GOTPAGE
Lloh21:
	ldr	x9, [x9, _tt3650_ci_slot_shutdown@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh23:
	adrp	x8, _tt3650_ci_slot_ts_enable@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tt3650_ci_slot_ts_enable@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _tt3650_ci_poll_slot_status@GOTPAGE
Lloh27:
	ldr	x9, [x9, _tt3650_ci_poll_slot_status@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	str	x21, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1
	bl	_dvb_ca_en50221_init
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_err
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	b	LBB0_3
LBB0_2:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_tt3650_ci_read_attribute_mem,4,2 ; @tt3650_ci_read_attribute_mem
	.comm	_tt3650_ci_write_attribute_mem,4,2 ; @tt3650_ci_write_attribute_mem
	.comm	_tt3650_ci_read_cam_control,4,2 ; @tt3650_ci_read_cam_control
	.comm	_tt3650_ci_write_cam_control,4,2 ; @tt3650_ci_write_cam_control
	.comm	_tt3650_ci_slot_reset,4,2       ; @tt3650_ci_slot_reset
	.comm	_tt3650_ci_slot_shutdown,4,2    ; @tt3650_ci_slot_shutdown
	.comm	_tt3650_ci_slot_ts_enable,4,2   ; @tt3650_ci_slot_ts_enable
	.comm	_tt3650_ci_poll_slot_status,4,2 ; @tt3650_ci_poll_slot_status
l_.str.1:                               ; @.str.1
	.asciz	"Cannot initialize CI: Error %d."

l_.str.2:                               ; @.str.2
	.asciz	"CI initialized."

	.no_dead_strip	_tt3650_ci_init
.subsections_via_symbols
