	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%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	8(%rbx), %r15
	movq	$0, 48(%rbx)
	movq	%rbx, 72(%rbx)
	movabsq	$68719476752, %rax              ## imm = 0x1000000010
	movq	%rax, 8(%rbx)
	movq	_fdtv_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_fdtv_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	%r15, %rdi
	callq	_dvb_dmx_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rax
	leaq	80(%rbx), %r15
	movl	$16, 80(%rbx)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 96(%rbx)
	movq	$0, 88(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dvb_dmxdev_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	104(%rbx), %rsi
	movl	%eax, 104(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	*16(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	*24(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	leaq	108(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dvb_net_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_fdtv_frontend_init
	leaq	112(%rbx), %rsi
	movq	%r14, %rdi
	callq	_dvb_register_frontend
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_net_release
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*40(%rbx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	*32(%rbx)
LBB0_13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_dmxdev_release
LBB0_14:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_dmx_release
LBB0_15:
	movq	%r14, %rdi
	callq	_dvb_unregister_adapter
	jmp	LBB0_16
LBB0_1:
	movl	%eax, %r12d
LBB0_16:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_fdtv_ca_register
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	mov	x20, x0
	ldr	w3, [x20], #4
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_13
; %bb.1:
	movi.2s	v0, #16
	mov	x21, x19
	str	d0, [x21, #8]!
	stp	xzr, xzr, [x19, #48]
	str	x19, [x19, #72]
Lloh6:
	adrp	x8, _fdtv_start_feed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fdtv_start_feed@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _fdtv_stop_feed@GOTPAGE
Lloh10:
	ldr	x9, [x9, _fdtv_stop_feed@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
	mov	x0, x21
	bl	_dvb_dmx_init
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.2:
	mov	w8, #16
	mov	x23, x19
	str	w8, [x23, #80]!
	add	x25, x19, #16
	stp	xzr, x25, [x23, #8]
	mov	x0, x23
	mov	x1, x20
	bl	_dvb_dmxdev_init
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.3:
Lloh12:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x26, x19
	str	w8, [x26, #104]!
	ldur	x8, [x26, #-88]
	mov	x0, x25
	mov	x1, x26
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	x8, [x19, #24]
	mov	x0, x25
	mov	x1, x26
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.5:
	add	x27, x19, #108
	mov	x0, x20
	mov	x1, x27
	mov	x2, x25
	bl	_dvb_net_init
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	bl	_fdtv_frontend_init
	add	x1, x19, #112
	mov	x0, x20
	bl	_dvb_register_frontend
	cbz	w0, LBB0_16
; %bb.7:
	mov	x24, x0
	mov	x0, x27
	bl	_dvb_net_release
LBB0_8:
	ldr	x8, [x19, #40]
	mov	x0, x25
	blr	x8
LBB0_9:
	ldr	x8, [x19, #32]
	mov	x0, x25
	mov	x1, x26
	blr	x8
LBB0_10:
	mov	x0, x23
	bl	_dvb_dmxdev_release
LBB0_11:
	mov	x0, x21
	bl	_dvb_dmx_release
LBB0_12:
	mov	x0, x20
	bl	_dvb_unregister_adapter
	b	LBB0_14
LBB0_13:
	mov	x24, x0
LBB0_14:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	bl	_fdtv_ca_register
	cbz	w0, LBB0_18
; %bb.17:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_18:
	mov	w24, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.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
