	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_init_srq_table           ## -- Begin function mthca_init_srq_table
	.p2align	4, 0x90
_mthca_init_srq_table:                  ## @mthca_init_srq_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MTHCA_FLAG_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	addq	$12, %rdi
	callq	_spin_lock_init
	movq	16(%rbx), %rsi
	leaq	-1(%rsi), %rdx
	movl	24(%rbx), %ecx
	movq	%r14, %rdi
	callq	_mthca_alloc_init
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rsi
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mthca_array_init
	movl	%eax, %ebx
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_mthca_alloc_cleanup
	movl	%ebx, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_FLAG_SRQ,4,2             ## @MTHCA_FLAG_SRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_init_srq_table           ; -- Begin function mthca_init_srq_table
	.p2align	2
_mthca_init_srq_table:                  ; @mthca_init_srq_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MTHCA_FLAG_SRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTHCA_FLAG_SRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	add	x19, x0, #4
	add	x0, x0, #12
	bl	_spin_lock_init
	ldr	x1, [x20, #16]
	sub	x2, x1, #1
	ldr	w3, [x20, #24]
	mov	x0, x19
	bl	_mthca_alloc_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	add	x0, x20, #8
	ldr	x1, [x20, #16]
	bl	_mthca_array_init
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_mthca_alloc_cleanup
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_FLAG_SRQ,4,2             ; @MTHCA_FLAG_SRQ
.subsections_via_symbols
