	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_xrc_srq_cmd
_query_xrc_srq_cmd:                     ## @query_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_query_xrc_srq_in@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, %ebx
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_query_xrc_srq_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	shll	$2, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	(%r12), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_QUERY_XRC_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movl	(%r12), %edi
	movq	_xrc_srqn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	movq	_query_xrc_srq_out@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_mlx5_cmd_exec
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r13), %edi
	movq	_xrc_srq_context_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_srqc
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_GET
	movq	_MLX5_XRC_SRQC_STATE_GOOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_MLX5_SRQ_FLAG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_5:
	movq	%r15, %rdi
	callq	_kvfree
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_query_xrc_srq_in,4,2           ## @query_xrc_srq_in
	.comm	_query_xrc_srq_out,4,2          ## @query_xrc_srq_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_QUERY_XRC_SRQ,4,2  ## @MLX5_CMD_OP_QUERY_XRC_SRQ
	.comm	_xrc_srqn,4,2                   ## @xrc_srqn
	.comm	_xrc_srq_context_entry,4,2      ## @xrc_srq_context_entry
	.comm	_state,4,2                      ## @state
	.comm	_MLX5_XRC_SRQC_STATE_GOOD,8,3   ## @MLX5_XRC_SRQC_STATE_GOOD
	.comm	_MLX5_SRQ_FLAG_ERR,4,2          ## @MLX5_SRQ_FLAG_ERR
	.no_dead_strip	_query_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 query_xrc_srq_cmd
_query_xrc_srq_cmd:                     ; @query_xrc_srq_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x22, 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, #-72]
Lloh3:
	adrp	x26, _query_xrc_srq_in@GOTPAGE
Lloh4:
	ldr	x26, [x26, _query_xrc_srq_in@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_MLX5_ST_SZ_DW
	mov	x24, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x25, _query_xrc_srq_out@GOTPAGE
Lloh8:
	ldr	x25, [x25, _query_xrc_srq_out@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	lsl	w24, w24, #2
	mov	x0, x23
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	w0, [x26]
Lloh12:
	adrp	x8, _opcode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MLX5_CMD_OP_QUERY_XRC_SRQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5_CMD_OP_QUERY_XRC_SRQ@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_MLX5_SET
	ldr	w0, [x26]
Lloh18:
	adrp	x8, _xrc_srqn@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xrc_srqn@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x1, x23
	bl	_MLX5_SET
	ldr	w21, [x21]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
	mov	x4, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x20
	bl	_mlx5_cmd_exec
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x25]
Lloh21:
	adrp	x8, _xrc_srq_context_entry@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xrc_srq_context_entry@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	mov	x1, x19
	bl	_get_srqc
Lloh24:
	adrp	x8, _state@GOTPAGE
Lloh25:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x22
	bl	_MLX5_GET
Lloh27:
	adrp	x8, _MLX5_XRC_SRQC_STATE_GOOD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX5_XRC_SRQC_STATE_GOOD@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh30:
	adrp	x8, _MLX5_SRQ_FLAG_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MLX5_SRQ_FLAG_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_kvfree
	b	LBB0_6
LBB0_5:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_query_xrc_srq_in,4,2           ; @query_xrc_srq_in
	.comm	_query_xrc_srq_out,4,2          ; @query_xrc_srq_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_QUERY_XRC_SRQ,4,2  ; @MLX5_CMD_OP_QUERY_XRC_SRQ
	.comm	_xrc_srqn,4,2                   ; @xrc_srqn
	.comm	_xrc_srq_context_entry,4,2      ; @xrc_srq_context_entry
	.comm	_state,4,2                      ; @state
	.comm	_MLX5_XRC_SRQC_STATE_GOOD,8,3   ; @MLX5_XRC_SRQC_STATE_GOOD
	.comm	_MLX5_SRQ_FLAG_ERR,4,2          ; @MLX5_SRQ_FLAG_ERR
	.no_dead_strip	_query_xrc_srq_cmd
.subsections_via_symbols
