	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_register_ci_mac
_dvb_register_ci_mac:                   ## @dvb_register_ci_mac
	.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
	subq	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r13
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_vb2_dvb_get_frontend
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%r13), %ecx
	xorl	%r14d, %r14d
	addl	$-128, %ecx
	cmpl	$9, %ecx
	ja	LBB0_20
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	cmpl	$2, (%rbx)
	jg	LBB0_20
## %bb.10:
	movq	8(%r13), %rdi
	movl	$80, (%rdi)
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_tveeprom_read
	movq	_cx23885_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%rbx), %edx
	leal	-8(,%rdx,8), %eax
	cltq
	leaq	-304(,%rax,4), %rcx
	addq	%rbp, %rcx
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_info
	movq	8(%rbx), %rdi
	movl	(%rbx), %eax
	leal	-8(,%rax,8), %eax
	cltq
	leaq	-304(,%rax,4), %rsi
	addq	%rbp, %rsi
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_11:
	movq	8(%r13), %r12
	leaq	-1152(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r15, -1120(%rbp)
	movq	%rbx, -1128(%rbp)
	movq	_cx23885_sp2_ci_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1136(%rbp)
	leaq	-1112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	-1108(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_strscpy
	movl	$64, -1112(%rbp)
	leaq	-1152(%rbp), %rax
	movq	%rax, -1104(%rbp)
	movl	-1108(%rbp), %edi
	callq	_request_module
	addq	$4, %r12
	movq	%r12, %rdi
	leaq	-1112(%rbp), %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r12
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	%r12, 16(%rbx)
	xorl	%r14d, %r14d
	cmpl	$1, (%rbx)
	jne	LBB0_20
## %bb.17:
	movq	8(%r13), %rdi
	movl	$80, (%rdi)
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_tveeprom_read
	movq	_cx23885_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-304(%rbp), %rbx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_18
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_7:
	cmpl	$1, (%rbx)
	jne	LBB0_20
## %bb.8:
	movq	8(%r13), %rdi
	movl	$80, (%rdi)
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_tveeprom_read
	leaq	-432(%rbp), %rbx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_18:
	movq	(%r15), %rdi
	movq	%rbx, %rsi
LBB0_19:
	movl	$6, %edx
	callq	_memcpy
	jmp	LBB0_20
LBB0_6:
	movq	_netup_altera_fpga_rw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -1072(%rbp)
	movq	%rax, -1064(%rbp)
	movq	%r15, -1056(%rbp)
	movq	%r13, -1048(%rbp)
	movl	(%rbx), %esi
	leaq	-1072(%rbp), %rdi
	callq	_altera_ci_init
	jmp	LBB0_20
LBB0_5:
	movq	8(%r13), %rdi
	addq	$4, %rdi
	leaq	_dvb_register_ci_mac.cinfo(%rip), %rsi
	callq	_netup_get_card_info
	movq	8(%rbx), %rdi
	movq	_dvb_register_ci_mac.cinfo(%rip), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rsi
	movl	$6, %edx
	callq	_memcpy
	movl	(%rbx), %esi
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_netup_ci_init
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %eax
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_i2c_unregister_device
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.zerofill __DATA,__bss,_dvb_register_ci_mac.cinfo,8,3 ## @dvb_register_ci_mac.cinfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NetUP Dual DVB-S2 CI card port%d MAC=%pM\n"

	.comm	_netup_altera_fpga_rw,4,2       ## @netup_altera_fpga_rw
L_.str.1:                               ## @.str.1
	.asciz	"TeVii S470 MAC= %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s port %d MAC address: %pM\n"

	.comm	_cx23885_boards,8,3             ## @cx23885_boards
	.comm	_cx23885_sp2_ci_ctrl,4,2        ## @cx23885_sp2_ci_ctrl
L_.str.3:                               ## @.str.3
	.asciz	"sp2"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"%s MAC address: %pM\n"

	.no_dead_strip	_dvb_register_ci_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_register_ci_mac
_dvb_register_ci_mac:                   ; @dvb_register_ci_mac
	.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
	sub	sp, sp, #1136
	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, #-56]
	ldr	x22, [x0, #24]
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #1
	bl	_vb2_dvb_get_frontend
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_17
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #2
	b.gt	LBB0_17
; %bb.4:
	ldr	x0, [x22, #8]
	mov	w8, #80
	str	w8, [x0]
	add	x20, sp, #104
	add	x1, sp, #104
	mov	w2, #1024
	bl	_tveeprom_read
Lloh5:
	adrp	x8, _cx23885_boards@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cx23885_boards@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w8, [x19]
	add	x20, x20, #768
	lsl	w9, w8, #3
	sub	w9, w9, #8
	add	x9, x20, w9, sxtw #2
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w8, w8, #3
	sub	w8, w8, #8
	add	x1, x20, w8, sxtw #2
	b	LBB0_14
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_6:
	ldr	x21, [x22, #8]
	add	x23, sp, #64
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	stp	x19, x20, [sp, #88]
Lloh12:
	adrp	x8, _cx23885_sp2_ci_ctrl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cx23885_sp2_ci_ctrl@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #80]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w0, [sp, #28]
Lloh15:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strscpy
	mov	w8, #64
	str	w8, [sp, #24]
	str	x23, [sp, #32]
	ldr	w0, [sp, #28]
	bl	_request_module
	add	x0, x21, #4
	add	x1, sp, #24
	bl	_i2c_new_device
	cbz	x0, LBB0_19
; %bb.7:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.8:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_18
; %bb.9:
	str	x21, [x19, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.10:
	ldr	x0, [x22, #8]
	mov	w8, #80
	str	w8, [x0]
	add	x19, sp, #104
	add	x1, sp, #104
	mov	w2, #1024
	bl	_tveeprom_read
Lloh20:
	adrp	x8, _cx23885_boards@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cx23885_boards@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	add	x19, x19, #768
	str	x19, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.12:
	ldr	x0, [x22, #8]
	mov	w8, #80
	str	w8, [x0]
	add	x19, sp, #104
	add	x1, sp, #104
	mov	w2, #1024
	bl	_tveeprom_read
	add	x19, x19, #640
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
LBB0_13:
	bl	_pr_info
	ldr	x0, [x20]
	mov	x1, x19
LBB0_14:
	mov	w2, #6
	bl	_memcpy
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x8, _netup_altera_fpga_rw@GOTPAGE
Lloh28:
	ldr	x8, [x8, _netup_altera_fpga_rw@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #104]
	stp	x0, x20, [sp, #112]
	str	x22, [sp, #128]
	ldr	w1, [x19]
	add	x0, sp, #104
	bl	_altera_ci_init
	b	LBB0_17
LBB0_16:
	ldr	x8, [x22, #8]
	add	x0, x8, #4
Lloh30:
	adrp	x20, _dvb_register_ci_mac.cinfo@PAGE
Lloh31:
	add	x20, x20, _dvb_register_ci_mac.cinfo@PAGEOFF
	mov	x1, x20
	bl	_netup_get_card_info
	ldr	x0, [x19, #8]
	ldr	x8, [x20]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x1, [x8, #-8]
	mov	w2, #6
	bl	_memcpy
	ldr	w1, [x19]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_netup_ci_init
LBB0_17:
	mov	w0, #0
	b	LBB0_21
LBB0_18:
	mov	x0, x21
	bl	_i2c_unregister_device
LBB0_19:
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldur	x8, [x29, #-56]
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_23
; %bb.22:
	add	sp, sp, #1136
	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
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.zerofill __DATA,__bss,_dvb_register_ci_mac.cinfo,8,3 ; @dvb_register_ci_mac.cinfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NetUP Dual DVB-S2 CI card port%d MAC=%pM\n"

	.comm	_netup_altera_fpga_rw,4,2       ; @netup_altera_fpga_rw
l_.str.1:                               ; @.str.1
	.asciz	"TeVii S470 MAC= %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s port %d MAC address: %pM\n"

	.comm	_cx23885_boards,8,3             ; @cx23885_boards
	.comm	_cx23885_sp2_ci_ctrl,4,2        ; @cx23885_sp2_ci_ctrl
l_.str.3:                               ; @.str.3
	.asciz	"sp2"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"%s MAC address: %pM\n"

	.no_dead_strip	_dvb_register_ci_mac
.subsections_via_symbols
