	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_srq_alloc_icm           ## -- Begin function __mlx4_srq_alloc_icm
	.p2align	4, 0x90
___mlx4_srq_alloc_icm:                  ## @__mlx4_srq_alloc_icm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_mlx4_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mlx4_bitmap_alloc
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_mlx4_table_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	8(%r12), %rsi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_mlx4_table_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mlx4_table_put
LBB0_6:
	movl	(%r14), %esi
	movq	_MLX4_NO_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mlx4_bitmap_free
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX4_NO_RR,4,2                 ## @MLX4_NO_RR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_srq_alloc_icm           ; -- Begin function __mlx4_srq_alloc_icm
	.p2align	2
___mlx4_srq_alloc_icm:                  ; @__mlx4_srq_alloc_icm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_mlx4_priv
	mov	x20, x0
	bl	_mlx4_bitmap_alloc
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x2, x0
	add	x23, x20, #4
	mov	x0, x21
	mov	x1, x23
	bl	_mlx4_table_get
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	x1, x20, #8
	ldr	w2, [x19]
	mov	x0, x21
	bl	_mlx4_table_get
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x23
	bl	_mlx4_table_put
LBB0_4:
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _MLX4_NO_RR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_NO_RR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mlx4_bitmap_free
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_NO_RR,4,2                 ; @MLX4_NO_RR
.subsections_via_symbols
