	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_init_sge                 ## -- Begin function ipath_init_sge
	.p2align	4, 0x90
_ipath_init_sge:                        ## @ipath_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movl	(%rsi), %eax
	testl	%eax, %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	addq	$4, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %r15
	cmpq	%rcx, %r13
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%r15)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$-4, %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rdx
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ipath_lkey_ok
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdx
	movq	(%rdx,%r15), %rax
	addq	%rax, (%r12)
	incl	%r14d
	movl	(%rbx), %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_10:
	leaq	-88(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	_IB_WC_LOC_PROT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movl	(%rax), %edi
	callq	_to_icq
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_ipath_cq_enter
LBB0_11:
	movl	%r15d, %eax
	addq	$56, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_init_sge                 ; -- Begin function ipath_init_sge
	.p2align	2
_ipath_init_sge:                        ; @ipath_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	x21, x3
	str	xzr, [x2]
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
	add	x26, x21, #4
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x27, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x24, x24, #8
	cmp	x25, w9, sxtw
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x24]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x26
	cbz	w23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #8]
	sub	w10, w23, #1
	add	x1, x9, w10, sxtw #2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x8, x24
	ldr	w3, [x27]
	mov	x0, x19
	bl	_ipath_lkey_ok
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x24]
	ldr	x10, [x22]
	add	x9, x10, x9
	str	x9, [x22]
	add	w23, w23, #1
	ldr	w9, [x20]
	b	LBB0_2
LBB0_8:
	mov	w23, #0
LBB0_9:
	str	w23, [x21]
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	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]
	str	x19, [sp, #8]
	ldr	w0, [x19]
	bl	_to_icq
	add	x1, sp, #8
	mov	w2, #1
	bl	_ipath_cq_enter
	mov	w0, #0
LBB0_11:
	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
.subsections_via_symbols
