	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgsql_stmt_get_col
_pgsql_stmt_get_col:                    ## @pgsql_stmt_get_col
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	24(%r14), %edi
	xorl	%r13d, %r13d
	testl	%edi, %edi
	je	LBB0_17
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	16(%r14), %rsi
	decq	%rsi
	movl	%r12d, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movl	$1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	24(%r14), %edi
	movq	16(%r14), %rsi
	decq	%rsi
	movl	%r12d, %edx
	callq	_PQgetvalue
	movq	%rax, (%r15)
	movl	24(%r14), %edi
	movq	16(%r14), %rsi
	decq	%rsi
	movl	%r12d, %edx
	callq	_PQgetlength
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movslq	%r12d, %rax
	movl	(%r13,%rax,4), %ecx
	movl	$1, %r13d
	cmpl	$132, %ecx
	je	LBB0_8
## %bb.4:
	cmpl	$135, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	$133, %ecx
	jne	LBB0_17
## %bb.6:
	movq	8(%r14), %rcx
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rbx
	movl	8(%rcx,%rbx), %edi
	movq	(%r15), %rsi
	movq	%rdx, %r12
	callq	_ZEND_ATOL
	movq	8(%r14), %rax
	addq	%rbx, %rax
	addq	$8, %rax
	movq	%rax, (%r15)
	movq	$4, (%r12)
	jmp	LBB0_17
LBB0_8:
	movq	8(%r14), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	4(%rcx,%rax,4), %eax
	movq	_OIDOID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.9:
	movq	(%r15), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, %r12d
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_INV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_lo_open
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_pdo_pgsql_create_lob_stream
	movq	%rax, (%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
	jmp	LBB0_17
LBB0_7:
	movq	(%r15), %rcx
	xorl	%edi, %edi
	cmpb	$116, (%rcx)
	sete	%dil
	movq	8(%r14), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,4), %rsi
	movl	%edi, (%rcx,%rax,4)
	movq	%rsi, (%r15)
	movq	$4, (%rdx)
	jmp	LBB0_17
LBB0_11:
	movq	(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_PQunescapeBytea
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rbx
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rdi
	callq	_estrndup
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_PQfreemem
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_17
LBB0_15:
	movq	$0, (%r15)
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_13:
	movq	_TEMP_STREAM_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_php_stream_memory_open
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_PQfreemem
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_OIDOID,4,2                     ## @OIDOID
	.comm	_INV_READ,4,2                   ## @INV_READ
	.comm	_TEMP_STREAM_READONLY,4,2       ## @TEMP_STREAM_READONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_pgsql_stmt_get_col
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgsql_stmt_get_col
_pgsql_stmt_get_col:                    ; @pgsql_stmt_get_col
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x0
	ldr	x24, [x0, #16]
	ldr	w0, [x24, #24]
	cbz	w0, LBB0_14
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	ldr	x25, [x22, #8]
	ldr	x8, [x24, #16]
	sub	x1, x8, #1
	mov	x2, x23
	bl	_PQgetisnull
	cbz	x0, LBB0_4
; %bb.2:
	str	xzr, [x20]
LBB0_3:
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_14
LBB0_4:
	ldr	w0, [x24, #24]
	ldr	x8, [x24, #16]
	sub	x1, x8, #1
	mov	x2, x23
	bl	_PQgetvalue
	str	x0, [x20]
	ldr	w0, [x24, #24]
	ldr	x8, [x24, #16]
	sub	x1, x8, #1
	mov	x2, x23
	bl	_PQgetlength
	str	x0, [x19]
	sxtw	x8, w23
	ldr	w9, [x25, w23, sxtw #2]
	cmp	w9, #132
	b.eq	LBB0_8
; %bb.5:
	cmp	w9, #135
	b.eq	LBB0_11
; %bb.6:
	cmp	w9, #133
	b.ne	LBB0_13
; %bb.7:
	ldr	x9, [x24, #8]
	add	x8, x8, x8, lsl #1
	lsl	x21, x8, #2
	add	x8, x9, x21
	ldr	w0, [x8, #8]
	ldr	x1, [x20]
	bl	_ZEND_ATOL
	ldr	x8, [x24, #8]
	add	x8, x8, x21
	add	x8, x8, #8
	str	x8, [x20]
	b	LBB0_12
LBB0_8:
	ldr	x9, [x24, #8]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _OIDOID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OIDOID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.9:
	ldr	x0, [x20]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoul
	mov	x21, x0
	ldr	x8, [x24]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _INV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INV_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_lo_open
	tbnz	w0, #31, LBB0_18
; %bb.10:
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_pdo_pgsql_create_lob_stream
	str	x0, [x20]
	str	xzr, [x19]
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_14
LBB0_11:
	ldr	x9, [x20]
	ldrb	w9, [x9]
	cmp	w9, #116
	cset	w9, eq
	ldr	x10, [x24, #8]
	mov	w11, #12
	mul	x8, x8, x11
	add	x11, x10, x8
	str	w9, [x10, x8]
	str	x11, [x20]
LBB0_12:
	mov	w8, #4
	str	x8, [x19]
LBB0_13:
	mov	w0, #1
LBB0_14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	x0, [x20]
	add	x1, sp, #8
	bl	_PQunescapeBytea
	cbz	x0, LBB0_19
; %bb.16:
	mov	x22, x0
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_20
; %bb.17:
	mov	x0, x22
	bl	_estrndup
	str	x0, [x20]
	mov	x0, x22
	bl	_PQfreemem
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	w0, #1
	str	w0, [x21]
	b	LBB0_14
LBB0_18:
	mov	w0, #0
	str	xzr, [x20]
LBB0_19:
	str	xzr, [x19]
	b	LBB0_14
LBB0_20:
Lloh6:
	adrp	x8, _TEMP_STREAM_READONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEMP_STREAM_READONLY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_php_stream_memory_open
	str	x0, [x20]
	mov	x0, x22
	bl	_PQfreemem
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OIDOID,4,2                     ; @OIDOID
	.comm	_INV_READ,4,2                   ; @INV_READ
	.comm	_TEMP_STREAM_READONLY,4,2       ; @TEMP_STREAM_READONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_pgsql_stmt_get_col
.subsections_via_symbols
