	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qpair_detach              ## -- Begin function vmci_qpair_detach
	.p2align	4, 0x90
_vmci_qpair_detach:                     ## @vmci_qpair_detach
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_qp_detatch
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_VMCI_INVALID_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_VMCI_INVALID_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	movl	%r15d, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_VMCI_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ## @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_INVALID_HANDLE,4,2        ## @VMCI_INVALID_HANDLE
	.comm	_VMCI_INVALID_ID,4,2            ## @VMCI_INVALID_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_qpair_detach              ; -- Begin function vmci_qpair_detach
	.p2align	2
_vmci_qpair_detach:                     ; @vmci_qpair_detach
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.2:
	ldp	w0, w1, [x20, #4]
	bl	_qp_detatch
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _VMCI_INVALID_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_INVALID_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VMCI_INVALID_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VMCI_INVALID_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
	mov	x0, x21
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ; @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_INVALID_HANDLE,4,2        ; @VMCI_INVALID_HANDLE
	.comm	_VMCI_INVALID_ID,4,2            ; @VMCI_INVALID_ID
.subsections_via_symbols
