	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_free_qp_resources        ## -- Begin function i40iw_free_qp_resources
	.p2align	4, 0x90
_i40iw_free_qp_resources:               ## @i40iw_free_qp_resources
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	leaq	28(%rsi), %r12
	movq	%r12, %rsi
	callq	_i40iw_ieq_cleanup_qp
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i40iw_dealloc_push_page
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_i40iw_free_resource
LBB0_2:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	leaq	32(%rbx), %rsi
	callq	_i40iw_free_pble
LBB0_4:
	movl	(%r14), %edi
	leaq	24(%rbx), %rsi
	callq	_i40iw_free_dma_mem
	movl	(%r14), %edi
	leaq	16(%rbx), %rsi
	callq	_i40iw_free_dma_mem
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_free_qp_resources        ; -- Begin function i40iw_free_qp_resources
	.p2align	2
_i40iw_free_qp_resources:               ; @i40iw_free_qp_resources
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #12]
	add	x22, x1, #28
	mov	x1, x22
	bl	_i40iw_ieq_cleanup_qp
	mov	x0, x20
	mov	x1, x22
	bl	_i40iw_dealloc_push_page
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w1, [x20, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_i40iw_free_resource
LBB0_2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #4]
	add	x1, x19, #32
	bl	_i40iw_free_pble
LBB0_4:
	ldr	w0, [x20]
	add	x1, x19, #24
	bl	_i40iw_free_dma_mem
	ldr	w0, [x20]
	add	x1, x19, #16
	bl	_i40iw_free_dma_mem
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	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	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
