	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_post_srq_recv             ## -- Begin function mlx4_post_srq_recv
	.p2align	4, 0x90
_mlx4_post_srq_recv:                    ## @mlx4_post_srq_recv
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_to_msrq
	movq	%rax, %r12
	leaq	28(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_pthread_spin_lock
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movq	24(%r13), %r13
	testq	%r13, %r13
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r13), %eax
	cmpl	(%r12), %eax
	jg	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r13), %eax
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%rsi,4)
	movq	%r12, %rdi
	callq	_get_wqe
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_be16toh
	movq	%rax, 8(%r12)
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	movl	(%rax,%r15), %edi
	callq	_htobe32
	movq	%rax, 20(%rbx,%r15,2)
	movq	8(%r13), %rax
	movl	4(%rax,%r15), %edi
	callq	_htobe32
	movq	%rax, 12(%rbx,%r15,2)
	movq	8(%r13), %rax
	movl	8(%rax,%r15), %edi
	callq	_htobe64
	movq	%rax, 4(%rbx,%r15,2)
	incq	%r14
	movslq	(%r13), %rax
	addq	$12, %r15
	cmpq	%rax, %r14
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	(%r12), %r14d
	jge	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	cmpl	(%r12), %r14d
	jge	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %r14
	movq	$0, 16(%rbx,%r14,8)
	movq	_MLX4_INVALID_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movq	%rax, 8(%rbx,%r14,8)
	movq	$0, (%rbx,%r14,8)
	jmp	LBB0_12
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movl	$-1, %r14d
	testl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_15
	jmp	LBB0_16
LBB0_1:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_13:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	addl	%r15d, 24(%r12)
	xorl	%eax, %eax
	callq	_udma_to_device_barrier
	movl	24(%r12), %edi
	callq	_htobe32
	movq	32(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_16:
	movq	%rbx, %rdi
	callq	_pthread_spin_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_INVALID_LKEY,4,2          ## @MLX4_INVALID_LKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_post_srq_recv             ; -- Begin function mlx4_post_srq_recv
	.p2align	2
_mlx4_post_srq_recv:                    ; @mlx4_post_srq_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	bl	_to_msrq
	mov	x20, x0
	add	x19, x0, #28
	mov	x0, x19
	bl	_pthread_spin_lock
	cbz	x22, LBB0_12
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w24, #0
	mov	w25, #24
Lloh0:
	adrp	x26, _MLX4_INVALID_LKEY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLX4_INVALID_LKEY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x22]
	ldr	w9, [x20]
	cmp	w8, w9
	b.gt	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x1, x8, [x20, #8]
	cmp	x1, x8
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #16]
	ldr	x9, [x20, #40]
	str	w8, [x9, x1, lsl #2]
	mov	x0, x20
	bl	_get_wqe
	mov	x23, x0
	mov	x27, x0
	ldr	w0, [x27], #4
	bl	_be16toh
	str	x0, [x20, #8]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	x28, #0
	add	x23, x23, #20
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x21]
	bl	_htobe32
	str	x0, [x23]
	ldr	x8, [x22, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	bl	_htobe32
	stur	x0, [x23, #-8]
	ldr	x8, [x22, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_htobe64
	stur	x0, [x23, #-16]
	add	x28, x28, #1
	ldrsw	x8, [x22]
	add	x21, x21, #12
	add	x23, x23, #24
	cmp	x28, x8
	b.lt	LBB0_7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w28, w8
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	umaddl	x21, w28, w25, x27
	str	xzr, [x21, #16]
	ldr	w0, [x26]
	bl	_htobe32
	stp	xzr, x0, [x21]
	b	LBB0_2
LBB0_11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x22, [x8]
	mov	w21, #-1
	cbnz	w24, LBB0_14
	b	LBB0_15
LBB0_12:
	mov	w21, #0
	b	LBB0_15
LBB0_13:
	mov	w21, #0
LBB0_14:
	ldr	w8, [x20, #24]
	add	w8, w8, w24
	str	w8, [x20, #24]
	bl	_udma_to_device_barrier
	ldr	w0, [x20, #24]
	bl	_htobe32
	ldr	x8, [x20, #32]
	str	x0, [x8]
LBB0_15:
	mov	x0, x19
	bl	_pthread_spin_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_INVALID_LKEY,4,2          ; @MLX4_INVALID_LKEY
.subsections_via_symbols
