	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_xrc_srq_cmd
_create_xrc_srq_cmd:                    ## @create_xrc_srq_cmd
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_create_xrc_srq_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_pas_size
	movl	%eax, %ebx
	movq	_create_xrc_srq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r15d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	addl	%ebx, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_create_xrc_srq_in@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_uid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	(%rbx), %rdi
	movq	_xrc_srq_context_entry@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r12
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_set_srqc
	movq	_user_index@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r13), %ecx
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	%r13, %r12
	movl	4(%r13), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	(%rbx), %rdi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_CREATE_XRC_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	shll	$2, %ebx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_mlx5_cmd_exec
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_create_xrc_srq_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xrc_srqn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_MLX5_GET
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	(%r12), %eax
	movl	%eax, (%rcx)
LBB0_4:
	movq	%r14, %rdi
	callq	_kvfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_create_xrc_srq_out,4,2         ## @create_xrc_srq_out
	.comm	_create_xrc_srq_in,8,3          ## @create_xrc_srq_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_uid,4,2                        ## @uid
	.comm	_xrc_srq_context_entry,8,3      ## @xrc_srq_context_entry
	.comm	_user_index,4,2                 ## @user_index
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_CREATE_XRC_SRQ,4,2 ## @MLX5_CMD_OP_CREATE_XRC_SRQ
	.comm	_xrc_srqn,4,2                   ## @xrc_srqn
	.no_dead_strip	_create_xrc_srq_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_xrc_srq_cmd
_create_xrc_srq_cmd:                    ; @create_xrc_srq_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x27, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _create_xrc_srq_out@GOTPAGE
Lloh4:
	ldr	x8, [x8, _create_xrc_srq_out@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_DW
	mov	x24, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x20
	bl	_get_pas_size
	mov	x26, x0
Lloh8:
	adrp	x19, _create_xrc_srq_in@GOTPAGE
Lloh9:
	ldr	x19, [x19, _create_xrc_srq_in@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_MLX5_ST_SZ_BYTES
	add	w25, w0, w26
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_kvzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	stur	x27, [x29, #-96]                ; 8-byte Folded Spill
	ldr	x0, [x19]
Lloh13:
	adrp	x8, _uid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x1, x23
	bl	_MLX5_SET
	ldr	x0, [x19]
Lloh16:
	adrp	x8, _xrc_srq_context_entry@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xrc_srq_context_entry@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
	mov	x1, x23
	bl	_MLX5_ADDR_OF
	mov	x27, x0
	ldr	x0, [x19]
	mov	x1, x23
	bl	_MLX5_ADDR_OF
	mov	x28, x0
	mov	x0, x27
	mov	x1, x20
	bl	_set_srqc
Lloh19:
	adrp	x8, _user_index@GOTPAGE
Lloh20:
	ldr	x8, [x8, _user_index@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x27
	mov	x1, x27
	bl	_MLX5_SET
	ldr	w1, [x20, #4]
	mov	x0, x28
	mov	x2, x26
	bl	_memcpy
	ldr	x0, [x19]
Lloh22:
	adrp	x8, _opcode@GOTPAGE
Lloh23:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _MLX5_CMD_OP_CREATE_XRC_SRQ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX5_CMD_OP_CREATE_XRC_SRQ@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_MLX5_SET
	lsl	w24, w24, #2
	mov	x0, x22
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	w0, [x21]
	mov	x1, x23
	mov	x2, x25
	mov	x3, x22
	mov	x4, x24
	bl	_mlx5_cmd_exec
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh28:
	adrp	x8, _create_xrc_srq_out@GOTPAGE
Lloh29:
	ldr	x8, [x8, _create_xrc_srq_out@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _xrc_srqn@GOTPAGE
Lloh32:
	ldr	x8, [x8, _xrc_srqn@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX5_GET
	ldr	w8, [x20]
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	stp	w8, w0, [x9]
LBB0_3:
	mov	x0, x23
	bl	_kvfree
	b	LBB0_5
LBB0_4:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_create_xrc_srq_out,4,2         ; @create_xrc_srq_out
	.comm	_create_xrc_srq_in,8,3          ; @create_xrc_srq_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_uid,4,2                        ; @uid
	.comm	_xrc_srq_context_entry,8,3      ; @xrc_srq_context_entry
	.comm	_user_index,4,2                 ; @user_index
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_CREATE_XRC_SRQ,4,2 ; @MLX5_CMD_OP_CREATE_XRC_SRQ
	.comm	_xrc_srqn,4,2                   ; @xrc_srqn
	.no_dead_strip	_create_xrc_srq_cmd
.subsections_via_symbols
