	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ciintf_init
_ciintf_init:                           ## @ciintf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_SAA7146_GPIO_OUTLO@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_saa7146_setgpio
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_saa7146_setgpio
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_saa7146_setgpio
	movq	_MC1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MASK_27@GOTPCREL(%rip), %r12
	movq	_MASK_11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	callq	_saa7146_write
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_ciintf_read_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_ciintf_write_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_ciintf_read_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ciintf_write_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ciintf_slot_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ciintf_slot_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ciintf_slot_ts_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_ciintf_poll_slot_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, (%rbx)
	movl	$1, 48(%rbx)
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	leaq	52(%rbx), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_dvb_ca_en50221_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_saa7146_write
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7146_GPIO_OUTLO,4,2         ## @SAA7146_GPIO_OUTLO
	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_27,4,2                    ## @MASK_27
	.comm	_MASK_11,4,2                    ## @MASK_11
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ciintf_read_attribute_mem,4,2  ## @ciintf_read_attribute_mem
	.comm	_ciintf_write_attribute_mem,4,2 ## @ciintf_write_attribute_mem
	.comm	_ciintf_read_cam_control,4,2    ## @ciintf_read_cam_control
	.comm	_ciintf_write_cam_control,4,2   ## @ciintf_write_cam_control
	.comm	_ciintf_slot_reset,4,2          ## @ciintf_slot_reset
	.comm	_ciintf_slot_shutdown,4,2       ## @ciintf_slot_shutdown
	.comm	_ciintf_slot_ts_enable,4,2      ## @ciintf_slot_ts_enable
	.comm	_ciintf_poll_slot_status,4,2    ## @ciintf_poll_slot_status
	.comm	_SLOTSTATUS_NONE,4,2            ## @SLOTSTATUS_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ci initialisation failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"ci interface initialised\n"

	.no_dead_strip	_ciintf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ciintf_init
_ciintf_init:                           ; @ciintf_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	x20, x0
	ldr	x19, [x0, #56]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x21, _SAA7146_GPIO_OUTLO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SAA7146_GPIO_OUTLO@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_saa7146_setgpio
	ldr	w2, [x21]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	bl	_saa7146_setgpio
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_saa7146_setgpio
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #3
	bl	_saa7146_setgpio
Lloh2:
	adrp	x21, _MC1@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MC1@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MASK_27@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MASK_27@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _MASK_11@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASK_11@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_saa7146_write
Lloh9:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh12:
	adrp	x8, _ciintf_read_attribute_mem@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ciintf_read_attribute_mem@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ciintf_write_attribute_mem@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ciintf_write_attribute_mem@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _ciintf_read_cam_control@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ciintf_read_cam_control@GOTPAGEOFF]
	stp	w9, w8, [x20, #32]
Lloh20:
	ldr	w8, [x10]
Lloh21:
	adrp	x9, _ciintf_write_cam_control@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ciintf_write_cam_control@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh24:
	adrp	x8, _ciintf_slot_reset@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ciintf_slot_reset@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _ciintf_slot_shutdown@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ciintf_slot_shutdown@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh30:
	adrp	x8, _ciintf_slot_ts_enable@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ciintf_slot_ts_enable@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _ciintf_poll_slot_status@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ciintf_poll_slot_status@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	x20, [x20]
	str	w22, [x20, #48]
Lloh36:
	adrp	x8, _SLOTSTATUS_NONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SLOTSTATUS_NONE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	add	x0, x20, #52
	str	w8, [x20, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_dvb_ca_en50221_init
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_saa7146_write
	b	LBB0_3
LBB0_2:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7146_GPIO_OUTLO,4,2         ; @SAA7146_GPIO_OUTLO
	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_27,4,2                    ; @MASK_27
	.comm	_MASK_11,4,2                    ; @MASK_11
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ciintf_read_attribute_mem,4,2  ; @ciintf_read_attribute_mem
	.comm	_ciintf_write_attribute_mem,4,2 ; @ciintf_write_attribute_mem
	.comm	_ciintf_read_cam_control,4,2    ; @ciintf_read_cam_control
	.comm	_ciintf_write_cam_control,4,2   ; @ciintf_write_cam_control
	.comm	_ciintf_slot_reset,4,2          ; @ciintf_slot_reset
	.comm	_ciintf_slot_shutdown,4,2       ; @ciintf_slot_shutdown
	.comm	_ciintf_slot_ts_enable,4,2      ; @ciintf_slot_ts_enable
	.comm	_ciintf_poll_slot_status,4,2    ; @ciintf_poll_slot_status
	.comm	_SLOTSTATUS_NONE,4,2            ; @SLOTSTATUS_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ci initialisation failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"ci interface initialised\n"

	.no_dead_strip	_ciintf_init
.subsections_via_symbols
