	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_query_srq           ## -- Begin function ocrdma_mbx_query_srq
	.p2align	4, 0x90
_ocrdma_mbx_query_srq:                  ## @ocrdma_mbx_query_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	%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, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%rdi), %edi
	callq	_get_ocrdma_dev
	movq	%rax, %r13
	movq	_OCRDMA_CMD_QUERY_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	movq	_OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	movl	4(%rbx), %edx
	movq	_OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%edx, 4(%r14)
	movq	_OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 8(%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	negl	%r15d
LBB0_5:
	movl	%r15d, %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	_OCRDMA_CMD_QUERY_SRQ,4,2       ## @OCRDMA_CMD_QUERY_SRQ
	.comm	_OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK,4,2 ## @OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK
	.comm	_OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT,4,2 ## @OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT
	.comm	_OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT,4,2 ## @OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_query_srq           ; -- Begin function ocrdma_mbx_query_srq
	.p2align	2
_ocrdma_mbx_query_srq:                  ; @ocrdma_mbx_query_srq
	.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
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x0, #4]
	bl	_get_ocrdma_dev
	mov	x22, x0
Lloh3:
	adrp	x8, _OCRDMA_CMD_QUERY_SRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_CMD_QUERY_SRQ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [x0]
	mov	x0, x22
	mov	x1, x20
	bl	_ocrdma_mbx_cmd
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	and	w8, w8, w9
	str	w8, [x19]
Lloh9:
	adrp	x8, _OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w8, w10, w8
Lloh12:
	adrp	x10, _OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w9, w9, w10
	stp	w8, w9, [x19, #4]
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
	neg	w21, w23
LBB0_5:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_CMD_QUERY_SRQ,4,2       ; @OCRDMA_CMD_QUERY_SRQ
	.comm	_OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK,4,2 ; @OCRDMA_QUERY_SRQ_RSP_MAX_SGE_RECV_MASK
	.comm	_OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT,4,2 ; @OCRDMA_QUERY_SRQ_RSP_MAX_RQE_SHIFT
	.comm	_OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT,4,2 ; @OCRDMA_QUERY_SRQ_RSP_SRQ_LIMIT_SHIFT
.subsections_via_symbols
