	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mysqlnd_read_packet_header_and_body
_mysqlnd_read_packet_header_and_body:   ## @mysqlnd_read_packet_header_and_body
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	40(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r14
	movq	16(%rbp), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_DBG_INF_FMT
	movq	_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_mysqlnd_read_header
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_SET_CONNECTION_STATE
	movq	_CR_SERVER_GONE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UNKNOWN_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mysqlnd_server_gone@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SET_CLIENT_ERROR
	leaq	L_.str.2(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DBG_ERR_FMT
	movq	(%r13), %rdi
	callq	_DBG_RETURN
LBB0_2:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	%rcx, %rax
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	subq	%rsi, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_DBG_ERR_FMT
	movq	(%r13), %rdi
	callq	_DBG_RETURN
	movq	(%rbx), %rcx
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r13), %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	(%rdi), %rax
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %r8
	movq	%r12, %r9
	callq	*(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.5:
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_SET_CONNECTION_STATE
	movq	_CR_SERVER_GONE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UNKNOWN_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mysqlnd_server_gone@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SET_CLIENT_ERROR
	leaq	L_.str.4(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DBG_ERR_FMT
	movq	(%r13), %rdi
	callq	_DBG_RETURN
LBB0_6:
	movq	_packet_type_to_statistic_byte_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	_MYSQLND_HEADER_SIZE@GOTPCREL(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	addq	(%rsi), %rdx
	movl	(%rax,%rcx,4), %esi
	movq	_packet_type_to_statistic_packet_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %ecx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_MYSQLND_INC_CONN_STATISTIC_W_VALUE2
	movq	_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$88, %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_read_packet_header_and_body"

L_.str.1:                               ## @.str.1
	.asciz	"buf=%p size=%u"

	.comm	_FAIL,8,3                       ## @FAIL
	.comm	_CONN_QUIT_SENT,4,2             ## @CONN_QUIT_SENT
	.comm	_CR_SERVER_GONE_ERROR,4,2       ## @CR_SERVER_GONE_ERROR
	.comm	_UNKNOWN_SQLSTATE,4,2           ## @UNKNOWN_SQLSTATE
	.comm	_mysqlnd_server_gone,4,2        ## @mysqlnd_server_gone
L_.str.2:                               ## @.str.2
	.asciz	"Can't read %s's header"

L_.str.3:                               ## @.str.3
	.asciz	"Packet buffer %u wasn't big enough %u, %u bytes will be unread"

L_.str.4:                               ## @.str.4
	.asciz	"Empty '%s' packet body"

	.comm	_packet_type_to_statistic_byte_count,8,3 ## @packet_type_to_statistic_byte_count
	.comm	_MYSQLND_HEADER_SIZE,8,3        ## @MYSQLND_HEADER_SIZE
	.comm	_packet_type_to_statistic_packet_count,8,3 ## @packet_type_to_statistic_packet_count
	.comm	_PASS,8,3                       ## @PASS
	.no_dead_strip	_mysqlnd_read_packet_header_and_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mysqlnd_read_packet_header_and_body
_mysqlnd_read_packet_header_and_body:   ; @mysqlnd_read_packet_header_and_body
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x26, x7
	mov	x23, x6
	mov	x22, x5
	mov	x21, x4
	mov	x19, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	ldr	w8, [x29, #24]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #16]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x26
	bl	_DBG_INF_FMT
Lloh4:
	adrp	x27, _FAIL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _FAIL@GOTPAGEOFF]
	ldr	x28, [x27]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	bl	_mysqlnd_read_header
	cmp	x28, x0
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CONN_QUIT_SENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONN_QUIT_SENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SET_CONNECTION_STATE
Lloh9:
	adrp	x8, _CR_SERVER_GONE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CR_SERVER_GONE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _UNKNOWN_SQLSTATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNKNOWN_SQLSTATE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _mysqlnd_server_gone@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mysqlnd_server_gone@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SET_CLIENT_ERROR
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG_ERR_FMT
	ldr	x0, [x27]
	bl	_DBG_RETURN
LBB0_2:
	ldr	x3, [x20]
	subs	x8, x3, x26
	b.ls	LBB0_4
; %bb.3:
	stp	x3, x8, [sp, #8]
	str	x26, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG_ERR_FMT
	ldr	x0, [x27]
	bl	_DBG_RETURN
	ldr	x3, [x20]
LBB0_4:
	ldr	x26, [x27]
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x4, x19
	mov	x5, x21
	blr	x8
	cmp	x26, x0
	b.ne	LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _CONN_QUIT_SENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONN_QUIT_SENT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SET_CONNECTION_STATE
Lloh25:
	adrp	x8, _CR_SERVER_GONE_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CR_SERVER_GONE_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _UNKNOWN_SQLSTATE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UNKNOWN_SQLSTATE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _mysqlnd_server_gone@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mysqlnd_server_gone@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SET_CLIENT_ERROR
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG_ERR_FMT
	ldr	x0, [x27]
	bl	_DBG_RETURN
LBB0_6:
Lloh36:
	adrp	x8, _packet_type_to_statistic_byte_count@GOTPAGE
Lloh37:
	ldr	x8, [x8, _packet_type_to_statistic_byte_count@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
Lloh39:
	adrp	x8, _MYSQLND_HEADER_SIZE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MYSQLND_HEADER_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x10, [x20]
	add	x2, x10, x8
Lloh42:
	adrp	x8, _packet_type_to_statistic_packet_count@GOTPAGE
Lloh43:
	ldr	x8, [x8, _packet_type_to_statistic_packet_count@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	w3, [x8, x9]
	mov	x0, x19
	mov	w4, #1
	bl	_MYSQLND_INC_CONN_STATISTIC_W_VALUE2
Lloh45:
	adrp	x8, _PASS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PASS@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_DBG_RETURN
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysqlnd_read_packet_header_and_body"

l_.str.1:                               ; @.str.1
	.asciz	"buf=%p size=%u"

	.comm	_FAIL,8,3                       ; @FAIL
	.comm	_CONN_QUIT_SENT,4,2             ; @CONN_QUIT_SENT
	.comm	_CR_SERVER_GONE_ERROR,4,2       ; @CR_SERVER_GONE_ERROR
	.comm	_UNKNOWN_SQLSTATE,4,2           ; @UNKNOWN_SQLSTATE
	.comm	_mysqlnd_server_gone,4,2        ; @mysqlnd_server_gone
l_.str.2:                               ; @.str.2
	.asciz	"Can't read %s's header"

l_.str.3:                               ; @.str.3
	.asciz	"Packet buffer %u wasn't big enough %u, %u bytes will be unread"

l_.str.4:                               ; @.str.4
	.asciz	"Empty '%s' packet body"

	.comm	_packet_type_to_statistic_byte_count,8,3 ; @packet_type_to_statistic_byte_count
	.comm	_MYSQLND_HEADER_SIZE,8,3        ; @MYSQLND_HEADER_SIZE
	.comm	_packet_type_to_statistic_packet_count,8,3 ; @packet_type_to_statistic_packet_count
	.comm	_PASS,8,3                       ; @PASS
	.no_dead_strip	_mysqlnd_read_packet_header_and_body
.subsections_via_symbols
