	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_alloc_host_work
_qp_alloc_host_work:                    ## @qp_alloc_host_work
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_vmci_handle_is_invalid
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_VMCI_HOST_CONTEXT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VMCI_INVALID_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vmci_make_handle
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %ebx
LBB0_3:
	movq	_VMCI_HOST_CONTEXT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmci_ctx_get
	movq	%rax, %r13
	movq	$0, -64(%rbp)
	leaq	-48(%rbp), %rax
	leaq	-64(%rbp), %r10
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	16(%rbp), %edx
	movl	24(%rbp), %ecx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r10
	pushq	40(%rbp)
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	%r13
	pushq	$0
	callq	_qp_broker_alloc
	addq	$48, %rsp
	movl	%eax, %ebx
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.4:
	cmpl	$0, -48(%rbp)
	movq	-64(%rbp), %rdi
	je	LBB0_6
## %bb.5:
	movq	8(%rdi), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	leaq	16(%rdi), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_VMCI_INVALID_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_devel
	jmp	LBB0_9
LBB0_6:
	movq	16(%rdi), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	leaq	8(%rdi), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	callq	_vmci_resource_handle
	movl	%eax, (%r12)
LBB0_9:
	movq	%r13, %rdi
	callq	_vmci_ctx_put
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_HOST_CONTEXT_ID,4,2       ## @VMCI_HOST_CONTEXT_ID
	.comm	_VMCI_INVALID_ID,4,2            ## @VMCI_INVALID_ID
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.comm	_VMCI_INVALID_HANDLE,4,2        ## @VMCI_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue pair broker failed to alloc (result=%d)\n"

	.no_dead_strip	_qp_alloc_host_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_alloc_host_work
_qp_alloc_host_work:                    ; @qp_alloc_host_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x25, x6
	mov	x27, x5
	mov	x24, x4
	mov	x28, x3
	mov	x26, x2
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	mov	x19, x0
	ldr	x20, [x29, #24]
	ldr	w21, [x29, #16]
	ldr	w0, [x0]
	bl	_vmci_handle_is_invalid
Lloh0:
	adrp	x22, _VMCI_HOST_CONTEXT_ID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VMCI_HOST_CONTEXT_ID@GOTPAGEOFF]
	str	x28, [sp, #40]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _VMCI_INVALID_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCI_INVALID_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_vmci_make_handle
	mov	x28, x0
	b	LBB0_3
LBB0_2:
	ldr	w28, [x19]
LBB0_3:
	ldr	w0, [x22]
	bl	_vmci_ctx_get
	mov	x22, x0
	str	xzr, [sp, #56]
	mov	w0, w28
	add	x8, sp, #52
	str	x8, [sp, #24]
	add	x8, sp, #56
	stp	x20, x8, [sp, #8]
	str	w21, [sp]
	mov	x1, x27
	mov	x2, x25
	mov	x3, x23
	mov	x4, x26
	mov	x5, x24
	mov	x6, #0
	mov	x7, x22
	bl	_qp_broker_alloc
	mov	x23, x0
Lloh5:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [sp, #52]
	ldr	x0, [sp, #56]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	x8, [x0, #8]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
	add	x8, x0, #16
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _VMCI_INVALID_HANDLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMCI_INVALID_HANDLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_devel
	b	LBB0_9
LBB0_7:
	ldr	x8, [x0, #16]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
	add	x8, x0, #8
LBB0_8:
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x8, [x9]
	bl	_vmci_resource_handle
	str	w0, [x19]
LBB0_9:
	mov	x0, x22
	bl	_vmci_ctx_put
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_HOST_CONTEXT_ID,4,2       ; @VMCI_HOST_CONTEXT_ID
	.comm	_VMCI_INVALID_ID,4,2            ; @VMCI_INVALID_ID
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.comm	_VMCI_INVALID_HANDLE,4,2        ; @VMCI_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue pair broker failed to alloc (result=%d)\n"

	.no_dead_strip	_qp_alloc_host_work
.subsections_via_symbols
