	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getCasts                       ## -- Begin function getCasts
	.p2align	4, 0x90
_getCasts:                              ## @getCasts
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %rbx
	cmpl	$80400, (%r15)                  ## imm = 0x13A10
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovgeq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r15d
	movl	%eax, (%r14)
	leal	(,%r15,8), %eax
	leal	(%rax,%rax,8), %edi
	callq	_pg_malloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.1:
	movl	%r15d, %r14d
	xorl	%r15d, %r15d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_selectDumpableCast
	movq	_DUMP_COMPONENT_ACL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r13)
	incq	%r15
	addq	$72, %r13
	cmpq	%r15, %r14
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DO_CAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 8(%r13)
	movq	%r13, %rdi
	callq	_AssignDumpId
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 40(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 32(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 64(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	(%rax), %rax
	movq	%rax, 56(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	(%rax), %rax
	movq	%rax, 48(%r13)
	leaq	-48(%rbp), %rdi
	callq	_initPQExpBuffer
	movq	40(%r13), %rdi
	callq	_findTypeByOid
	movq	%rax, %r12
	movq	32(%r13), %rdi
	callq	_findTypeByOid
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_appendPQExpBuffer
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_destroyPQExpBuffer
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT tableoid, oid, castsource, casttarget, castfunc, castcontext, castmethod FROM pg_cast ORDER BY 3,4"

L_.str.1:                               ## @.str.1
	.asciz	"SELECT tableoid, oid, castsource, casttarget, castfunc, castcontext, CASE WHEN castfunc = 0 THEN 'b' ELSE 'f' END AS castmethod FROM pg_cast ORDER BY 3,4"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.2:                               ## @.str.2
	.asciz	"tableoid"

L_.str.3:                               ## @.str.3
	.asciz	"oid"

L_.str.4:                               ## @.str.4
	.asciz	"castsource"

L_.str.5:                               ## @.str.5
	.asciz	"casttarget"

L_.str.6:                               ## @.str.6
	.asciz	"castfunc"

L_.str.7:                               ## @.str.7
	.asciz	"castcontext"

L_.str.8:                               ## @.str.8
	.asciz	"castmethod"

	.comm	_DO_CAST,4,2                    ## @DO_CAST
L_.str.9:                               ## @.str.9
	.asciz	"%s %s"

	.comm	_DUMP_COMPONENT_ACL,4,2         ## @DUMP_COMPONENT_ACL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getCasts                       ; -- Begin function getCasts
	.p2align	2
_getCasts:                              ; @getCasts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x21, x0
	bl	_createPQExpBuffer
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	w9, [x21]
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	mov	w11, #14863
	movk	w11, #1, lsl #16
	cmp	w9, w11
	csel	x1, x10, x8, gt
	bl	_appendPQExpBufferStr
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	_ExecuteSqlQuery
	mov	x21, x0
	bl	_PQntuples
	mov	x20, x0
	str	w0, [x19]
	add	w8, w0, w0, lsl #3
	lsl	w0, w8, #3
	bl	_pg_malloc
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x25, x0
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x26, x0
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x27, x0
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x28, x0
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x19, #0
	mov	w24, w20
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #40]
	str	w8, [x20, #4]
	mov	x0, x20
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_selectDumpableCast
Lloh21:
	adrp	x8, _DUMP_COMPONENT_ACL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DUMP_COMPONENT_ACL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20], #72
	add	x19, x19, #1
	cmp	x24, x19
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh24:
	adrp	x8, _DO_CAST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DO_CAST@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x21
	mov	x1, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x20, #16]
	mov	x0, x21
	mov	x1, x19
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x20, #8]
	mov	x0, x20
	bl	_AssignDumpId
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x20, #40]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x20, #32]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x27
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x20, #64]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x28
	bl	_PQgetvalue
	ldr	x8, [x0]
	str	x8, [x20, #56]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_PQgetvalue
	ldr	x8, [x0]
	str	x8, [x20, #48]
	add	x0, sp, #40
	bl	_initPQExpBuffer
	ldr	x0, [x20, #40]
	bl	_findTypeByOid
	mov	x23, x0
	ldr	x0, [x20, #32]
	bl	_findTypeByOid
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x23]
	ldr	w3, [x0]
	add	x0, sp, #40
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_appendPQExpBuffer
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_PQclear
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_destroyPQExpBuffer
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT tableoid, oid, castsource, casttarget, castfunc, castcontext, castmethod FROM pg_cast ORDER BY 3,4"

l_.str.1:                               ; @.str.1
	.asciz	"SELECT tableoid, oid, castsource, casttarget, castfunc, castcontext, CASE WHEN castfunc = 0 THEN 'b' ELSE 'f' END AS castmethod FROM pg_cast ORDER BY 3,4"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.2:                               ; @.str.2
	.asciz	"tableoid"

l_.str.3:                               ; @.str.3
	.asciz	"oid"

l_.str.4:                               ; @.str.4
	.asciz	"castsource"

l_.str.5:                               ; @.str.5
	.asciz	"casttarget"

l_.str.6:                               ; @.str.6
	.asciz	"castfunc"

l_.str.7:                               ; @.str.7
	.asciz	"castcontext"

l_.str.8:                               ; @.str.8
	.asciz	"castmethod"

	.comm	_DO_CAST,4,2                    ; @DO_CAST
l_.str.9:                               ; @.str.9
	.asciz	"%s %s"

	.comm	_DUMP_COMPONENT_ACL,4,2         ; @DUMP_COMPONENT_ACL
.subsections_via_symbols
