	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_query_read_result_set_header ## -- Begin function mysqlnd_query_read_result_set_header
	.p2align	4, 0x90
_mysqlnd_query_read_result_set_header:  ## @mysqlnd_query_read_result_set_header
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movl	16(%r14), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
LBB0_3:
	xorl	%r14d, %r14d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_INF_FMT
	movq	24(%r15), %rax
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	8(%r15), %edi
	callq	_UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR
	movq	_FAIL@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_PACKET_READ
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.6:
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movq	_CR_SERVER_GONE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_44
## %bb.7:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_44
LBB0_8:
	cmpq	$0, -64(%rbp)
	je	LBB0_10
## %bb.9:
	movl	8(%r15), %ebx
	movl	%ebx, %edi
	callq	_UPSERT_STATUS_GET_SERVER_STATUS
	movq	_SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_UPSERT_STATUS_SET_SERVER_STATUS
	movq	32(%r15), %rdi
	movl	-72(%rbp), %esi
	movq	-64(%rbp), %rdx
	callq	_COPY_CLIENT_ERROR
	movq	(%r12), %r13
	movl	-72(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_DBG_ERR_FMT
	addq	$48, %r15
	movq	_CONN_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SET_CONNECTION_STATE
	jmp	LBB0_44
LBB0_10:
	movq	32(%r15), %rax
	movq	$0, (%rax)
	movl	-104(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	callq	_DBG_INF
	movq	_QUERY_LOAD_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movl	$0, (%r15)
	leaq	48(%r15), %r14
	movq	_CONN_SENDING_LOAD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SET_CONNECTION_STATE
	movl	-88(%rbp), %esi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mysqlnd_handle_local_infile
	movq	%rax, %r13
	movq	_PASS@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %esi
	movq	_TRUE@GOTPCREL(%rip), %rdi
	movq	_CONN_READY@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	(%rdi), %esi
	je	LBB0_14
## %bb.13:
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %rdx
LBB0_14:
	cmpq	(%rax), %r13
	cmoveq	%rcx, %rdx
	movl	(%rdx), %esi
	movq	%r14, %rdi
	callq	_SET_CONNECTION_STATE
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	callq	_DBG_INF
	movq	_QUERY_UPSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movl	-104(%rbp), %eax
	movl	%eax, (%r15)
	movl	8(%r15), %edi
	callq	_UPSERT_STATUS_RESET
	movl	8(%r15), %edi
	movl	-96(%rbp), %esi
	callq	_UPSERT_STATUS_SET_WARNINGS
	movl	8(%r15), %edi
	movl	-100(%rbp), %esi
	callq	_UPSERT_STATUS_SET_SERVER_STATUS
	movl	8(%r15), %edi
	movl	-80(%rbp), %esi
	callq	_UPSERT_STATUS_SET_AFFECTED_ROWS
	movl	8(%r15), %edi
	movl	-84(%rbp), %esi
	callq	_UPSERT_STATUS_SET_LAST_INSERT_ID
	movl	56(%r15), %esi
	movl	60(%r15), %edi
	movl	-92(%rbp), %ecx
	movl	-88(%rbp), %edx
	callq	_SET_NEW_MESSAGE
	movl	8(%r15), %edi
	callq	_UPSERT_STATUS_GET_SERVER_STATUS
	movq	_SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	48(%r15), %rdi
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:
	movq	_CONN_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_20:
	movq	_STAT_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.6(%rip), %rdi
	callq	_DBG_INF
	movl	56(%r15), %esi
	movl	60(%r15), %edi
	callq	_SET_EMPTY_MESSAGE
	movl	4(%r15), %edi
	movq	_STAT_RSET_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MYSQLND_INC_CONN_STATISTIC
	movl	8(%r15), %edi
	callq	_UPSERT_STATUS_RESET
	movl	8(%r15), %edi
	callq	_UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR
	movq	_QUERY_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	leaq	48(%r15), %rdi
	movq	_CONN_FETCHING_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_CONNECTION_STATE
	movl	-104(%rbp), %edi
	movl	%edi, (%r15)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	40(%r15), %rax
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, 16(%r15)
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_25
LBB0_17:
	movq	_CONN_NEXT_RESULT_PENDING@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	callq	_SET_CONNECTION_STATE
	movq	_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_15:
	movl	4(%r15), %edi
	movq	_STAT_NON_RSET_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MYSQLND_INC_CONN_STATISTIC
	jmp	LBB0_44
LBB0_22:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
## %bb.23:
	leaq	L_.str.7(%rip), %rdi
	callq	_DBG_INF
	movq	40(%r15), %rax
	movl	-104(%rbp), %edi
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	testq	%rbx, %rbx
	je	LBB0_25
LBB0_26:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	(%r12), %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	cmpq	%rax, %r13
	jne	LBB0_31
## %bb.27:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_30
## %bb.28:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_mnd_efree
	movq	$0, 16(%r15)
LBB0_30:
	leaq	L_.str.8(%rip), %rdi
	callq	_DBG_ERR
	jmp	LBB0_43
LBB0_31:
	movq	24(%r15), %rax
	leaq	-152(%rbp), %rdi
	callq	*(%rax)
	movq	(%r12), %r13
	movq	%r15, %rdi
	leaq	-152(%rbp), %rsi
	callq	_PACKET_READ
	cmpq	%rax, %r13
	jne	LBB0_35
## %bb.32:
	leaq	L_.str.9(%rip), %rdi
	callq	_DBG_ERR
	movq	%rbx, %rdi
	callq	*8(%rbx)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_34
## %bb.33:
	movq	$0, 16(%r15)
	jmp	LBB0_43
LBB0_25:
	movq	32(%r15), %rdi
	callq	_SET_OOM_ERROR
	movq	(%r12), %r13
	jmp	LBB0_43
LBB0_35:
	movq	%rax, %r12
	movl	-148(%rbp), %edx
	movl	-144(%rbp), %esi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_INF_FMT
	movl	8(%r15), %edi
	movl	-144(%rbp), %esi
	callq	_UPSERT_STATUS_SET_WARNINGS
	movl	8(%r15), %edi
	movl	-148(%rbp), %esi
	callq	_UPSERT_STATUS_SET_SERVER_STATUS
	movl	-148(%rbp), %eax
	movq	_SERVER_QUERY_NO_GOOD_INDEX_USED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.36:
	movq	_STAT_BAD_INDEX_USED@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_34:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MYSQLND_STMT_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_43
LBB0_37:
	movq	_SERVER_QUERY_NO_INDEX_USED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_39
## %bb.38:
	movq	_STAT_NO_INDEX_USED@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_39:
	movq	_SERVER_QUERY_WAS_SLOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_42
## %bb.40:
	movq	_STAT_QUERY_WAS_SLOW@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %esi
LBB0_42:
	movl	4(%r15), %edi
	callq	_MYSQLND_INC_CONN_STATISTIC
	movq	%r12, %r13
LBB0_43:
	leaq	-152(%rbp), %rdi
	callq	_PACKET_FREE
LBB0_44:
	leaq	-104(%rbp), %rdi
	callq	_PACKET_FREE
	movq	_PASS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.12(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_DBG_INF
	movq	%r13, %rdi
	callq	_DBG_RETURN
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mysqlnd_query_read_result_set_header"

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

	.comm	_FAIL,8,3                       ## @FAIL
	.comm	_CR_SERVER_GONE_ERROR,8,3       ## @CR_SERVER_GONE_ERROR
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Error reading result set's header"

	.comm	_SERVER_MORE_RESULTS_EXISTS,4,2 ## @SERVER_MORE_RESULTS_EXISTS
L_.str.3:                               ## @.str.3
	.asciz	"error=%s"

	.comm	_CONN_READY,4,2                 ## @CONN_READY
L_.str.4:                               ## @.str.4
	.asciz	"LOAD DATA"

	.comm	_QUERY_LOAD_LOCAL,4,2           ## @QUERY_LOAD_LOCAL
	.comm	_CONN_SENDING_LOAD_DATA,4,2     ## @CONN_SENDING_LOAD_DATA
	.comm	_PASS,8,3                       ## @PASS
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CONN_QUIT_SENT,4,2             ## @CONN_QUIT_SENT
	.comm	_STAT_NON_RSET_QUERY,4,2        ## @STAT_NON_RSET_QUERY
L_.str.5:                               ## @.str.5
	.asciz	"UPSERT"

	.comm	_QUERY_UPSERT,4,2               ## @QUERY_UPSERT
	.comm	_CONN_NEXT_RESULT_PENDING,4,2   ## @CONN_NEXT_RESULT_PENDING
	.comm	_STAT_LAST,4,2                  ## @STAT_LAST
L_.str.6:                               ## @.str.6
	.asciz	"Result set pending"

	.comm	_STAT_RSET_QUERY,4,2            ## @STAT_RSET_QUERY
	.comm	_QUERY_SELECT,4,2               ## @QUERY_SELECT
	.comm	_CONN_FETCHING_DATA,4,2         ## @CONN_FETCHING_DATA
L_.str.7:                               ## @.str.7
	.asciz	"This is 'SHOW'/'EXPLAIN'-like query."

L_.str.8:                               ## @.str.8
	.asciz	"Error occurred while reading metadata"

L_.str.9:                               ## @.str.9
	.asciz	"Error occurred while reading the EOF packet"

	.comm	_MYSQLND_STMT_INITTED,4,2       ## @MYSQLND_STMT_INITTED
L_.str.10:                              ## @.str.10
	.asciz	"warnings=%u server_status=%u"

	.comm	_SERVER_QUERY_NO_GOOD_INDEX_USED,4,2 ## @SERVER_QUERY_NO_GOOD_INDEX_USED
	.comm	_STAT_BAD_INDEX_USED,4,2        ## @STAT_BAD_INDEX_USED
	.comm	_SERVER_QUERY_NO_INDEX_USED,4,2 ## @SERVER_QUERY_NO_INDEX_USED
	.comm	_STAT_NO_INDEX_USED,4,2         ## @STAT_NO_INDEX_USED
	.comm	_SERVER_QUERY_WAS_SLOW,4,2      ## @SERVER_QUERY_WAS_SLOW
	.comm	_STAT_QUERY_WAS_SLOW,4,2        ## @STAT_QUERY_WAS_SLOW
L_.str.11:                              ## @.str.11
	.asciz	"PASS"

L_.str.12:                              ## @.str.12
	.asciz	"FAIL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_query_read_result_set_header ; -- Begin function mysqlnd_query_read_result_set_header
	.p2align	2
_mysqlnd_query_read_result_set_header:  ; @mysqlnd_query_read_result_set_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x20, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
	cbz	x20, LBB0_4
; %bb.2:
	mov	w25, #0
	ldr	w1, [x20, #16]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
	mov	x20, #0
LBB0_4:
	mov	w1, #0
	mov	w25, #1
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG_INF_FMT
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	add	x0, sp, #64
	blr	x8
	ldr	w0, [x19, #8]
	bl	_UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR
Lloh6:
	adrp	x22, _FAIL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FAIL@GOTPAGEOFF]
	ldr	x21, [x22]
	add	x1, sp, #64
	mov	x0, x19
	bl	_PACKET_READ
Lloh8:
	adrp	x24, _PASS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PASS@GOTPAGEOFF]
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _CR_SERVER_GONE_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CR_SERVER_GONE_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_36
; %bb.7:
Lloh13:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_36
LBB0_8:
	ldr	x8, [sp, #104]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w20, [x19, #8]
	mov	x0, x20
	bl	_UPSERT_STATUS_GET_SERVER_STATUS
Lloh18:
	adrp	x8, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_UPSERT_STATUS_SET_SERVER_STATUS
	ldr	x0, [x19, #32]
	ldp	x1, x2, [sp, #96]
	bl	_COPY_CLIENT_ERROR
	ldr	x21, [x22]
	ldr	w1, [sp, #96]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG_ERR_FMT
	add	x0, x19, #48
Lloh23:
	adrp	x8, _CONN_READY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CONN_READY@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_SET_CONNECTION_STATE
	b	LBB0_36
LBB0_10:
	ldr	x8, [x19, #32]
	str	xzr, [x8]
	ldr	w8, [sp, #64]
	cbz	w8, LBB0_13
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.12:
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG_INF
Lloh28:
	adrp	x8, _QUERY_LOAD_LOCAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _QUERY_LOAD_LOCAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	str	wzr, [x19]
	add	x20, x19, #48
Lloh31:
	adrp	x8, _CONN_SENDING_LOAD_DATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CONN_SENDING_LOAD_DATA@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SET_CONNECTION_STATE
	ldr	w1, [sp, #80]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mysqlnd_handle_local_infile
	mov	x21, x0
	ldr	x8, [x24]
	ldr	w9, [sp, #12]
Lloh34:
	adrp	x10, _TRUE@GOTPAGE
Lloh35:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	cmp	w9, w10
	ccmp	x0, x8, #4, ne
Lloh37:
	adrp	x8, _CONN_READY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CONN_READY@GOTPAGEOFF]
Lloh39:
	adrp	x9, _CONN_QUIT_SENT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CONN_QUIT_SENT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SET_CONNECTION_STATE
	b	LBB0_14
LBB0_13:
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG_INF
Lloh43:
	adrp	x8, _QUERY_UPSERT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _QUERY_UPSERT@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	ldr	w8, [sp, #64]
	str	w8, [x19]
	ldr	w0, [x19, #8]
	bl	_UPSERT_STATUS_RESET
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #72]
	bl	_UPSERT_STATUS_SET_WARNINGS
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #68]
	bl	_UPSERT_STATUS_SET_SERVER_STATUS
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #88]
	bl	_UPSERT_STATUS_SET_AFFECTED_ROWS
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #84]
	bl	_UPSERT_STATUS_SET_LAST_INSERT_ID
	ldp	w1, w0, [x19, #56]
	ldp	w3, w2, [sp, #76]
	bl	_SET_NEW_MESSAGE
	ldr	w0, [x19, #8]
	bl	_UPSERT_STATUS_GET_SERVER_STATUS
Lloh46:
	adrp	x8, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x8]
Lloh49:
	adrp	x10, _CONN_READY@GOTPAGE
Lloh50:
	ldr	x10, [x10, _CONN_READY@GOTPAGEOFF]
	add	x8, x19, #48
Lloh51:
	adrp	x11, _CONN_NEXT_RESULT_PENDING@GOTPAGE
Lloh52:
	ldr	x11, [x11, _CONN_NEXT_RESULT_PENDING@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
	ldr	w1, [x9]
	mov	x0, x8
	bl	_SET_CONNECTION_STATE
	ldr	x21, [x24]
LBB0_14:
	ldr	w0, [x19, #4]
Lloh53:
	adrp	x8, _STAT_NON_RSET_QUERY@GOTPAGE
Lloh54:
	ldr	x8, [x8, _STAT_NON_RSET_QUERY@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_MYSQLND_INC_CONN_STATISTIC
	b	LBB0_36
LBB0_15:
Lloh56:
	adrp	x8, _STAT_LAST@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STAT_LAST@GOTPAGEOFF]
Lloh58:
	ldr	w26, [x8]
Lloh59:
	adrp	x0, l_.str.6@PAGE
Lloh60:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DBG_INF
	ldp	w1, w0, [x19, #56]
	bl	_SET_EMPTY_MESSAGE
	ldr	w0, [x19, #4]
Lloh61:
	adrp	x8, _STAT_RSET_QUERY@GOTPAGE
Lloh62:
	ldr	x8, [x8, _STAT_RSET_QUERY@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	bl	_MYSQLND_INC_CONN_STATISTIC
	ldr	w0, [x19, #8]
	bl	_UPSERT_STATUS_RESET
	ldr	w0, [x19, #8]
	bl	_UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR
Lloh64:
	adrp	x8, _QUERY_SELECT@GOTPAGE
Lloh65:
	ldr	x8, [x8, _QUERY_SELECT@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	add	x0, x19, #48
Lloh67:
	adrp	x8, _CONN_FETCHING_DATA@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CONN_FETCHING_DATA@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	bl	_SET_CONNECTION_STATE
	ldr	w0, [sp, #64]
	str	w0, [x19]
	cbz	w25, LBB0_17
; %bb.16:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	blr	x8
	mov	x23, x0
	str	x0, [x19, #16]
	cbnz	x23, LBB0_19
	b	LBB0_27
LBB0_17:
	ldr	x23, [x20, #8]
	cbnz	x23, LBB0_19
; %bb.18:
Lloh70:
	adrp	x0, l_.str.7@PAGE
Lloh71:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DBG_INF
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	w0, [sp, #64]
	blr	x8
	mov	x23, x0
	str	x0, [x20, #8]
	cbz	x23, LBB0_27
LBB0_19:
	ldr	x21, [x22]
	ldr	x8, [x23]
	mov	x0, x23
	mov	x1, x19
	blr	x8
	cmp	x21, x0
	b.ne	LBB0_24
; %bb.20:
	cbz	w25, LBB0_23
; %bb.21:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_mnd_efree
	str	xzr, [x19, #16]
LBB0_23:
Lloh72:
	adrp	x0, l_.str.8@PAGE
Lloh73:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DBG_ERR
	b	LBB0_35
LBB0_24:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x0, sp, #16
	blr	x8
	ldr	x21, [x22]
	add	x1, sp, #16
	mov	x0, x19
	bl	_PACKET_READ
	cmp	x21, x0
	b.ne	LBB0_28
; %bb.25:
Lloh74:
	adrp	x0, l_.str.9@PAGE
Lloh75:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DBG_ERR
	ldr	x8, [x23, #8]
	mov	x0, x23
	blr	x8
	cbz	w25, LBB0_30
; %bb.26:
	str	xzr, [x19, #16]
	b	LBB0_35
LBB0_27:
	ldr	x0, [x19, #32]
	bl	_SET_OOM_ERROR
	ldr	x21, [x22]
	b	LBB0_35
LBB0_28:
	mov	x22, x0
	ldp	w8, w1, [sp, #20]
	str	x8, [sp]
Lloh76:
	adrp	x0, l_.str.10@PAGE
Lloh77:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DBG_INF_FMT
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #24]
	bl	_UPSERT_STATUS_SET_WARNINGS
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #20]
	bl	_UPSERT_STATUS_SET_SERVER_STATUS
	ldr	w8, [sp, #20]
Lloh78:
	adrp	x9, _SERVER_QUERY_NO_GOOD_INDEX_USED@GOTPAGE
Lloh79:
	ldr	x9, [x9, _SERVER_QUERY_NO_GOOD_INDEX_USED@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.29:
Lloh81:
	adrp	x8, _STAT_BAD_INDEX_USED@GOTPAGE
Lloh82:
	ldr	x8, [x8, _STAT_BAD_INDEX_USED@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	b	LBB0_34
LBB0_30:
	str	xzr, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh84:
	adrp	x8, _MYSQLND_STMT_INITTED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MYSQLND_STMT_INITTED@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_35
LBB0_31:
Lloh87:
	adrp	x9, _SERVER_QUERY_NO_INDEX_USED@GOTPAGE
Lloh88:
	ldr	x9, [x9, _SERVER_QUERY_NO_INDEX_USED@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.32:
Lloh90:
	adrp	x8, _STAT_NO_INDEX_USED@GOTPAGE
Lloh91:
	ldr	x8, [x8, _STAT_NO_INDEX_USED@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	b	LBB0_34
LBB0_33:
Lloh93:
	adrp	x9, _SERVER_QUERY_WAS_SLOW@GOTPAGE
Lloh94:
	ldr	x9, [x9, _SERVER_QUERY_WAS_SLOW@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
Lloh96:
	adrp	x10, _STAT_QUERY_WAS_SLOW@GOTPAGE
Lloh97:
	ldr	x10, [x10, _STAT_QUERY_WAS_SLOW@GOTPAGEOFF]
Lloh98:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w1, w26, w10, eq
LBB0_34:
	ldr	w0, [x19, #4]
	bl	_MYSQLND_INC_CONN_STATISTIC
	mov	x21, x22
LBB0_35:
	add	x0, sp, #16
	bl	_PACKET_FREE
LBB0_36:
	add	x0, sp, #64
	bl	_PACKET_FREE
	ldr	x8, [x24]
Lloh99:
	adrp	x9, l_.str.12@PAGE
Lloh100:
	add	x9, x9, l_.str.12@PAGEOFF
Lloh101:
	adrp	x10, l_.str.11@PAGE
Lloh102:
	add	x10, x10, l_.str.11@PAGEOFF
	cmp	x21, x8
	csel	x0, x10, x9, eq
	bl	_DBG_INF
	mov	x0, x21
	bl	_DBG_RETURN
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh99, Lloh100
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysqlnd_query_read_result_set_header"

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

	.comm	_FAIL,8,3                       ; @FAIL
	.comm	_CR_SERVER_GONE_ERROR,8,3       ; @CR_SERVER_GONE_ERROR
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Error reading result set's header"

	.comm	_SERVER_MORE_RESULTS_EXISTS,4,2 ; @SERVER_MORE_RESULTS_EXISTS
l_.str.3:                               ; @.str.3
	.asciz	"error=%s"

	.comm	_CONN_READY,4,2                 ; @CONN_READY
l_.str.4:                               ; @.str.4
	.asciz	"LOAD DATA"

	.comm	_QUERY_LOAD_LOCAL,4,2           ; @QUERY_LOAD_LOCAL
	.comm	_CONN_SENDING_LOAD_DATA,4,2     ; @CONN_SENDING_LOAD_DATA
	.comm	_PASS,8,3                       ; @PASS
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CONN_QUIT_SENT,4,2             ; @CONN_QUIT_SENT
	.comm	_STAT_NON_RSET_QUERY,4,2        ; @STAT_NON_RSET_QUERY
l_.str.5:                               ; @.str.5
	.asciz	"UPSERT"

	.comm	_QUERY_UPSERT,4,2               ; @QUERY_UPSERT
	.comm	_CONN_NEXT_RESULT_PENDING,4,2   ; @CONN_NEXT_RESULT_PENDING
	.comm	_STAT_LAST,4,2                  ; @STAT_LAST
l_.str.6:                               ; @.str.6
	.asciz	"Result set pending"

	.comm	_STAT_RSET_QUERY,4,2            ; @STAT_RSET_QUERY
	.comm	_QUERY_SELECT,4,2               ; @QUERY_SELECT
	.comm	_CONN_FETCHING_DATA,4,2         ; @CONN_FETCHING_DATA
l_.str.7:                               ; @.str.7
	.asciz	"This is 'SHOW'/'EXPLAIN'-like query."

l_.str.8:                               ; @.str.8
	.asciz	"Error occurred while reading metadata"

l_.str.9:                               ; @.str.9
	.asciz	"Error occurred while reading the EOF packet"

	.comm	_MYSQLND_STMT_INITTED,4,2       ; @MYSQLND_STMT_INITTED
l_.str.10:                              ; @.str.10
	.asciz	"warnings=%u server_status=%u"

	.comm	_SERVER_QUERY_NO_GOOD_INDEX_USED,4,2 ; @SERVER_QUERY_NO_GOOD_INDEX_USED
	.comm	_STAT_BAD_INDEX_USED,4,2        ; @STAT_BAD_INDEX_USED
	.comm	_SERVER_QUERY_NO_INDEX_USED,4,2 ; @SERVER_QUERY_NO_INDEX_USED
	.comm	_STAT_NO_INDEX_USED,4,2         ; @STAT_NO_INDEX_USED
	.comm	_SERVER_QUERY_WAS_SLOW,4,2      ; @SERVER_QUERY_WAS_SLOW
	.comm	_STAT_QUERY_WAS_SLOW,4,2        ; @STAT_QUERY_WAS_SLOW
l_.str.11:                              ; @.str.11
	.asciz	"PASS"

l_.str.12:                              ; @.str.12
	.asciz	"FAIL"

.subsections_via_symbols
