	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_dev
_cleanup_dev:                           ## @cleanup_dev
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	movq	_HP100_REGION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_region
	cmpl	$1, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	16(%r14), %r15d
	movl	20(%r14), %r12d
	movq	_MAX_RINGSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	$15, %r13
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_virt_to_whatever
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_pci_free_consistent
LBB0_2:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_iounmap
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HP100_REGION_SIZE,4,2          ## @HP100_REGION_SIZE
	.comm	_MAX_RINGSIZE,8,3               ## @MAX_RINGSIZE
	.no_dead_strip	_cleanup_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_dev
_cleanup_dev:                           ; @cleanup_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _HP100_REGION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HP100_REGION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_release_region
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MAX_RINGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_RINGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x21, x8, #15
	ldp	w23, w22, [x20, #16]
	mov	x0, x19
	mov	x1, x23
	bl	_virt_to_whatever
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_pci_free_consistent
LBB0_2:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_iounmap
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free_netdev
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HP100_REGION_SIZE,4,2          ; @HP100_REGION_SIZE
	.comm	_MAX_RINGSIZE,8,3               ; @MAX_RINGSIZE
	.no_dead_strip	_cleanup_dev
.subsections_via_symbols
