	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm1105_remove
_dm1105_remove:                         ## @dm1105_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	leaq	40(%rax), %r15
	movq	%rax, %rdi
	callq	_dm1105_ir_exit
	movq	%r15, %rdi
	callq	*56(%rbx)
	leaq	32(%rbx), %rdi
	callq	_dvb_net_release
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_dvb_unregister_frontend
LBB0_2:
	leaq	64(%rbx), %r12
	movq	%r15, %rdi
	callq	*48(%rbx)
	leaq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	*40(%rbx)
	leaq	12(%rbx), %rsi
	movq	%r15, %rdi
	callq	*40(%rbx)
	leaq	8(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r15, %rdi
	callq	_dvb_dmx_release
	movq	%r12, %rdi
	callq	_dvb_unregister_adapter
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_i2c_del_adapter
	movq	%rbx, %rdi
	callq	_dm1105_hw_exit
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_pci_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	_dm1105_devcount@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dm1105_devcount,4,2            ## @dm1105_devcount
	.no_dead_strip	_dm1105_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm1105_remove
_dm1105_remove:                         ; @dm1105_remove
	.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	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	add	x21, x0, #40
	bl	_dm1105_ir_exit
	ldr	x8, [x19, #56]
	mov	x0, x21
	blr	x8
	add	x0, x19, #32
	bl	_dvb_net_release
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dvb_unregister_frontend
LBB0_2:
	add	x22, x19, #64
	ldr	x8, [x19, #48]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #40]
	add	x1, x19, #16
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #40]
	add	x1, x19, #12
	mov	x0, x21
	blr	x8
	add	x0, x19, #8
	bl	_dvb_dmxdev_release
	mov	x0, x21
	bl	_dvb_dmx_release
	mov	x0, x22
	bl	_dvb_unregister_adapter
	add	x0, x19, #4
	bl	_i2c_del_adapter
	mov	x0, x19
	bl	_dm1105_hw_exit
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
	ldr	w1, [x19]
	mov	x0, x20
	bl	_pci_iounmap
	mov	x0, x20
	bl	_pci_release_regions
	mov	x0, x20
	bl	_pci_disable_device
Lloh0:
	adrp	x8, _dm1105_devcount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm1105_devcount@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	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	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dm1105_devcount,4,2            ; @dm1105_devcount
	.no_dead_strip	_dm1105_remove
.subsections_via_symbols
