	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function printtup_prepare_info
_printtup_prepare_info:                 ## @printtup_prepare_info
	.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	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rax
	movq	(%rax), %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_pfree
LBB0_2:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, 8(%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rcx)
	movl	%r15d, (%rcx)
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:
	leal	(,%r15,4), %eax
	leal	(%rax,%rax,4), %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 8(%rax)
	movl	%r15d, %eax
	leaq	(%rax,%rax,4), %rax
	leaq	-20(,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	testq	%r14, %r14
	je	LBB0_5
	.p2align	4, 0x90
LBB0_6:
	movl	(%r14,%r13,4), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_TupleDescAttr
	movl	%r15d, (%rbx,%r12)
	cmpl	$1, %r15d
	je	LBB0_10
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_TupleDescAttr
	movl	$0, (%rbx,%r12)
LBB0_8:
	movl	(%rax), %edi
	leaq	(%rbx,%r12), %rsi
	addq	$16, %rsi
	leaq	(%rbx,%r12), %rdx
	addq	$12, %rdx
	callq	_getTypeOutputInfo
	movl	16(%rbx,%r12), %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:
	movl	(%rax), %edi
	leaq	(%rbx,%r12), %rsi
	addq	$8, %rsi
	leaq	(%rbx,%r12), %rdx
	addq	$12, %rdx
	callq	_getTypeBinaryOutputInfo
	movl	8(%rbx,%r12), %edi
LBB0_9:
	leaq	(%rbx,%r12), %rsi
	addq	$4, %rsi
	callq	_fmgr_info
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	addq	$20, %r12
	incq	%r13
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_5
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported format code: %d"

	.no_dead_strip	_printtup_prepare_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function printtup_prepare_info
_printtup_prepare_info:                 ; @printtup_prepare_info
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x25, [x8]
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_pfree
LBB0_2:
	str	xzr, [x20, #8]
	str	w19, [x20, #16]
	str	w22, [x20]
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.3:
	add	w8, w22, w22, lsl #2
	lsl	w0, w8, #2
	bl	_palloc0
	mov	x23, x0
	mov	x26, #0
	mov	x21, #0
	str	x0, [x20, #8]
	mov	w8, #20
	mov	x9, #-20
	umaddl	x27, w22, w8, x9
Lloh0:
	adrp	x28, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	cbz	x25, LBB0_7
LBB0_4:
	ldr	w24, [x25, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_TupleDescAttr
	str	w24, [x23, x26]
	cmp	w24, #1
	b.eq	LBB0_9
; %bb.5:
	cbz	w24, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	ldr	w0, [x28]
	bl	_errcode
	mov	x0, x22
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	cmp	x27, x26
	b.ne	LBB0_11
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_TupleDescAttr
	str	wzr, [x23, x26]
LBB0_8:
	ldr	w0, [x0]
	add	x23, x23, x26
	add	x1, x23, #16
	add	x2, x23, #12
	bl	_getTypeOutputInfo
	ldr	w0, [x23, #16]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x0]
	add	x23, x23, x26
	add	x1, x23, #8
	add	x2, x23, #12
	bl	_getTypeBinaryOutputInfo
	ldr	w0, [x23, #8]
LBB0_10:
	add	x1, x23, #4
	bl	_fmgr_info
	cmp	x27, x26
	b.eq	LBB0_12
LBB0_11:
	ldr	x23, [x20, #8]
	add	x26, x26, #20
	add	x21, x21, #1
	cbnz	x25, LBB0_4
	b	LBB0_7
LBB0_12:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported format code: %d"

	.no_dead_strip	_printtup_prepare_info
.subsections_via_symbols
