	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_unregister
_dvb_unregister:                        ## @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, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%rbx, %rdx
	callq	_dprintk
	cmpl	$0, 72(%rbx)
	je	LBB0_6
## %bb.1:
	leaq	16(%rbx), %r14
	movq	_budgetpatch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	48(%rbx), %r15
	leaq	68(%rbx), %rdi
	callq	_dvb_net_release
	movq	%r15, %rdi
	callq	*24(%rbx)
	leaq	64(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r15, %rdi
	callq	_dvb_dmx_release
LBB0_3:
	leaq	44(%rbx), %rdi
	callq	_dvb_net_release
	movq	%r14, %rdi
	callq	*24(%rbx)
	leaq	40(%rbx), %rsi
	movq	%r14, %rdi
	callq	*16(%rbx)
	leaq	36(%rbx), %rsi
	movq	%r14, %rdi
	callq	*16(%rbx)
	leaq	32(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r14, %rdi
	callq	_dvb_dmx_release
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_dvb_unregister_frontend
	movq	8(%rbx), %rdi
	callq	_dvb_frontend_detach
LBB0_5:
	movl	(%rbx), %edi
	callq	_dvb_unregister_device
	movq	%rbx, %rdi
	callq	_av7110_av_unregister
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av7110_ca_unregister           ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p\n"

	.comm	_budgetpatch,8,3                ## @budgetpatch
	.no_dead_strip	_dvb_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_unregister
_dvb_unregister:                        ; @dvb_unregister
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x19
	bl	_dprintk
	ldr	w8, [x19, #72]
	cbz	w8, LBB0_6
; %bb.1:
	add	x20, x19, #16
Lloh2:
	adrp	x8, _budgetpatch@GOTPAGE
Lloh3:
	ldr	x8, [x8, _budgetpatch@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	add	x21, x19, #48
	add	x0, x19, #68
	bl	_dvb_net_release
	ldr	x8, [x19, #24]
	mov	x0, x21
	blr	x8
	add	x0, x19, #64
	bl	_dvb_dmxdev_release
	mov	x0, x21
	bl	_dvb_dmx_release
LBB0_3:
	add	x0, x19, #44
	bl	_dvb_net_release
	ldr	x8, [x19, #24]
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #16]
	add	x1, x19, #40
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #16]
	add	x1, x19, #36
	mov	x0, x20
	blr	x8
	add	x0, x19, #32
	bl	_dvb_dmxdev_release
	mov	x0, x20
	bl	_dvb_dmx_release
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_dvb_unregister_frontend
	ldr	x0, [x19, #8]
	bl	_dvb_frontend_detach
LBB0_5:
	ldr	w0, [x19]
	bl	_dvb_unregister_device
	mov	x0, x19
	bl	_av7110_av_unregister
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_av7110_ca_unregister
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_budgetpatch,8,3                ; @budgetpatch
	.no_dead_strip	_dvb_unregister
.subsections_via_symbols
