	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qpair_consume_buf_ready   ## -- Begin function vmci_qpair_consume_buf_ready
	.p2align	4, 0x90
_vmci_qpair_consume_buf_ready:          ## @vmci_qpair_consume_buf_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_qp_lock
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_qp_get_queue_headers
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rdi
	movq	-32(%rbp), %rsi
	movl	(%rbx), %edx
	callq	_vmci_q_header_buf_ready
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_1:
	movq	_VMCI_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%rbx, %rdi
	callq	_qp_unlock
LBB0_6:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,8,3    ## @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_SUCCESS,8,3               ## @VMCI_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qpair_consume_buf_ready   ; -- Begin function vmci_qpair_consume_buf_ready
	.p2align	2
_vmci_qpair_consume_buf_ready:          ; @vmci_qpair_consume_buf_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_qp_lock
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_qp_get_queue_headers
Lloh0:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldp	x0, x1, [sp]
	ldr	w2, [x19]
	bl	_vmci_q_header_buf_ready
	mov	x20, x0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	b	LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x19
	bl	_qp_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,8,3    ; @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_SUCCESS,8,3               ; @VMCI_SUCCESS
.subsections_via_symbols
