	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetSubscriptionRelState        ## -- Begin function GetSubscriptionRelState
	.p2align	4, 0x90
_GetSubscriptionRelState:               ## @GetSubscriptionRelState
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	_SubscriptionRelRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SUBSCRIPTIONRELMAP@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_SearchSysCache2
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movl	(%r14), %edi
	movq	_Anum_pg_subscription_rel_srsubstate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r13
	movl	%r15d, %esi
	movq	%r13, %rcx
	callq	_SysCacheGetAttr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetChar
	movl	%eax, %r12d
	movl	(%r14), %edi
	movq	_Anum_pg_subscription_rel_srsublsn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	movq	%r13, %rcx
	callq	_SysCacheGetAttr
	cmpl	$0, -48(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SUBREL_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movb	(%rax), %r12b
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %edi
	callq	_DatumGetLSN
LBB0_7:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	%r15d, %edi
	callq	_ReleaseSysCache
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
LBB0_8:
	movsbl	%r12b, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_elog
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SubscriptionRelRelationId,4,2  ## @SubscriptionRelRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_SUBSCRIPTIONRELMAP,4,2         ## @SUBSCRIPTIONRELMAP
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_SUBREL_STATE_UNKNOWN,1,0       ## @SUBREL_STATE_UNKNOWN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subscription table %u in subscription %u does not exist"

	.comm	_Anum_pg_subscription_rel_srsubstate,4,2 ## @Anum_pg_subscription_rel_srsubstate
	.comm	_Anum_pg_subscription_rel_srsublsn,4,2 ## @Anum_pg_subscription_rel_srsublsn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetSubscriptionRelState        ; -- Begin function GetSubscriptionRelState
	.p2align	2
_GetSubscriptionRelState:               ; @GetSubscriptionRelState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SubscriptionRelRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SubscriptionRelRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x20, x0
Lloh5:
	adrp	x27, _SUBSCRIPTIONRELMAP@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SUBSCRIPTIONRELMAP@GOTPAGEOFF]
	ldr	w21, [x27]
	mov	x0, x23
	bl	_ObjectIdGetDatum
	mov	x25, x0
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_SearchSysCache2
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_3
LBB0_1:
	ldr	w0, [x27]
Lloh7:
	adrp	x8, _Anum_pg_subscription_rel_srsubstate@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Anum_pg_subscription_rel_srsubstate@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x21
	bl	_SysCacheGetAttr
	mov	x22, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x22
	bl	_DatumGetChar
	mov	x22, x0
	ldr	w0, [x27]
Lloh10:
	adrp	x8, _Anum_pg_subscription_rel_srsublsn@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Anum_pg_subscription_rel_srsublsn@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x21
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
Lloh13:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
	cbz	w24, LBB0_8
; %bb.4:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_table_close
Lloh16:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh19:
	adrp	x8, _SUBREL_STATE_UNKNOWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUBREL_STATE_UNKNOWN@GOTPAGEOFF]
	ldrb	w22, [x8]
	b	LBB0_7
LBB0_5:
	bl	_DatumGetLSN
LBB0_6:
	str	w0, [x19]
	mov	x0, x21
	bl	_ReleaseSysCache
	ldr	w1, [x26]
	mov	x0, x20
	bl	_table_close
LBB0_7:
	sxtb	w0, w22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_elog
	b	LBB0_1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SubscriptionRelRelationId,4,2  ; @SubscriptionRelRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_SUBSCRIPTIONRELMAP,4,2         ; @SUBSCRIPTIONRELMAP
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_SUBREL_STATE_UNKNOWN,1,0       ; @SUBREL_STATE_UNKNOWN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subscription table %u in subscription %u does not exist"

	.comm	_Anum_pg_subscription_rel_srsubstate,4,2 ; @Anum_pg_subscription_rel_srsubstate
	.comm	_Anum_pg_subscription_rel_srsublsn,4,2 ; @Anum_pg_subscription_rel_srsublsn
.subsections_via_symbols
