	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sp2_init
_sp2_init:                              ## @sp2_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
	subq	$168, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	l___const.sp2_init.cimax_init(%rip), %rsi
	leaq	-176(%rbp), %r14
	movl	$136, %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_sp2_ci_read_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_sp2_ci_write_attribute_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_sp2_ci_read_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_sp2_ci_write_cam_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_sp2_ci_slot_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_sp2_ci_slot_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_sp2_ci_slot_ts_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_sp2_ci_poll_slot_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, 8(%rbx)
	movq	$0, 64(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$34, %ecx
	callq	_sp2_write_i2c
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$1, -180(%rbp)
	leaq	-180(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	$1, %ecx
	callq	_sp2_write_i2c
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-180(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$1, %ecx
	callq	_sp2_write_i2c
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rsi
	movl	56(%rbx), %edi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_dvb_ca_en50221_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r14d, %r15d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.sp2_init.cimax_init
l___const.sp2_init.cimax_init:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	68                              ## 0x44
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	68                              ## 0x44
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	34                              ## 0x22
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_sp2_ci_read_attribute_mem,4,2  ## @sp2_ci_read_attribute_mem
	.comm	_sp2_ci_write_attribute_mem,4,2 ## @sp2_ci_write_attribute_mem
	.comm	_sp2_ci_read_cam_control,4,2    ## @sp2_ci_read_cam_control
	.comm	_sp2_ci_write_cam_control,4,2   ## @sp2_ci_write_cam_control
	.comm	_sp2_ci_slot_reset,4,2          ## @sp2_ci_slot_reset
	.comm	_sp2_ci_slot_shutdown,4,2       ## @sp2_ci_slot_shutdown
	.comm	_sp2_ci_slot_ts_enable,4,2      ## @sp2_ci_slot_ts_enable
	.comm	_sp2_ci_poll_slot_status,4,2    ## @sp2_ci_poll_slot_status
L_.str.1:                               ## @.str.1
	.asciz	"init failed=%d\n"

	.no_dead_strip	_sp2_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sp2_init
_sp2_init:                              ; @sp2_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x8, sp, #16
Lloh3:
	adrp	x9, l___const.sp2_init.cimax_init@PAGE
Lloh4:
	add	x9, x9, l___const.sp2_init.cimax_init@PAGEOFF
	ldp	q0, q1, [x9, #96]
	stp	q0, q1, [sp, #112]
	ldr	x10, [x9, #128]
	str	x10, [x8, #128]
	ldp	q0, q1, [x9, #32]
	stp	q0, q1, [sp, #48]
	ldp	q1, q0, [x9, #64]
	stp	q1, q0, [sp, #80]
	ldp	q1, q0, [x9]
	stp	q1, q0, [sp, #16]
	ldr	x0, [x0]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh7:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh10:
	adrp	x8, _sp2_ci_read_attribute_mem@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sp2_ci_read_attribute_mem@GOTPAGEOFF]
Lloh12:
	adrp	x9, _sp2_ci_write_attribute_mem@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sp2_ci_write_attribute_mem@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh16:
	adrp	x8, _sp2_ci_read_cam_control@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sp2_ci_read_cam_control@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _sp2_ci_write_cam_control@GOTPAGE
Lloh20:
	ldr	x9, [x9, _sp2_ci_write_cam_control@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh22:
	adrp	x8, _sp2_ci_slot_reset@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sp2_ci_slot_reset@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _sp2_ci_slot_shutdown@GOTPAGE
Lloh26:
	ldr	x9, [x9, _sp2_ci_slot_shutdown@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh28:
	adrp	x8, _sp2_ci_slot_ts_enable@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sp2_ci_slot_ts_enable@GOTPAGEOFF]
Lloh30:
	adrp	x9, _sp2_ci_poll_slot_status@GOTPAGE
Lloh31:
	ldr	x9, [x9, _sp2_ci_poll_slot_status@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	str	x19, [x19, #8]
	str	xzr, [x19, #64]
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #0
	mov	w3, #34
	bl	_sp2_write_i2c
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #31
	mov	w3, #1
	bl	_sp2_write_i2c
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #24
	mov	w3, #1
	bl	_sp2_write_i2c
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	add	x1, x19, #8
	ldr	w0, [x19, #56]
	mov	w2, #0
	mov	w3, #1
	bl	_dvb_ca_en50221_init
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x0, [x19]
	str	x20, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.sp2_init.cimax_init
l___const.sp2_init.cimax_init:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	68                              ; 0x44
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	68                              ; 0x44
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	34                              ; 0x22
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_sp2_ci_read_attribute_mem,4,2  ; @sp2_ci_read_attribute_mem
	.comm	_sp2_ci_write_attribute_mem,4,2 ; @sp2_ci_write_attribute_mem
	.comm	_sp2_ci_read_cam_control,4,2    ; @sp2_ci_read_cam_control
	.comm	_sp2_ci_write_cam_control,4,2   ; @sp2_ci_write_cam_control
	.comm	_sp2_ci_slot_reset,4,2          ; @sp2_ci_slot_reset
	.comm	_sp2_ci_slot_shutdown,4,2       ; @sp2_ci_slot_shutdown
	.comm	_sp2_ci_slot_ts_enable,4,2      ; @sp2_ci_slot_ts_enable
	.comm	_sp2_ci_poll_slot_status,4,2    ; @sp2_ci_poll_slot_status
l_.str.1:                               ; @.str.1
	.asciz	"init failed=%d\n"

	.no_dead_strip	_sp2_init
.subsections_via_symbols
