	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_dvb_register              ## -- Begin function fdtv_dvb_register
	.p2align	4, 0x90
_fdtv_dvb_register:                     ## @fdtv_dvb_register
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	_fdtv_model_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rdi), %ecx
	movq	_adapter_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_dvb_register_adapter
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r15
	movq	$0, 56(%rbx)
	movq	%rbx, 80(%rbx)
	movabsq	$68719476752, %rax              ## imm = 0x1000000010
	movq	%rax, 16(%rbx)
	movq	_fdtv_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_fdtv_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	$0, 64(%rbx)
	movq	%r15, %rdi
	callq	_dvb_dmx_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	leaq	24(%rbx), %rax
	leaq	88(%rbx), %r13
	movl	$16, 88(%rbx)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 104(%rbx)
	movq	$0, 96(%rbx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dvb_dmxdev_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	112(%rbx), %r13
	movl	%eax, 112(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	*24(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	*32(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	116(%rbx), %rsi
	movq	%r14, %rdi
	movq	%rsi, %r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dvb_net_init
	movq	%rbx, %rdi
	callq	_fdtv_frontend_init
	leaq	120(%rbx), %rsi
	movq	%r14, %rdi
	callq	_dvb_register_frontend
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_dvb_net_release
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*48(%rbx)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	*40(%rbx)
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_dmxdev_release
LBB0_12:
	movq	%r15, %rdi
	callq	_dvb_dmx_release
LBB0_13:
	movq	%r14, %rdi
	callq	_dvb_unregister_adapter
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r12d
LBB0_14:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_fdtv_ca_register
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtv_model_names,8,3           ## @fdtv_model_names
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_adapter_nr,4,2                 ## @adapter_nr
	.comm	_fdtv_start_feed,4,2            ## @fdtv_start_feed
	.comm	_fdtv_stop_feed,4,2             ## @fdtv_stop_feed
	.comm	_DMX_FRONTEND_0,4,2             ## @DMX_FRONTEND_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conditional Access Module not enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"DVB initialization failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_dvb_register              ; -- Begin function fdtv_dvb_register
	.p2align	2
_fdtv_dvb_register:                     ; @fdtv_dvb_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _fdtv_model_names@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fdtv_model_names@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w1, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	add	x20, x0, #12
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x0, #8]
Lloh6:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_11
; %bb.1:
	movi.2s	v0, #16
	mov	x21, x19
	str	d0, [x21, #16]!
	stp	xzr, xzr, [x19, #56]
	str	x19, [x19, #80]
Lloh9:
	adrp	x8, _fdtv_start_feed@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fdtv_start_feed@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _fdtv_stop_feed@GOTPAGE
Lloh13:
	ldr	x9, [x9, _fdtv_stop_feed@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
	mov	x0, x21
	bl	_dvb_dmx_init
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.2:
	mov	w8, #16
	mov	x22, x19
	str	w8, [x22, #88]!
	add	x24, x19, #24
	stp	xzr, x24, [x22, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_dvb_dmxdev_init
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh15:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x25, x19
	str	w8, [x25, #112]!
	ldur	x8, [x25, #-88]
	mov	x0, x24
	mov	x1, x25
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19, #32]
	mov	x0, x24
	mov	x1, x25
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	add	x26, x19, #116
	mov	x0, x20
	mov	x1, x26
	mov	x2, x24
	bl	_dvb_net_init
	mov	x0, x19
	bl	_fdtv_frontend_init
	add	x1, x19, #120
	mov	x0, x20
	bl	_dvb_register_frontend
	cbz	w0, LBB0_14
; %bb.6:
	mov	x23, x0
	mov	x0, x26
	bl	_dvb_net_release
	ldr	x8, [x19, #48]
	mov	x0, x24
	blr	x8
LBB0_7:
	ldr	x8, [x19, #40]
	mov	x0, x24
	mov	x1, x25
	blr	x8
LBB0_8:
	mov	x0, x22
	bl	_dvb_dmxdev_release
LBB0_9:
	mov	x0, x21
	bl	_dvb_dmx_release
LBB0_10:
	mov	x0, x20
	bl	_dvb_unregister_adapter
	b	LBB0_12
LBB0_11:
	mov	x23, x0
LBB0_12:
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	bl	_fdtv_ca_register
	cbz	w0, LBB0_16
; %bb.15:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_16:
	mov	w23, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtv_model_names,8,3           ; @fdtv_model_names
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_adapter_nr,4,2                 ; @adapter_nr
	.comm	_fdtv_start_feed,4,2            ; @fdtv_start_feed
	.comm	_fdtv_stop_feed,4,2             ; @fdtv_stop_feed
	.comm	_DMX_FRONTEND_0,4,2             ; @DMX_FRONTEND_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conditional Access Module not enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"DVB initialization failed\n"

.subsections_via_symbols
