	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PortalRunFetch                 ## -- Begin function PortalRunFetch
	.p2align	4, 0x90
_PortalRunFetch:                        ## @PortalRunFetch
	.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
	movq	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_PortalIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	%rbx, %rdi
	callq	_MarkPortalActive
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_Assert
	movq	_ActivePortal@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_PortalContext@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%rbx, (%r14)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r12)
LBB0_2:
	movl	12(%rbx), %edi
	movl	%edi, (%r15)
	callq	_MemoryContextSwitchTo
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_FillPortalStore
LBB0_5:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_DoPortalRunFetch
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_9:
	xorl	%eax, %eax
	callq	_PG_CATCH
	movq	%rbx, %rdi
	callq	_MarkPortalFailed
	movq	_ActivePortal@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, (%r12)
	movq	_PortalContext@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, (%rax)
	xorl	%eax, %eax
	callq	_PG_RE_THROW
	xorl	%eax, %eax
	callq	_PG_END_TRY
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	_PORTAL_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_ActivePortal@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	%r14, (%r12)
	movq	_PortalContext@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ActivePortal,8,3               ## @ActivePortal
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_PortalContext,4,2              ## @PortalContext
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported portal strategy"

	.comm	_PORTAL_READY,4,2               ## @PORTAL_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PortalRunFetch                 ; -- Begin function PortalRunFetch
	.p2align	2
_PortalRunFetch:                        ; @PortalRunFetch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_PortalIsValid
	bl	_AssertArg
	mov	x0, x19
	bl	_MarkPortalActive
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x24, _ActivePortal@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ActivePortal@GOTPAGEOFF]
	ldr	x25, [x24]
Lloh2:
	adrp	x21, _CurrentResourceOwner@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	x27, [x21]
Lloh4:
	adrp	x28, _PortalContext@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PortalContext@GOTPAGEOFF]
	ldr	w26, [x28]
	bl	_PG_TRY
	str	x19, [x24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [x21]
LBB0_2:
	ldr	w0, [x19, #12]
	str	w0, [x28]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldr	w8, [x19]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	w20, #0
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_FillPortalStore
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_DoPortalRunFetch
	mov	x20, x0
LBB0_9:
	bl	_PG_CATCH
	mov	x0, x19
	bl	_MarkPortalFailed
	str	x25, [x24]
Lloh11:
	adrp	x22, _CurrentResourceOwner@GOTPAGE
Lloh12:
	ldr	x22, [x22, _CurrentResourceOwner@GOTPAGEOFF]
	str	x27, [x22]
	str	w26, [x28]
	bl	_PG_RE_THROW
	bl	_PG_END_TRY
	mov	x0, x21
	bl	_MemoryContextSwitchTo
Lloh13:
	adrp	x8, _PORTAL_READY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PORTAL_READY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	str	x25, [x24]
	str	x27, [x22]
	str	w26, [x28]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ActivePortal,8,3               ; @ActivePortal
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_PortalContext,4,2              ; @PortalContext
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported portal strategy"

	.comm	_PORTAL_READY,4,2               ; @PORTAL_READY
.subsections_via_symbols
