	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PortalDefineQuery              ## -- Begin function PortalDefineQuery
	.p2align	4, 0x90
_PortalDefineQuery:                     ## @PortalDefineQuery
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_PortalIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	(%rbx), %rax
	movq	_PORTAL_NEW@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_AssertState
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_AssertArg
	testq	%r12, %r12
	setne	%al
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_AssertArg
	movq	%r14, 8(%rbx)
	movq	%r13, 16(%rbx)
	movq	%r12, 24(%rbx)
	movq	%r15, 40(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	_PORTAL_DEFINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORTAL_NEW,8,3                 ## @PORTAL_NEW
	.comm	_NIL,8,3                        ## @NIL
	.comm	_PORTAL_DEFINED,8,3             ## @PORTAL_DEFINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PortalDefineQuery              ; -- Begin function PortalDefineQuery
	.p2align	2
_PortalDefineQuery:                     ; @PortalDefineQuery
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_PortalIsValid
	bl	_AssertArg
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _PORTAL_NEW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORTAL_NEW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_AssertState
	cmp	x22, #0
	cset	w0, ne
	bl	_AssertArg
	cmp	x21, #0
Lloh3:
	adrp	x8, _NIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x20, #4, eq
	cset	w0, eq
	bl	_AssertArg
	stp	x22, x21, [x24, #16]
	stp	x19, x20, [x24, #32]
Lloh6:
	adrp	x8, _PORTAL_DEFINED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORTAL_DEFINED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x23, [x24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PORTAL_NEW,8,3                 ; @PORTAL_NEW
	.comm	_NIL,8,3                        ; @NIL
	.comm	_PORTAL_DEFINED,8,3             ; @PORTAL_DEFINED
.subsections_via_symbols
