	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_create_srq            ## -- Begin function mlx5_cmd_create_srq
	.p2align	4, 0x90
_mlx5_cmd_create_srq:                   ## @mlx5_cmd_create_srq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdx), %ecx
	cmpl	$129, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_MLX5_RES_XRQ@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_MLX5_RES_SRQ@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_MLX5_RES_XSRQ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_create_srq_split
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	4(%r15), %rbx
	leaq	8(%r15), %rdi
	movl	$1, %esi
	callq	_refcount_set
	movq	%rbx, %rdi
	callq	_init_completion
	movl	(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_xa_store_irq
	movl	%eax, %edi
	callq	_xa_err
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_destroy_srq_split
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_RES_XSRQ,4,2              ## @MLX5_RES_XSRQ
	.comm	_MLX5_RES_XRQ,4,2               ## @MLX5_RES_XRQ
	.comm	_MLX5_RES_SRQ,4,2               ## @MLX5_RES_SRQ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_create_srq            ; -- Begin function mlx5_cmd_create_srq
	.p2align	2
_mlx5_cmd_create_srq:                   ; @mlx5_cmd_create_srq
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _MLX5_RES_XSRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_RES_XSRQ@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MLX5_RES_XRQ@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MLX5_RES_XRQ@GOTPAGEOFF]
Lloh4:
	adrp	x11, _MLX5_RES_SRQ@GOTPAGE
Lloh5:
	ldr	x11, [x11, _MLX5_RES_SRQ@GOTPAGEOFF]
	cmp	w8, #129
	csel	x10, x10, x11, eq
	cmp	w8, #128
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x1, #12]
	bl	_create_srq_split
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
	add	x21, x19, #4
	add	x0, x19, #8
	mov	w1, #1
	bl	_refcount_set
	mov	x0, x21
	bl	_init_completion
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_xa_store_irq
	bl	_xa_err
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_destroy_srq_split
LBB0_3:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_RES_XSRQ,4,2              ; @MLX5_RES_XSRQ
	.comm	_MLX5_RES_XRQ,4,2               ; @MLX5_RES_XRQ
	.comm	_MLX5_RES_SRQ,4,2               ; @MLX5_RES_SRQ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
