	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngene_remove                   ## -- Begin function ngene_remove
	.p2align	4, 0x90
_ngene_remove:                          ## @ngene_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	leaq	16(%rax), %rdi
	callq	_tasklet_kill
	movq	_MAX_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	incq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	callq	_release_channel
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_2
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_cxd_detach
LBB0_5:
	movq	%r15, %rdi
	callq	_ngene_stop
	movq	%r15, %rdi
	callq	_ngene_release_buffers
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STREAM,4,2                 ## @MAX_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngene_remove                   ; -- Begin function ngene_remove
	.p2align	2
_ngene_remove:                          ; @ngene_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	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	add	x0, x0, #16
	bl	_tasklet_kill
Lloh0:
	adrp	x8, _MAX_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	add	x21, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x20, #8]
	add	x0, x9, w8, uxtw #2
	bl	_release_channel
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_2
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_cxd_detach
LBB0_5:
	mov	x0, x20
	bl	_ngene_stop
	mov	x0, x20
	bl	_ngene_release_buffers
	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	_pci_disable_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STREAM,4,2                 ; @MAX_STREAM
.subsections_via_symbols
