	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qp_guest_endpoints_exit   ## -- Begin function vmci_qp_guest_endpoints_exit
	.p2align	4, 0x90
_vmci_qp_guest_endpoints_exit:          ## @vmci_qp_guest_endpoints_exit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_qp_guest_endpoints@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_qp_list_get_head
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_VMCI_QPFLAG_LOCAL@GOTPCREL(%rip), %r15
	movq	_qp_guest_endpoints@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qp_list_remove_entry
	movq	%rbx, %rdi
	callq	_qp_guest_endpoint_destroy
	movq	%r14, %rdi
	callq	_qp_list_get_head
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	callq	_qp_detatch_hypercall
	jmp	LBB0_4
LBB0_5:
	movq	_qp_guest_endpoints@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qp_guest_endpoints,4,2         ## @qp_guest_endpoints
	.comm	_VMCI_QPFLAG_LOCAL,4,2          ## @VMCI_QPFLAG_LOCAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qp_guest_endpoints_exit   ; -- Begin function vmci_qp_guest_endpoints_exit
	.p2align	2
_vmci_qp_guest_endpoints_exit:          ; @vmci_qp_guest_endpoints_exit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _qp_guest_endpoints@GOTPAGE
Lloh1:
	ldr	x19, [x19, _qp_guest_endpoints@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_qp_list_get_head
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x21, _VMCI_QPFLAG_LOCAL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VMCI_QPFLAG_LOCAL@GOTPAGEOFF]
Lloh4:
	adrp	x19, _qp_guest_endpoints@GOTPAGE
Lloh5:
	ldr	x19, [x19, _qp_guest_endpoints@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_qp_list_remove_entry
	mov	x0, x20
	bl	_qp_guest_endpoint_destroy
	mov	x0, x19
	bl	_qp_list_get_head
	mov	x20, x0
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #16]
	bl	_qp_detatch_hypercall
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x0, _qp_guest_endpoints@GOTPAGE
Lloh7:
	ldr	x0, [x0, _qp_guest_endpoints@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_qp_guest_endpoints,4,2         ; @qp_guest_endpoints
	.comm	_VMCI_QPFLAG_LOCAL,4,2          ; @VMCI_QPFLAG_LOCAL
.subsections_via_symbols
