	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c4_remove
_c4_remove:                             ## @c4_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
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_c4_reset
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%r12, %rdi
	callq	_detach_capi_ctr
	incq	%rbx
	addq	$4, %r12
	cmpq	(%r15), %rbx
	jb	LBB0_3
LBB0_4:
	movl	20(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movl	16(%r15), %edi
	callq	_iounmap
	movl	12(%r15), %edi
	movq	_AVMB1_PORTLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_region
	movl	8(%r15), %edi
	callq	_avmcard_dma_free
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b1_free_card                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMB1_PORTLEN,4,2              ## @AVMB1_PORTLEN
	.no_dead_strip	_c4_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c4_remove
_c4_remove:                             ; @c4_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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_c4_reset
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x21
	bl	_detach_capi_ctr
	add	x22, x22, #1
	ldr	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	w0, [x20, #20]
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x20, #16]
	bl	_iounmap
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x8, _AVMB1_PORTLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMB1_PORTLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_release_region
	ldr	w0, [x20, #8]
	bl	_avmcard_dma_free
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	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	_b1_free_card
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMB1_PORTLEN,4,2              ; @AVMB1_PORTLEN
	.no_dead_strip	_c4_remove
.subsections_via_symbols
