	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_free_pv_qp_bufs
_mlx4_ib_free_pv_qp_bufs:               ## @mlx4_ib_free_pv_qp_bufs
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jae	LBB0_1
## %bb.10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movl	%esi, %eax
	shlq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MLX4_NUM_TUNNEL_BUFS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r14), %rax
	movl	32(%rax,%rbx), %esi
	movq	%rcx, %r15
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_ib_dma_unmap_single
	movq	(%r14), %rax
	movq	24(%rax,%rbx), %rdi
	callq	_kfree
	movq	%r15, %rcx
	incq	%r12
	movslq	(%r15), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
## %bb.4:
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_9
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r14
	addq	$8, %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movq	%r15, %rax
	movslq	(%r15), %rax
	addq	$40, %r12
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	16(%rax,%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_ib_dma_unmap_single
	movq	(%r14), %rax
	movq	8(%rax,%r12), %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	(%rax,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
	callq	_rdma_destroy_ah
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rbx,%rax), %rdi
	callq	_kfree
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,4,2                 ## @IB_QPT_GSI
	.comm	_MLX4_NUM_TUNNEL_BUFS,4,2       ## @MLX4_NUM_TUNNEL_BUFS
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_mlx4_ib_free_pv_qp_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_free_pv_qp_bufs
_mlx4_ib_free_pv_qp_bufs:               ; @mlx4_ib_free_pv_qp_bufs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	w22, w1
	add	x20, x21, w1, uxtw #4
Lloh3:
	adrp	x23, _MLX4_NUM_TUNNEL_BUFS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MLX4_NUM_TUNNEL_BUFS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x24, #0
	mov	x25, #0
Lloh5:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	w1, [x8, #32]
	ldr	w3, [x26]
	mov	w2, #4
	bl	_ib_dma_unmap_single
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	x0, [x8, #24]
	bl	_kfree
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #40
	cmp	x25, x8
	b.lt	LBB0_4
; %bb.5:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x24, #0
	mov	x25, #0
	add	x8, x21, x22, lsl #4
	add	x26, x8, #8
Lloh7:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #40
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	w1, [x8, #16]
	ldr	w3, [x27]
	mov	w2, #4
	bl	_ib_dma_unmap_single
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x26]
	ldr	x0, [x8, x24]
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w1, #0
	bl	_rdma_destroy_ah
	b	LBB0_7
LBB0_10:
	add	x8, x21, x22, lsl #4
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,4,2                 ; @IB_QPT_GSI
	.comm	_MLX4_NUM_TUNNEL_BUFS,4,2       ; @MLX4_NUM_TUNNEL_BUFS
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_mlx4_ib_free_pv_qp_bufs
.subsections_via_symbols
