	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_stream_array_check_for_readiness ## -- Begin function mysqlnd_stream_array_check_for_readiness
	.p2align	4, 0x90
_mysqlnd_stream_array_check_for_readiness: ## @mysqlnd_stream_array_check_for_readiness
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	_CONN_READY@GOTPCREL(%rip), %r15
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	callq	_GET_CONNECTION_STATE
	cmpl	(%r15), %eax
	setbe	%cl
	cmpl	(%r12), %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	addl	%eax, %r13d
	movq	(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:
	incl	%r13d
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_ecalloc
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	%r13, %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%r13, %rbx
	movq	%r14, %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, (%rbx)
	movq	$0, (%r14)
	addq	$8, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %rax
	addq	$8, %r14
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	callq	_GET_CONNECTION_STATE
	movq	(%r14), %rcx
	cmpl	(%r15), %eax
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, (%r12)
	addq	$8, %r12
	jmp	LBB0_11
LBB0_12:
	movq	$0, (%rbx)
	jmp	LBB0_13
LBB0_4:
	xorl	%r13d, %r13d
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONN_READY,4,2                 ## @CONN_READY
	.comm	_CONN_QUIT_SENT,4,2             ## @CONN_QUIT_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mysqlnd_stream_array_check_for_readiness ; -- Begin function mysqlnd_stream_array_check_for_readiness
	.p2align	2
_mysqlnd_stream_array_check_for_readiness: ; @mysqlnd_stream_array_check_for_readiness
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	mov	w23, #8
Lloh0:
	adrp	x21, _CONN_READY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CONN_READY@GOTPAGEOFF]
Lloh2:
	adrp	x22, _CONN_QUIT_SENT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CONN_QUIT_SENT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	bl	_GET_CONNECTION_STATE
	ldr	w8, [x21]
	cmp	w0, w8
	ldr	w8, [x22]
	ccmp	w0, w8, #4, hi
	cinc	w20, w20, eq
	ldr	x8, [x19, x23]
	add	x23, x23, #8
	cbnz	x8, LBB0_2
; %bb.3:
	cbz	w20, LBB0_10
; %bb.4:
	add	w0, w20, #1
	mov	w1, #8
	bl	_ecalloc
	mov	x20, x0
	ldr	x8, [x19]
	mov	x23, x0
	cbz	x8, LBB0_9
; %bb.5:
	mov	x23, x20
	mov	x24, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x24], #8
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	bl	_GET_CONNECTION_STATE
	ldr	w9, [x21]
	ldr	w10, [x22]
	ldr	x8, [x19]
	cmp	w0, w9
	ccmp	w0, w10, #4, hi
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x23], #8
	str	xzr, [x19]
	ldr	x8, [x19, #8]!
	cbnz	x8, LBB0_7
LBB0_9:
	str	xzr, [x23]
	b	LBB0_11
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CONN_READY,4,2                 ; @CONN_READY
	.comm	_CONN_QUIT_SENT,4,2             ; @CONN_QUIT_SENT
.subsections_via_symbols
