	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_sge
_init_sge:                              ## @init_sge
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	24(%rdi), %edi
	callq	_ib_to_rvt
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	leaq	12(%r13), %rcx
	testq	%rax, %rax
	cmovneq	%rax, %rcx
	movl	(%rcx), %edi
	callq	_ibpd_to_rvtpd
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rax
	movq	%rax, 64(%r13)
	movq	$0, (%r13)
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	leaq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	56(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	addq	$8, %r12
	cmpq	%rdx, %r14
	jge	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%r12)
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	64(%r13), %rax
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,4), %rbx
	addq	$-4, %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %rdi
	callq	_rvt_cast_sge
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_rvt_lkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	(%r13), %rax
	addq	(%rdi,%r12), %rax
	movq	%rax, (%r13)
	incl	%r15d
	movl	(%rbx), %ecx
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, 40(%r13)
	movq	%rax, 48(%r13)
	movl	$1, %r15d
	jmp	LBB0_16
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.8:
	movl	%r15d, %r14d
	decl	%r14d
	je	LBB0_11
## %bb.9:
	movslq	%r15d, %rbx
	addq	$-2, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rvt_put_mr
	decq	%rbx
	decl	%r14d
	jne	LBB0_10
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_rvt_put_mr
LBB0_12:
	movl	$0, 40(%r13)
	leaq	-104(%rbp), %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_IB_WC_LOC_PROT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -104(%rbp)
	movl	8(%r13), %edi
	callq	_ibcq_to_rvtcq
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_rvt_cq_enter
LBB0_16:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_WC_LOC_PROT_ERR,4,2         ## @IB_WC_LOC_PROT_ERR
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.no_dead_strip	_init_sge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_sge
_init_sge:                              ; @init_sge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_ib_to_rvt
	mov	x21, x0
	ldr	x8, [x19, #16]
	add	x9, x19, #12
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	bl	_ibpd_to_rvtpd
	ldr	x8, [x19, #32]
	str	x8, [x19, #64]
	str	xzr, [x19]
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x0
	mov	x27, #0
	mov	x9, #0
	mov	x28, #0
	mov	w26, #0
	ldr	x8, [x20, #8]
	add	x11, x19, #8
	str	x11, [sp]                       ; 8-byte Folded Spill
	add	x25, x19, #56
Lloh0:
	adrp	x24, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	add	x27, x27, #8
	cmp	x28, w10, sxtw
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x27]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x25
	cbz	w26, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #64]
	sub	w10, w26, #1
	add	x23, x9, w10, sxtw #2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, x27
	bl	_rvt_cast_sge
	mov	x4, x0
	ldr	w5, [x24]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_rvt_lkey_ok
	cmp	w0, #1
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x27]
	ldr	x10, [x19]
	add	x9, x10, x9
	str	x9, [x19]
	add	w26, w26, #1
	ldr	w10, [x20]
	b	LBB0_2
LBB0_8:
	mov	x9, #0
	mov	w26, #0
LBB0_9:
	str	w26, [x19, #40]
	str	x9, [x19, #48]
	mov	w0, #1
	b	LBB0_16
LBB0_10:
	cbz	w26, LBB0_15
; %bb.11:
	subs	w21, w26, #1
	b.eq	LBB0_14
; %bb.12:
	sxtw	x8, w26
	lsl	x8, x8, #2
	sub	x22, x8, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	ldr	w0, [x8, x22]
	bl	_rvt_put_mr
	sub	x22, x22, #4
	subs	w21, w21, #1
	b.ne	LBB0_13
LBB0_14:
	ldr	w0, [x25]
	bl	_rvt_put_mr
LBB0_15:
	str	wzr, [x19, #40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20, #4]
	str	w8, [sp, #24]
Lloh2:
	adrp	x8, _IB_WC_LOC_PROT_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_WC_LOC_PROT_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IB_WC_RECV@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IB_WC_RECV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x8, [sp, #8]
	ldr	w0, [x19, #8]
	bl	_ibcq_to_rvtcq
	add	x1, sp, #8
	mov	w2, #1
	bl	_rvt_cq_enter
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_WC_LOC_PROT_ERR,4,2         ; @IB_WC_LOC_PROT_ERR
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.no_dead_strip	_init_sge
.subsections_via_symbols
