	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domain_state_setup
_domain_state_setup:                    ## @domain_state_setup
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r14d
	movl	%edx, %edi
	movl	$40, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %rbx
	movq	_TYPECACHE_DOMAIN_BASE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_lookup_type_cache
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_TYPTYPE_DOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r14d, %edi
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	8(%r13), %eax
	movl	12(%r13), %edi
	movl	%eax, 32(%rbx)
	leaq	24(%rbx), %rsi
	leaq	28(%rbx), %rdx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	callq	_getTypeBinaryInputInfo
	jmp	LBB0_5
LBB0_4:
	callq	_getTypeInputInfo
LBB0_5:
	movl	24(%rbx), %edi
	leaq	20(%rbx), %rsi
	movl	%r15d, %edx
	callq	_fmgr_info_cxt
	movq	%rbx, %rsi
	addq	$16, %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_InitDomainConstraintRef
	movq	$0, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ## @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_TYPTYPE_DOMAIN,8,3             ## @TYPTYPE_DOMAIN
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type %s is not a domain"

	.no_dead_strip	_domain_state_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domain_state_setup
_domain_state_setup:                    ; @domain_state_setup
	.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, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #40
	bl	_MemoryContextAlloc
	mov	x21, x0
Lloh0:
	adrp	x8, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lookup_type_cache
	mov	x23, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _TYPTYPE_DOMAIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TYPTYPE_DOMAIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_format_type_be
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
	ldp	w8, w0, [x23, #8]
	str	w8, [x21, #32]
	add	x1, x21, #24
	add	x2, x21, #28
	cbz	w22, LBB0_4
; %bb.3:
	bl	_getTypeBinaryInputInfo
	b	LBB0_5
LBB0_4:
	bl	_getTypeInputInfo
LBB0_5:
	ldr	w0, [x21, #24]
	add	x1, x21, #20
	mov	x2, x19
	bl	_fmgr_info_cxt
	add	x1, x21, #16
	mov	x0, x20
	mov	x2, x19
	mov	w3, #1
	bl	_InitDomainConstraintRef
	str	xzr, [x21, #8]
	stp	w20, w19, [x21]
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ; @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_TYPTYPE_DOMAIN,8,3             ; @TYPTYPE_DOMAIN
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type %s is not a domain"

	.no_dead_strip	_domain_state_setup
.subsections_via_symbols
