	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdo_mysql_stmt_next_rowset
_pdo_mysql_stmt_next_rowset:            ## @pdo_mysql_stmt_next_rowset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	24(%rbx), %r15
	leaq	L_.str(%rip), %rdi
	callq	_PDO_DBG_ENTER
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_PDO_DBG_INF_FMT
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_mysql_num_fields
	movl	%eax, (%r14)
	movq	8(%rbx), %rdi
LBB0_3:
	callq	_mysql_stmt_free_result
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_mysql_free_result
	movq	$0, (%rbx)
LBB0_6:
	movl	(%r15), %edi
	callq	_mysql_more_results
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	callq	_PDO_DBG_RETURN
LBB0_8:
	movl	(%r15), %edi
	callq	_mysql_next_result
	movq	%r14, %rdi
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	callq	_pdo_mysql_error_stmt
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	callq	_pdo_mysql_fill_stmt_from_result
	movl	%eax, %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDO_DBG_RETURN                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdo_mysql_stmt_next_rowset"

L_.str.1:                               ## @.str.1
	.asciz	"stmt=%p"

	.comm	_FAIL,8,3                       ## @FAIL
	.no_dead_strip	_pdo_mysql_stmt_next_rowset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdo_mysql_stmt_next_rowset
_pdo_mysql_stmt_next_rowset:            ; @pdo_mysql_stmt_next_rowset
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	x20, [x21, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDO_DBG_ENTER
	ldr	x1, [x21, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PDO_DBG_INF_FMT
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_mysql_num_fields
	str	w0, [x19]
	ldr	x0, [x21, #8]
LBB0_3:
	bl	_mysql_stmt_free_result
LBB0_4:
	ldr	x0, [x21]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mysql_free_result
	str	xzr, [x21]
LBB0_6:
	ldr	w0, [x20]
	bl	_mysql_more_results
	cbnz	w0, LBB0_8
; %bb.7:
	bl	_PDO_DBG_RETURN
LBB0_8:
	ldr	w0, [x20]
	bl	_mysql_next_result
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_pdo_mysql_error_stmt
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_pdo_mysql_fill_stmt_from_result
LBB0_11:
	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
	b	_PDO_DBG_RETURN
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdo_mysql_stmt_next_rowset"

l_.str.1:                               ; @.str.1
	.asciz	"stmt=%p"

	.comm	_FAIL,8,3                       ; @FAIL
	.no_dead_strip	_pdo_mysql_stmt_next_rowset
.subsections_via_symbols
