	.file	"extr_mysqlnd_wireprotocol.c_mysqlnd_read_packet_header_and_body.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mysqlnd_read_packet_header_and_body"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"buf=%p size=%u"
.LC2:
	.string	"Can't read %s's header"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Packet buffer %u wasn't big enough %u, %u bytes will be unread"
	.section	.rodata.str1.1
.LC4:
	.string	"Empty '%s' packet body"
	.text
	.p2align 4
	.type	mysqlnd_read_packet_header_and_body, @function
mysqlnd_read_packet_header_and_body:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 120[rsp]
	mov	rcx, QWORD PTR 112[rsp]
	mov	QWORD PTR 16[rsp], r9
	mov	rax, QWORD PTR 104[rsp]
	mov	r15, QWORD PTR 96[rsp]
	mov	DWORD PTR 12[rsp], edi
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR [rsp], rax
	call	DBG_ENTER@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r15
	lea	rdi, .LC1[rip]
	call	DBG_INF_FMT@PLT
	mov	r8, r12
	mov	rcx, rbp
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, r14
	call	mysqlnd_read_header@PLT
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L7
.L2:
	mov	r11, QWORD PTR [rbx]
	cmp	r11, QWORD PTR [rsp]
	ja	.L8
.L3:
	mov	rax, QWORD PTR [r14]
	mov	r9, r12
	mov	r8, rbp
	mov	rcx, r11
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r14
	call	[QWORD PTR [rax]]
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L9
.L4:
	mov	eax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR packet_type_to_statistic_packet_count[rip]
	mov	rdi, rbp
	mov	r8d, 1
	mov	rsi, QWORD PTR packet_type_to_statistic_byte_count[rip]
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	rdx, QWORD PTR MYSQLND_HEADER_SIZE[rip]
	mov	esi, DWORD PTR [rsi+rax*4]
	add	rdx, QWORD PTR [rbx]
	call	MYSQLND_INC_CONN_STATISTIC_W_VALUE2@PLT
	mov	rdi, QWORD PTR PASS[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	DBG_RETURN@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rsp]
	mov	rcx, r11
	mov	rdx, r11
	xor	eax, eax
	lea	rdi, .LC3[rip]
	sub	rcx, rsi
	call	DBG_ERR_FMT@PLT
	mov	rdi, QWORD PTR FAIL[rip]
	call	DBG_RETURN@PLT
	mov	r11, QWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR CONN_QUIT_SENT[rip]
	call	SET_CONNECTION_STATE@PLT
	mov	ecx, DWORD PTR mysqlnd_server_gone[rip]
	mov	edx, DWORD PTR UNKNOWN_SQLSTATE[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR CR_SERVER_GONE_ERROR[rip]
	call	SET_CLIENT_ERROR@PLT
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DBG_ERR_FMT@PLT
	mov	rdi, QWORD PTR FAIL[rip]
	call	DBG_RETURN@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR CONN_QUIT_SENT[rip]
	call	SET_CONNECTION_STATE@PLT
	mov	ecx, DWORD PTR mysqlnd_server_gone[rip]
	mov	edx, DWORD PTR UNKNOWN_SQLSTATE[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR CR_SERVER_GONE_ERROR[rip]
	call	SET_CLIENT_ERROR@PLT
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DBG_ERR_FMT@PLT
	mov	rdi, QWORD PTR FAIL[rip]
	call	DBG_RETURN@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mysqlnd_read_packet_header_and_body, .-mysqlnd_read_packet_header_and_body
	.comm	packet_type_to_statistic_packet_count,8,8
	.comm	packet_type_to_statistic_byte_count,8,8
	.comm	mysqlnd_server_gone,4,4
	.comm	UNKNOWN_SQLSTATE,4,4
	.comm	PASS,8,8
	.comm	MYSQLND_HEADER_SIZE,8,8
	.comm	FAIL,8,8
	.comm	CR_SERVER_GONE_ERROR,4,4
	.comm	CONN_QUIT_SENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mysqlnd_wireprotocol.c_mysqlnd_read_packet_header_and_body.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mysqlnd_read_packet_header_and_body\000"
	.align	2
.LC1:
	.ascii	"buf=%p size=%u\000"
	.align	2
.LC2:
	.ascii	"Can't read %s's header\000"
	.align	2
.LC3:
	.ascii	"Packet buffer %u wasn't big enough %u, %u bytes wil"
	.ascii	"l be unread\000"
	.align	2
.LC4:
	.ascii	"Empty '%s' packet body\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mysqlnd_read_packet_header_and_body, %function
mysqlnd_read_packet_header_and_body:
	@ args = 24, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r4, r0
	mov	r5, r3
	sub	sp, sp, #28
	ldr	r3, [sp, #68]
	ldr	fp, [sp, #72]
	str	r3, [sp, #16]
	ldr	r3, [sp, #80]
	ldr	r9, [sp, #76]
	str	r3, [sp, #20]
	ldr	r3, [sp, #84]
	ldr	r10, [sp, #64]
	ldr	r0, .L10
	str	r3, [sp, #12]
	bl	DBG_ENTER
	mov	r2, r9
	mov	r1, fp
	ldr	r0, .L10+4
	bl	DBG_INF_FMT
	mov	r3, r5
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	str	r10, [sp]
	bl	mysqlnd_read_header
	ldr	r8, .L10+8
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L7
.L2:
	ldr	r2, [r4]
	cmp	r2, r9
	bhi	.L8
.L3:
	ldr	r0, [r6]
	stm	sp, {r5, r10}
	mov	r3, r2
	mov	r1, r7
	mov	r2, fp
	ldr	r7, [r0]
	mov	r0, r6
	blx	r7
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L9
.L4:
	mov	ip, #1
	ldr	r3, .L10+12
	ldr	r1, .L10+16
	ldr	r2, .L10+20
	ldr	r0, [sp, #12]
	ldr	lr, [r4]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r1, [r1, r0, lsl #2]
	add	r2, lr, r2
	mov	r0, r5
	str	ip, [sp]
	bl	MYSQLND_INC_CONN_STATISTIC_W_VALUE2
	ldr	r3, .L10+24
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	DBG_RETURN
.L8:
	sub	r3, r2, r9
	mov	r1, r9
	ldr	r0, .L10+28
	bl	DBG_ERR_FMT
	ldr	r0, [r8]
	bl	DBG_RETURN
	ldr	r2, [r4]
	b	.L3
.L7:
	ldr	r3, .L10+32
	ldr	r0, [sp, #16]
	ldr	r1, [r3]
	bl	SET_CONNECTION_STATE
	ldr	r3, .L10+36
	ldr	r2, .L10+40
	ldr	r1, .L10+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r10
	ldr	r1, [r1]
	bl	SET_CLIENT_ERROR
	ldr	r1, [sp, #20]
	ldr	r0, .L10+48
	bl	DBG_ERR_FMT
	ldr	r0, [r8]
	bl	DBG_RETURN
	b	.L2
.L9:
	ldr	r3, .L10+32
	ldr	r0, [sp, #16]
	ldr	r1, [r3]
	bl	SET_CONNECTION_STATE
	ldr	r3, .L10+36
	ldr	r2, .L10+40
	ldr	r1, .L10+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r10
	ldr	r1, [r1]
	bl	SET_CLIENT_ERROR
	ldr	r1, [sp, #20]
	ldr	r0, .L10+52
	bl	DBG_ERR_FMT
	ldr	r0, [r8]
	bl	DBG_RETURN
	b	.L4
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	FAIL
	.word	packet_type_to_statistic_packet_count
	.word	packet_type_to_statistic_byte_count
	.word	MYSQLND_HEADER_SIZE
	.word	PASS
	.word	.LC3
	.word	CONN_QUIT_SENT
	.word	mysqlnd_server_gone
	.word	UNKNOWN_SQLSTATE
	.word	CR_SERVER_GONE_ERROR
	.word	.LC2
	.word	.LC4
	.size	mysqlnd_read_packet_header_and_body, .-mysqlnd_read_packet_header_and_body
	.comm	packet_type_to_statistic_packet_count,4,4
	.comm	packet_type_to_statistic_byte_count,4,4
	.comm	mysqlnd_server_gone,4,4
	.comm	UNKNOWN_SQLSTATE,4,4
	.comm	PASS,4,4
	.comm	MYSQLND_HEADER_SIZE,4,4
	.comm	FAIL,4,4
	.comm	CR_SERVER_GONE_ERROR,4,4
	.comm	CONN_QUIT_SENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
