	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_save_headers
_qp_save_headers:                       ## @qp_save_headers
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
LBB0_2:
	movq	8(%rdi), %rsi
	movq	8(%rbx), %rax
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rax)
	jne	LBB0_6
LBB0_4:
	movq	%rax, %rsi
	callq	_qp_host_map_queues
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_8
## %bb.5:
	movq	24(%rbx), %rax
	movq	8(%rax), %rsi
LBB0_6:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%rbx), %rax
	movq	%r14, (%rax)
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movq	%rbx, (%rax)
LBB0_7:
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.no_dead_strip	_qp_save_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_save_headers
_qp_save_headers:                       ; @qp_save_headers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
LBB0_2:
	ldr	x1, [x0, #8]
	ldr	x8, [x19, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_6
LBB0_4:
	mov	x1, x8
	bl	_qp_host_map_queues
Lloh0:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_8
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x1, [x8, #8]
LBB0_6:
	add	x20, x19, #16
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	str	x20, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #8]
	str	x19, [x8]
LBB0_7:
Lloh3:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.no_dead_strip	_qp_save_headers
.subsections_via_symbols
