	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_dvb_unregister         ## -- Begin function cx23885_dvb_unregister
	.p2align	4, 0x90
_cx23885_dvb_unregister:                ## @cx23885_dvb_unregister
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	56(%rdi), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_vb2_dvb_get_frontend
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_vb2_dvb_unregister_bus
LBB0_3:
	movq	48(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
LBB0_5:
	movq	40(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
LBB0_7:
	movq	32(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
LBB0_9:
	movq	24(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
LBB0_11:
	movq	16(%r15), %rdi
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_netup_ci_exit
	jmp	LBB0_15
LBB0_14:
	movl	8(%r15), %esi
	callq	_altera_ci_release
LBB0_15:
	movq	$0, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_dvb_unregister         ; -- Begin function cx23885_dvb_unregister
	.p2align	2
_cx23885_dvb_unregister:                ; @cx23885_dvb_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #56
	mov	x0, x20
	mov	w1, #1
	bl	_vb2_dvb_get_frontend
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_vb2_dvb_unregister_bus
LBB0_3:
	ldr	x20, [x19, #48]
	cbz	x20, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x20
	bl	_i2c_unregister_device
LBB0_5:
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x20
	bl	_i2c_unregister_device
LBB0_7:
	ldr	x20, [x19, #32]
	cbz	x20, LBB0_9
; %bb.8:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x20
	bl	_i2c_unregister_device
LBB0_9:
	ldr	x20, [x19, #24]
	cbz	x20, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x20
	bl	_i2c_unregister_device
LBB0_11:
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_netup_ci_exit
	b	LBB0_15
LBB0_14:
	ldr	w1, [x19, #8]
	bl	_altera_ci_release
LBB0_15:
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
