	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_stmt_fetch_row_buffered ## -- Begin function mysqlnd_stmt_fetch_row_buffered
	.p2align	4, 0x90
_mysqlnd_stmt_fetch_row_buffered:       ## @mysqlnd_stmt_fetch_row_buffered
	.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	%rcx, %r14
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	24(%r15), %r12
	movl	(%r12), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %r13d
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DBG_INF_FMT
	movq	8(%r15), %rdx
	movq	(%rdx), %r13
	movq	_MYSQLND_BUFFERED_TYPE_ZVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_30
## %bb.6:
	testq	%r13, %r13
	je	LBB0_28
## %bb.7:
	movq	8(%rdx), %rax
	movq	%r13, %rcx
	subq	%rax, %rcx
	sarq	$2, %rcx
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cmpq	%rax, %rcx
	jge	LBB0_28
## %bb.8:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_27
## %bb.9:
	movl	(%r13), %edi
	callq	_Z_ISUNDEF
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	subq	8(%rcx), %rax
	sarq	$2, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_11
## %bb.12:
	cqto
	idivq	-48(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_13
LBB0_28:
	movq	$0, (%rdx)
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_29
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	-48(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
	shlq	$2, %rax
	movq	8(%r15), %rbx
	movq	16(%r15), %rsi
	addq	16(%rbx), %rax
	movl	(%r12), %edx
	movq	8(%r12), %rcx
	movq	8(%rsi), %rdi
	movl	(%rdi), %r8d
	movl	(%rsi), %r9d
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	*24(%rbx)
	movq	_PASS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DBG_RETURN
LBB0_15:
	movq	8(%r15), %rax
	incl	12(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_22
## %bb.16:
	cmpl	$0, (%r15)
	je	LBB0_22
## %bb.17:
	xorl	%ebx, %ebx
	movq	_IS_STRING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_Z_TYPE
	cmpq	(%r14), %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_Z_STRLEN
	movq	8(%r12), %rcx
	cmpq	%rax, (%rcx,%rbx,8)
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_21
LBB0_22:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:
	movl	$8, %r14d
	movq	_TRUE@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	addq	$4, %r13
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jae	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r12
	movq	-8(%r12,%r14), %rcx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	addq	%r14, %r12
	movl	(%r13), %edi
	movq	%rdx, %r15
	callq	_Z_TYPE
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DBG_INF_FMT
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZEND_TRY_ASSIGN_COPY_EX
	movq	%r15, %rdx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
	jmp	LBB0_26
LBB0_27:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$2, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MYSQLND_INC_GLOBAL_STATISTIC
	leaq	L_.str.3(%rip), %rdi
LBB0_29:
	callq	_DBG_INF
LBB0_30:
	leaq	L_.str.5(%rip), %rdi
	callq	_DBG_INF
	movq	_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG_RETURN                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mysqlnd_stmt_fetch_row_buffered"

	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"stmt=%lu"

	.comm	_MYSQLND_BUFFERED_TYPE_ZVAL,8,3 ## @MYSQLND_BUFFERED_TYPE_ZVAL
	.comm	_PASS,8,3                       ## @PASS
	.comm	_FAIL,8,3                       ## @FAIL
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_TRUE,8,3                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"i=%u type=%u"

	.comm	_STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF,4,2 ## @STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF
L_.str.3:                               ## @.str.3
	.asciz	"row fetched"

L_.str.4:                               ## @.str.4
	.asciz	"no more data"

	.comm	_MYSQLND_BUFFERED_TYPE_C,8,3    ## @MYSQLND_BUFFERED_TYPE_C
L_.str.5:                               ## @.str.5
	.asciz	"PASS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_stmt_fetch_row_buffered ; -- Begin function mysqlnd_stmt_fetch_row_buffered
	.p2align	2
_mysqlnd_stmt_fetch_row_buffered:       ; @mysqlnd_stmt_fetch_row_buffered
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x25, [x1]
	b	LBB0_3
LBB0_2:
	mov	x25, #0
LBB0_3:
	ldr	x22, [x20, #24]
	ldr	w26, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	cbz	x25, LBB0_5
; %bb.4:
	ldr	w1, [x25]
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG_INF_FMT
	ldr	x28, [x20, #8]
	ldr	x21, [x28]
Lloh7:
	adrp	x8, _MYSQLND_BUFFERED_TYPE_ZVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MYSQLND_BUFFERED_TYPE_ZVAL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x23, _PASS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _PASS@GOTPAGEOFF]
	cmp	x21, x8
	b.ne	LBB0_28
; %bb.7:
	cbz	x21, LBB0_20
; %bb.8:
	ldr	x8, [x28, #8]
	sub	x9, x21, x8
	mul	w8, w26, w8
	cmp	x8, x9, asr #2
	b.le	LBB0_20
; %bb.9:
	ldr	x8, [x25, #8]
Lloh12:
	adrp	x12, _TRUE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _TRUE@GOTPAGEOFF]
	cbz	x8, LBB0_26
; %bb.10:
	ldr	w0, [x21]
	bl	_Z_ISUNDEF
	cbz	x0, LBB0_21
; %bb.11:
	ldp	x8, x9, [x28]
	sub	x8, x8, x9
	asr	x8, x8, #2
	sdiv	x8, x8, x26
	ldp	x9, x10, [x20, #8]
	ldp	x9, x11, [x9, #16]
	add	x0, x9, x8, lsl #2
	ldr	w2, [x22]
	ldr	x3, [x22, #8]
	ldr	x8, [x10, #8]
	ldr	w4, [x8]
	ldr	w5, [x10]
	mov	x1, x21
	blr	x11
Lloh14:
	adrp	x8, _PASS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PASS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _FAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_DBG_RETURN
LBB0_13:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_21
; %bb.14:
	ldr	w8, [x20]
	cbz	w8, LBB0_21
; %bb.15:
	mov	x23, #0
Lloh20:
	adrp	x24, _IS_STRING@GOTPAGE
Lloh21:
	ldr	x24, [x24, _IS_STRING@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.hs	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x23, lsl #2]
	bl	_Z_TYPE
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x21, x23, lsl #2]
	bl	_Z_STRLEN
	ldr	x8, [x22, #8]
	ldr	x9, [x8, x23, lsl #3]
	cmp	x9, x0
	b.ge	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x0, [x8, x23, lsl #3]
	b	LBB0_16
LBB0_20:
	str	xzr, [x28]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_21:
	ldr	w8, [x20]
Lloh24:
	adrp	x12, _TRUE@GOTPAGE
Lloh25:
	ldr	x12, [x12, _TRUE@GOTPAGEOFF]
	cbz	w8, LBB0_26
; %bb.22:
	mov	x27, #0
	mov	x22, #0
Lloh26:
	adrp	x23, l_.str.2@PAGE
Lloh27:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, #1
	add	x21, x21, #4
	add	x27, x27, #16
	cmp	x22, w8, uxtw
	b.hs	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	x10, [x9, x27]
	ldr	x11, [x12]
	cmp	x10, x11
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x8, x9, x27
	add	x24, x8, #8
	ldr	w0, [x21]
	bl	_Z_TYPE
	str	x0, [sp]
	mov	x0, x23
	mov	x1, x22
	bl	_DBG_INF_FMT
	mov	x0, x24
	mov	x1, x21
	mov	w2, #0
	bl	_ZEND_TRY_ASSIGN_COPY_EX
Lloh28:
	adrp	x12, _TRUE@GOTPAGE
Lloh29:
	ldr	x12, [x12, _TRUE@GOTPAGEOFF]
	ldr	w8, [x20]
	b	LBB0_23
LBB0_26:
	ldr	x8, [x28]
	add	x8, x8, x26, lsl #2
	str	x8, [x28]
	ldr	x8, [x12]
	str	x8, [x19]
Lloh30:
	adrp	x8, _STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_MYSQLND_INC_GLOBAL_STATISTIC
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh35:
	adrp	x23, _PASS@GOTPAGE
Lloh36:
	ldr	x23, [x23, _PASS@GOTPAGEOFF]
LBB0_27:
	bl	_DBG_INF
LBB0_28:
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG_INF
	ldr	x0, [x23]
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DBG_RETURN
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysqlnd_stmt_fetch_row_buffered"

	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"stmt=%lu"

	.comm	_MYSQLND_BUFFERED_TYPE_ZVAL,8,3 ; @MYSQLND_BUFFERED_TYPE_ZVAL
	.comm	_PASS,8,3                       ; @PASS
	.comm	_FAIL,8,3                       ; @FAIL
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_TRUE,8,3                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"i=%u type=%u"

	.comm	_STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF,4,2 ; @STAT_ROWS_FETCHED_FROM_CLIENT_PS_BUF
l_.str.3:                               ; @.str.3
	.asciz	"row fetched"

l_.str.4:                               ; @.str.4
	.asciz	"no more data"

	.comm	_MYSQLND_BUFFERED_TYPE_C,8,3    ; @MYSQLND_BUFFERED_TYPE_C
l_.str.5:                               ; @.str.5
	.asciz	"PASS"

.subsections_via_symbols
