	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_card
_cleanup_card:                          ## @cleanup_card
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	callq	_list_del_init
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free_dma
LBB0_2:
	movq	_TotalReset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_outw
	movq	(%rbx), %rdi
	movq	_CORKSCREW_TOTAL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_region
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_to_pnp_dev
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pnp_device_detach              ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TotalReset,4,2                 ## @TotalReset
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_CORKSCREW_TOTAL_SIZE,4,2       ## @CORKSCREW_TOTAL_SIZE
	.no_dead_strip	_cleanup_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_card
_cleanup_card:                          ; @cleanup_card
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x0, x0, #8
	bl	_list_del_init
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free_dma
LBB0_2:
Lloh0:
	adrp	x8, _TotalReset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TotalReset@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _EL3_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EL3_CMD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outw
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _CORKSCREW_TOTAL_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CORKSCREW_TOTAL_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_release_region
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_to_pnp_dev
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pnp_device_detach
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TotalReset,4,2                 ; @TotalReset
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_CORKSCREW_TOTAL_SIZE,4,2       ; @CORKSCREW_TOTAL_SIZE
	.no_dead_strip	_cleanup_card
.subsections_via_symbols
