	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function odbc_stmt_execute
_odbc_stmt_execute:                     ## @odbc_stmt_execute
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r12
	movl	$-1, -52(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	20(%r12), %edi
	callq	_SQLCloseCursor
LBB0_2:
	movl	20(%r12), %edi
	callq	_SQLExecute
	movl	%eax, %r13d
	movq	_SQL_NEED_DATA@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_16
## %bb.3:
	leaq	-48(%rbp), %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	20(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	callq	_SQLPutData
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	leaq	-48(%rbp), %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpl	(%r14), %r13d
	jne	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r12), %edi
	movq	%rbx, %rsi
	callq	_SQLParamData
	movl	%eax, %r13d
	cmpl	(%r14), %eax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %r15
	movl	(%rax), %edi
	callq	_Z_ISREF
	movq	-48(%rbp), %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %edi
	callq	_Z_REFVAL
	movq	%rax, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_RESOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_convert_to_string
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	leaq	-72(%rbp), %r8
	callq	_pdo_odbc_utf82ucs2
	cmpl	$131, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$132, %eax
	je	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$133, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	20(%r12), %edi
	movq	(%r12), %rsi
	movl	-72(%rbp), %edx
	jmp	LBB0_5
LBB0_16:
	cmpl	$130, %r13d
	je	LBB0_19
## %bb.17:
	cmpl	$129, %r13d
	je	LBB0_20
## %bb.18:
	cmpl	$128, %r13d
	jne	LBB0_22
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_pdo_odbc_stmt_error
LBB0_20:
	movl	20(%r12), %edi
	leaq	-52(%rbp), %rsi
	callq	_SQLRowCount
	movl	-52(%rbp), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movl	$1, %r15d
	cmpq	$0, 8(%rbx)
	jne	LBB0_27
## %bb.21:
	movl	20(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_SQLNumResultCols
	movq	-48(%rbp), %rdi
	movl	%edi, 4(%rbx)
	movl	$4, %esi
	callq	_ecalloc
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	jmp	LBB0_27
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	callq	_pdo_odbc_stmt_error
	jmp	LBB0_26
LBB0_23:
	movq	%rbx, %rsi
	callq	_php_stream_from_zval_no_verify
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str(%rip), %rdi
LBB0_25:
	callq	_pdo_odbc_stmt_error
	movl	20(%r12), %edi
	callq	_SQLCloseCursor
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQL_NEED_DATA,4,2              ## @SQL_NEED_DATA
	.comm	_IS_RESOURCE,8,3                ## @IS_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error converting input string"

L_.str.1:                               ## @.str.1
	.asciz	"input LOB is no longer a stream"

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

	.no_dead_strip	_odbc_stmt_execute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function odbc_stmt_execute
_odbc_stmt_execute:                     ; @odbc_stmt_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	mov	w8, #-1
	str	w8, [sp, #28]
	ldp	x8, x24, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x24, #20]
	bl	_SQLCloseCursor
LBB0_2:
	ldr	w0, [x24, #20]
	bl	_SQLExecute
	mov	x20, x0
Lloh0:
	adrp	x25, _SQL_NEED_DATA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQL_NEED_DATA@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.3:
Lloh2:
	adrp	x26, _IS_RESOURCE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IS_RESOURCE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x24, #20]
	mov	x0, x21
	bl	_Z_STRVAL_P
	mov	x23, x0
	mov	x0, x21
	bl	_Z_STRLEN_P
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_SQLPutData
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	w20, w8
	b.ne	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, #20]
	add	x1, sp, #16
	bl	_SQLParamData
	mov	x20, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]
	ldr	x22, [x8, #8]
	ldr	w0, [x8]
	bl	_Z_ISREF
	ldr	x21, [sp, #16]
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21]
	bl	_Z_REFVAL
	mov	x21, x0
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_Z_TYPE_P
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_convert_to_string
	ldr	w22, [x22]
	mov	x0, x21
	bl	_Z_STRVAL_P
	mov	x23, x0
	mov	x0, x21
	bl	_Z_STRLEN_P
	mov	x3, x0
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_pdo_odbc_utf82ucs2
	cmp	w0, #131
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #132
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #133
	b.ne	LBB0_6
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24, #20]
	ldr	x1, [x24]
	ldr	w2, [sp, #12]
	b	LBB0_5
LBB0_15:
	cmp	w20, #130
	b.eq	LBB0_18
; %bb.16:
	cmp	w20, #129
	b.eq	LBB0_19
; %bb.17:
	cmp	w20, #128
	b.ne	LBB0_22
LBB0_18:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pdo_odbc_stmt_error
LBB0_19:
	ldr	w0, [x24, #20]
	add	x1, sp, #28
	bl	_SQLRowCount
	ldr	w8, [sp, #28]
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	w0, [x24, #20]
	add	x1, sp, #16
	bl	_SQLNumResultCols
	ldr	x0, [sp, #16]
	str	w0, [x19, #4]
	mov	w1, #4
	bl	_ecalloc
	str	w0, [x24, #16]
	str	xzr, [x24, #8]
LBB0_21:
	mov	w0, #1
	b	LBB0_27
LBB0_22:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pdo_odbc_stmt_error
	b	LBB0_26
LBB0_23:
	mov	x1, x21
	bl	_php_stream_from_zval_no_verify
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_25:
	bl	_pdo_odbc_stmt_error
	ldr	w0, [x24, #20]
	bl	_SQLCloseCursor
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQL_NEED_DATA,4,2              ; @SQL_NEED_DATA
	.comm	_IS_RESOURCE,8,3                ; @IS_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error converting input string"

l_.str.1:                               ; @.str.1
	.asciz	"input LOB is no longer a stream"

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

	.no_dead_strip	_odbc_stmt_execute
.subsections_via_symbols
