	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_next_crq
_ibmvnic_next_crq:                      ## @ibmvnic_next_crq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	16(%rdi), %rax
	movq	_IBMVNIC_CRQ_CMD_RSP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	leaq	(%rax,%rcx,4), %rax
	incq	%rcx
	xorl	%edx, %edx
	cmpq	8(%rdi), %rcx
	cmovneq	%rcx, %rdx
	movq	%rdx, (%rdi)
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVNIC_CRQ_CMD_RSP,4,2        ## @IBMVNIC_CRQ_CMD_RSP
	.no_dead_strip	_ibmvnic_next_crq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_next_crq
_ibmvnic_next_crq:                      ; @ibmvnic_next_crq
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x10, [x0, #16]
	ldr	x9, [x0]
	add	x0, x10, x9, lsl #2
	ldr	w10, [x0]
Lloh0:
	adrp	x11, _IBMVNIC_CRQ_CMD_RSP@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IBMVNIC_CRQ_CMD_RSP@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	add	x10, x9, #1
	ldr	x11, [x8, #8]
	cmp	x10, x11
	csinc	x9, xzr, x9, eq
	str	x9, [x8]
	ret
LBB0_2:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVNIC_CRQ_CMD_RSP,4,2        ; @IBMVNIC_CRQ_CMD_RSP
	.no_dead_strip	_ibmvnic_next_crq
.subsections_via_symbols
