	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mysqlnd_stream_array_from_fd_set
_mysqlnd_stream_array_from_fd_set:      ## @mysqlnd_stream_array_from_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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	movq	(%rbx), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rbx, %r13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%r13), %rax
	addq	$8, %r13
	testq	%rax, %rax
	je	LBB0_11
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	%rax, %r15
	movq	-8(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	callq	_DBG_INF_FMT
	testq	%r15, %r15
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	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	%r15, %rdi
	leaq	-48(%rbp), %rdx
	movl	$1, %ecx
	callq	_php_stream_cast
	cmpq	%rax, %r12
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-48(%rbp), %edi
	callq	_ZEND_VALID_SOCKET
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-48(%rbp), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_PHP_SAFE_FD_ISSET
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r13), %rax
	movq	%rax, (%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	incl	%edi
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_12
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_12:
	movq	$0, (%rbx)
	callq	_DBG_RETURN
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mysqlnd_stream_array_from_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
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_mysqlnd_stream_array_from_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_from_fd_set
_mysqlnd_stream_array_from_fd_set:      ; @mysqlnd_stream_array_from_fd_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.1:
	mov	w0, #0
Lloh5:
	adrp	x25, _TRUE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
Lloh7:
	adrp	x26, _SUCCESS@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SUCCESS@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x27, _PHP_STREAM_AS_FD_FOR_SELECT@GOTPAGE
Lloh12:
	ldr	x27, [x27, _PHP_STREAM_AS_FD_FOR_SELECT@GOTPAGEOFF]
Lloh13:
	adrp	x28, _PHP_STREAM_CAST_INTERNAL@GOTPAGE
Lloh14:
	ldr	x28, [x28, _PHP_STREAM_CAST_INTERNAL@GOTPAGEOFF]
	mov	x19, x20
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	add	x19, x19, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	x24, [x25]
	ldr	x8, [x19], #8
	cbz	x8, LBB0_11
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x23, x0
	ldur	x8, [x19, #-8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_DBG_INF_FMT
	cbz	x23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x20, [x26]
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w1, w9, w8
	add	x2, sp, #28
	mov	x0, x23
	mov	w3, #1
	bl	_php_stream_cast
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [sp, #28]
	bl	_ZEND_VALID_SOCKET
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [sp, #28]
	mov	x1, x21
	bl	_PHP_SAFE_FD_ISSET
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x8, [x19, #-8]
	str	x8, [x20]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #8
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	add	w0, w0, #1
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
	b	LBB0_13
LBB0_11:
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	str	xzr, [x20]
	bl	_DBG_RETURN
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysqlnd_stream_array_from_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
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_mysqlnd_stream_array_from_fd_set
.subsections_via_symbols
