	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_clean_portres
_ehea_clean_portres:                    ## @ehea_clean_portres
	.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	%rsi, %r14
	cmpq	$0, 80(%rsi)
	je	LBB0_1
## %bb.2:
	leaq	88(%r14), %rdi
	callq	_netif_napi_del
	movq	80(%r14), %rdi
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_ehea_destroy_qp
	testl	%eax, %eax
	je	LBB0_4
## %bb.17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	72(%r14), %edi
	callq	_ehea_destroy_cq
	movl	68(%r14), %edi
	callq	_ehea_destroy_cq
	movl	64(%r14), %edi
	callq	_ehea_destroy_eq
	cmpl	$0, 48(%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	48(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	cmpl	$0, 32(%r14)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	32(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	cmpl	$0, 16(%r14)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	16(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	56(%r14), %rdi
	callq	_vfree
	movq	40(%r14), %rdi
	callq	_vfree
	movq	24(%r14), %rdi
	callq	_vfree
	movq	8(%r14), %rdi
	callq	_vfree
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ehea_rem_smrs                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ehea_clean_portres
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_clean_portres
_ehea_clean_portres:                    ; @ehea_clean_portres
	.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	x19, x1
	ldr	x8, [x1, #80]
	cbz	x8, LBB0_3
; %bb.1:
	add	x0, x19, #88
	bl	_netif_napi_del
	ldr	x0, [x19, #80]
	bl	_ehea_destroy_qp
	cbz	w0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, #0
	bl	_ehea_destroy_qp
	cbnz	w0, LBB0_2
LBB0_4:
	ldr	w0, [x19, #72]
	bl	_ehea_destroy_cq
	ldr	w0, [x19, #68]
	bl	_ehea_destroy_cq
	ldr	w0, [x19, #64]
	bl	_ehea_destroy_eq
	ldr	w8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w0, [x8, x20, lsl #2]
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldrsw	x8, [x19, #48]
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x20, lsl #2]
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldrsw	x8, [x19, #32]
	cmp	x20, x8
	b.lt	LBB0_9
LBB0_10:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldrsw	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_15
LBB0_16:
	ldr	x0, [x19, #56]
	bl	_vfree
	ldr	x0, [x19, #40]
	bl	_vfree
	ldr	x0, [x19, #24]
	bl	_vfree
	ldr	x0, [x19, #8]
	bl	_vfree
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ehea_rem_smrs
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ehea_clean_portres
.subsections_via_symbols
