	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_gsi_post_send          ## -- Begin function mlx5_ib_gsi_post_send
	.p2align	4, 0x90
_mlx5_ib_gsi_post_send:                 ## @mlx5_ib_gsi_post_send
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	callq	_gsi_qp
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	addq	$4, %r14
	leaq	-64(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_ib_gsi_silent_drop
	testl	%eax, %eax
	jne	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %r15
	testq	%r15, %r15
	leaq	-64(%rbp), %rbx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ud_wr
	movq	$0, -64(%rbp)
	movq	%r14, %r12
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_tx_qp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_mlx5_ib_add_outstanding_wr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ib_post_send
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	decl	%eax
	cltd
	idivl	8(%rcx)
	movl	%edx, (%rcx)
	jmp	LBB0_8
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %r14d
LBB0_8:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_gsi_post_send          ; -- Begin function mlx5_ib_gsi_post_send
	.p2align	2
_mlx5_ib_gsi_post_send:                 ; @mlx5_ib_gsi_post_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	bl	_gsi_qp
	cbz	x20, LBB0_8
; %bb.1:
	mov	x22, x0
	add	x21, x0, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_mlx5_ib_gsi_silent_drop
	cbnz	w0, LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20]
	cbz	x20, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ud_wr
	str	xzr, [sp, #8]
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x1, sp, #8
	mov	x0, x22
	bl	_get_tx_qp
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, #0
	bl	_mlx5_ib_add_outstanding_wr
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x19
	bl	_ib_post_send
	cbz	w0, LBB0_3
; %bb.7:
	mov	x23, x0
	ldr	w8, [x22]
	sub	w8, w8, #1
	ldr	w9, [x22, #8]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x22]
	b	LBB0_10
LBB0_8:
	mov	w23, #0
	b	LBB0_11
LBB0_9:
	mov	x23, x0
LBB0_10:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	x20, [x19]
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
