	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mysqlnd_stream_array_to_fd_set
_mysqlnd_stream_array_to_fd_set:        ## @mysqlnd_stream_array_to_fd_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	addq	$8, %rbx
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	%rax, %r14
	movq	-8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_DBG_INF_FMT
	testq	%r14, %r14
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_PHP_STREAM_CAST_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHP_STREAM_AS_FD_FOR_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-48(%rbp), %rdx
	movl	$1, %ecx
	callq	_php_stream_cast
	cmpq	%rax, %r13
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZEND_VALID_SOCKET
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_PHP_SAFE_FD_SET
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	setne	%dil
	callq	_DBG_RETURN
	addq	$24, %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_stream_array_to_fd_set"

L_.str.1:                               ## @.str.1
	.asciz	"conn=%llu stream=%p"

	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_PHP_STREAM_AS_FD_FOR_SELECT,4,2 ## @PHP_STREAM_AS_FD_FOR_SELECT
	.comm	_PHP_STREAM_CAST_INTERNAL,4,2   ## @PHP_STREAM_CAST_INTERNAL
	.no_dead_strip	_mysqlnd_stream_array_to_fd_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mysqlnd_stream_array_to_fd_set
_mysqlnd_stream_array_to_fd_set:        ; @mysqlnd_stream_array_to_fd_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.1:
	mov	w23, #0
	add	x24, x21, #8
Lloh2:
	adrp	x25, _SUCCESS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PHP_STREAM_AS_FD_FOR_SELECT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PHP_STREAM_AS_FD_FOR_SELECT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PHP_STREAM_CAST_INTERNAL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PHP_STREAM_CAST_INTERNAL@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24], #8
	cbz	x8, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x22, x0
	ldur	x8, [x24, #-8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_DBG_INF_FMT
	cbz	x22, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x25]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	add	x2, sp, #8
	mov	x0, x22
	mov	w3, #1
	bl	_php_stream_cast
	cmp	x28, x0
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_ZEND_VALID_SOCKET
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_PHP_SAFE_FD_SET
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x19]
	b	LBB0_2
LBB0_9:
	mov	w23, #0
LBB0_10:
	cmp	w23, #0
	cset	w0, ne
	bl	_DBG_RETURN
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysqlnd_stream_array_to_fd_set"

l_.str.1:                               ; @.str.1
	.asciz	"conn=%llu stream=%p"

	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_PHP_STREAM_AS_FD_FOR_SELECT,4,2 ; @PHP_STREAM_AS_FD_FOR_SELECT
	.comm	_PHP_STREAM_CAST_INTERNAL,4,2   ; @PHP_STREAM_CAST_INTERNAL
	.no_dead_strip	_mysqlnd_stream_array_to_fd_set
.subsections_via_symbols
