	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_object_oid
_lookup_object_oid:                     ## @lookup_object_oid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r15
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_appendStringLiteralConn
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_strchr
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBuffer
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_appendStringLiteralConn
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
LBB0_4:
	movl	(%r15), %edi
	callq	_echo_hidden_command
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_PQexec
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movl	%eax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_minimal_error_message
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_PQclear
	jmp	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_destroyPQExpBuffer
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT "

	.comm	_pset,4,2                       ## @pset
L_.str.1:                               ## @.str.1
	.asciz	"::pg_catalog.%s::pg_catalog.oid"

L_.str.2:                               ## @.str.2
	.asciz	"regprocedure"

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

L_.str.4:                               ## @.str.4
	.asciz	"::pg_catalog.regclass::pg_catalog.oid"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.no_dead_strip	_lookup_object_oid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_object_oid
_lookup_object_oid:                     ; @lookup_object_oid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_createPQExpBuffer
	mov	x19, x0
	cmp	w22, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
Lloh2:
	adrp	x8, _pset@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_appendStringLiteralConn
	mov	x0, x21
	mov	w1, #40
	bl	_strchr
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x2, x9, x8, eq
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBuffer
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
Lloh13:
	adrp	x8, _pset@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_appendStringLiteralConn
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_4:
	ldr	w0, [x19]
	bl	_echo_hidden_command
	cbz	w0, LBB0_10
; %bb.5:
Lloh18:
	adrp	x8, _pset@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_PQexec
	mov	x21, x0
	bl	_PQresultStatus
Lloh21:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atooid
	str	w0, [x20]
	mov	w20, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_minimal_error_message
	mov	w20, #0
LBB0_9:
	mov	x0, x21
	bl	_PQclear
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_destroyPQExpBuffer
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT "

	.comm	_pset,4,2                       ; @pset
l_.str.1:                               ; @.str.1
	.asciz	"::pg_catalog.%s::pg_catalog.oid"

l_.str.2:                               ; @.str.2
	.asciz	"regprocedure"

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

l_.str.4:                               ; @.str.4
	.asciz	"::pg_catalog.regclass::pg_catalog.oid"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.no_dead_strip	_lookup_object_oid
.subsections_via_symbols
