	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_rqe_get
_siw_rqe_get:                           ## @siw_rqe_get
	.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	%rdi, %r14
	movq	32(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leaq	24(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	jmp	LBB0_24
LBB0_3:
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_5:
	leaq	40(%r12), %rax
	leaq	8(%r12), %rdx
	movq	%r12, %rcx
	jmp	LBB0_7
LBB0_6:
	leaq	24(%r14), %rax
	leaq	16(%r14), %rcx
	movq	%r14, %rdx
LBB0_7:
	movq	(%rax), %rbx
	movq	(%rdx), %rax
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	leaq	(%rdx,%rdx,2), %r15
	movl	(%rbx,%r15,8), %eax
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movl	4(%rbx,%r15,8), %r13d
	movq	_SIW_MAX_SGE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setle	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	leaq	(%rbx,%r15,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rdi
	callq	_rx_wqe
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SIW_OP_RECEIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SIW_WR_INPROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movl	16(%rbx,%r15,8), %ecx
	movl	%ecx, 24(%rax)
	movl	%r13d, 8(%rax)
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.13:
	leaq	32(%rax), %r8
	leaq	(%rbx,%r15,8), %r9
	addq	$8, %r9
	shlq	$3, %r13
	xorl	%esi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rbx
	movl	12(%rbx,%rsi,2), %ecx
	movq	16(%rax), %rdx
	movl	%ecx, 12(%rdx,%rsi,2)
	movl	8(%rbx,%rsi,2), %ecx
	movl	%ecx, 8(%rdx,%rsi,2)
	movq	(%rbx,%rsi,2), %rcx
	movq	%rcx, (%rdx,%rsi,2)
	addq	%rcx, %rdi
	movq	(%rax), %rcx
	movq	$0, (%rcx,%rsi)
	addq	$8, %rsi
	cmpq	%rsi, %r13
	jne	LBB0_14
## %bb.15:
	movq	%rdi, (%r8)
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_smp_store_mb
	testq	%r12, %r12
	je	LBB0_25
## %bb.17:
	cmpq	$0, 32(%r12)
	movq	8(%r12), %rcx
	je	LBB0_29
## %bb.18:
	movq	16(%r12), %rax
	addq	%rcx, %rax
	movq	(%r12), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_27
## %bb.19:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_28
LBB0_20:
	testq	%r12, %r12
	jne	LBB0_23
	jmp	LBB0_4
LBB0_22:
	leaq	(%rbx,%r15,8), %rax
	addq	$4, %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_siw_dbg_qp
	testq	%r12, %r12
	je	LBB0_4
LBB0_23:
	addq	$24, %r12
	movq	%r12, %rdi
LBB0_24:
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_25:
	incq	(%r14)
	jmp	LBB0_31
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_28:
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rsi
	movq	40(%r12), %rax
	leaq	(%rdx,%rdx,2), %rdx
	movl	(%rsi), %esi
	testl	%esi, (%rax,%rdx,8)
	je	LBB0_30
LBB0_29:
	incq	%rcx
	movq	%rcx, 8(%r12)
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_31
LBB0_30:
	movq	$0, 32(%r12)
	incq	%rcx
	movq	%rcx, 8(%r12)
	leaq	24(%r12), %rdi
	callq	_spin_unlock_irqrestore
	movq	_IB_EVENT_SRQ_LIMIT_REACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_siw_srq_event
LBB0_31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_WQE_VALID,4,2              ## @SIW_WQE_VALID
	.comm	_SIW_MAX_SGE,4,2                ## @SIW_MAX_SGE
	.comm	_SIW_OP_RECEIVE,8,3             ## @SIW_OP_RECEIVE
	.comm	_SIW_WR_INPROGRESS,4,2          ## @SIW_WR_INPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many sge's: %d\n"

	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,4,2 ## @IB_EVENT_SRQ_LIMIT_REACHED
	.no_dead_strip	_siw_rqe_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_rqe_get
_siw_rqe_get:                           ; @siw_rqe_get
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #32]
	cbz	x19, LBB0_3
; %bb.1:
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	b	LBB0_19
LBB0_3:
	mov	x21, x20
	ldr	x8, [x21, #24]!
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.4:
	add	x8, x20, #16
	mov	x9, x20
	b	LBB0_6
LBB0_5:
	add	x21, x19, #40
	add	x9, x19, #8
	mov	x8, x19
LBB0_6:
	ldr	x24, [x21]
	ldr	x9, [x9]
	ldr	x8, [x8]
	udiv	x10, x9, x8
	msub	x25, x10, x8, x9
	mov	w8, #24
	madd	x23, x25, x8, x24
	ldr	w8, [x23]
Lloh0:
	adrp	x22, _SIW_WQE_VALID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SIW_WQE_VALID@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_16
; %bb.7:
	mov	w8, #24
	madd	x21, x25, x8, x24
	ldr	w26, [x21, #4]!
Lloh2:
	adrp	x8, _SIW_MAX_SGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIW_MAX_SGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w26, w8
	cset	w0, le
	bl	_likely
	cbz	x0, LBB0_17
; %bb.8:
	add	x0, x20, #8
	bl	_rx_wqe
	mov	x21, x0
Lloh5:
	adrp	x8, _SIW_OP_RECEIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIW_OP_RECEIVE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _SIW_WR_INPROGRESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIW_WR_INPROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x8, #48]
	mov	x9, x8
	str	xzr, [x9, #32]!
	mov	w10, #24
	madd	x10, x25, x10, x24
	str	xzr, [x8, #40]
	ldr	w10, [x10, #16]
	str	w10, [x8, #24]
	str	w26, [x8, #8]
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x11, #0
	mov	x10, #0
	mov	w12, #24
	madd	x12, x25, x12, x24
	add	x12, x12, #8
	lsl	x13, x26, #3
	mov	w14, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x12]
	ldr	x16, [x8, #16]
	add	x15, x15, x14
	ldr	d0, [x15]
	add	x16, x16, x14
	str	d0, [x16]
	ldur	x15, [x15, #-8]
	stur	x15, [x16, #-8]
	add	x10, x10, x15
	ldr	x15, [x8]
	str	xzr, [x15, x11]
	add	x11, x11, #8
	add	x14, x14, #16
	cmp	x13, x11
	b.ne	LBB0_10
; %bb.11:
	str	x10, [x9]
LBB0_12:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_smp_store_mb
	cbz	x19, LBB0_22
; %bb.13:
	ldr	x9, [x19, #32]
	ldr	x8, [x19, #8]
	cbz	x9, LBB0_15
; %bb.14:
	ldr	x9, [x19, #16]
	add	x9, x9, x8
	ldr	x10, [x19]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	ldr	x10, [x19, #40]
	mov	w11, #24
	mul	x9, x9, x11
	ldr	w9, [x10, x9]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_23
LBB0_15:
	add	x8, x8, #1
	str	x8, [x19, #8]
	add	x0, x19, #24
	bl	_spin_unlock_irqrestore
	b	LBB0_21
LBB0_16:
	cbnz	x19, LBB0_18
	b	LBB0_20
LBB0_17:
	ldr	w2, [x21]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_siw_dbg_qp
	cbz	x19, LBB0_20
LBB0_18:
	add	x0, x19, #24
LBB0_19:
	bl	_spin_unlock_irqrestore
LBB0_20:
	mov	x21, #0
LBB0_21:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_21
LBB0_23:
	str	xzr, [x19, #32]
	add	x8, x8, #1
	str	x8, [x19, #8]
	add	x0, x19, #24
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_siw_srq_event
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WQE_VALID,4,2              ; @SIW_WQE_VALID
	.comm	_SIW_MAX_SGE,4,2                ; @SIW_MAX_SGE
	.comm	_SIW_OP_RECEIVE,8,3             ; @SIW_OP_RECEIVE
	.comm	_SIW_WR_INPROGRESS,4,2          ; @SIW_WR_INPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many sge's: %d\n"

	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,4,2 ; @IB_EVENT_SRQ_LIMIT_REACHED
	.no_dead_strip	_siw_rqe_get
.subsections_via_symbols
