	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_sockop_io
_php_openssl_sockop_io:                 ## @php_openssl_sockop_io
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	8(%rsi), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	cmovbq	%rax, %r12
	movl	(%rbx), %eax
	leaq	16(%rbx), %rcx
	xorl	%esi, %esi
	movb	$1, %dl
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	setne	%r14b
	cmoveq	%rsi, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.2:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_php_set_sock_blocking
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	_php_stream_socket_ops@GOTPCREL(%rip), %rax
	leaq	8(%rax), %rcx
	testl	%edi, %edi
	cmovneq	%rax, %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	*(%rcx)
	jmp	LBB0_52
LBB0_5:
	cmpl	$0, (%rbx)
	sete	%al
	andb	%r14b, %al
	cmpb	$1, %al
	jne	LBB0_9
LBB0_6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.7:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-168(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-168(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	-136(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_10:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %r12
	movq	_POLLPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_php_pollfd_for
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-152(%rbp), %rdi
	movq	-144(%rbp), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	_php_openssl_subtract_timeval
	movq	%rax, %r13
	movq	%rdx, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movq	%r13, %rdi
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	callq	_php_openssl_compare_timeval
	testq	%rax, %rax
	jg	LBB0_42
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	32(%rbx), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_SSL_read
	movl	%eax, %r15d
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_19
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_SSL_write
	movl	%eax, %r15d
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %r14
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	movq	%r13, %rdx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	callq	_php_openssl_subtract_timeval
	movq	%rax, -136(%rbp)
	movq	%rdx, -128(%rbp)
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	32(%rbx), %edi
	movl	%r15d, %esi
	callq	_SSL_get_error
	movl	%eax, %r12d
	testl	%r15d, %r15d
	jle	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	je	LBB0_47
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_47
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	8(%rbx), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
LBB0_40:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_11
## %bb.41:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_php_openssl_handle_ssl_error
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_SSL_ERROR_WANT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%r12d, %edx
	movl	$1, %r8d
	movl	$1, %edi
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %edi
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%esi, %esi
	cmovnel	%edi, %ebx
	orl	%esi, %edx
	cmovel	%r8d, %ebx
	testl	%esi, %esi
	jne	LBB0_31
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%eax, %r12d
	movq	%r14, %r12
	jne	LBB0_12
	jmp	LBB0_48
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_35
LBB0_31:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edx, %edx
	testl	%ebx, %ebx
	jne	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_SSL_pending
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%eax, %eax
	sete	%dl
LBB0_34:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%dl, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_35:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_45
## %bb.36:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%ebx, %ebx
	je	LBB0_46
## %bb.37:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	testl	%esi, %esi
	je	LBB0_40
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_SSL_ERROR_WANT_WRITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_11
## %bb.39:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_42:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.43:
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_php_set_sock_blocking
	movl	$1, (%rbx)
LBB0_44:
	movl	$1, 4(%rbx)
	movl	$-1, %eax
	jmp	LBB0_52
LBB0_17:
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_php_stream_xport_shutdown
	movl	$1, (%r14)
	xorl	%r15d, %r15d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_49
	jmp	LBB0_51
LBB0_45:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_49
	jmp	LBB0_51
LBB0_46:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_49
LBB0_48:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PHP_STREAM_CONTEXT
	movl	%eax, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_php_stream_notify_progress_increment
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_51
LBB0_49:
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_php_set_sock_blocking
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.50:
	movl	$1, (%rbx)
LBB0_51:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	cmovgl	%r15d, %eax
LBB0_52:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_SHUT_RDWR,8,3                  ## @SHUT_RDWR
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ## @SSL_ERROR_WANT_WRITE
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.comm	_php_stream_socket_ops,16,3     ## @php_stream_socket_ops
	.no_dead_strip	_php_openssl_sockop_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_sockop_io
_php_openssl_sockop_io:                 ; @php_openssl_sockop_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, x2
	mov	x25, x1
	mov	x21, x0
	ldr	x19, [x1, #8]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x8, x19
	ldr	w10, [x8], #16
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x3
	csel	x22, x9, x3, lo
	cmp	w10, #0
	cset	w20, ne
	csel	x8, xzr, x8, eq
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x24, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SUCCESS@GOTPAGEOFF]
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	cbz	w10, LBB0_9
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_php_set_sock_blocking
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	str	wzr, [x19]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _php_stream_socket_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _php_stream_socket_ops@GOTPAGEOFF]
	add	x9, x8, #8
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x3
	blr	x8
	b	LBB0_49
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	and	w8, w8, w20
	cmp	w8, #1
	b.ne	LBB0_9
LBB0_6:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_8:
	add	x0, sp, #80
	mov	x1, #0
	bl	_gettimeofday
	mov	w20, #0
	ldr	x9, [sp, #80]
	ldr	x8, [sp, #88]
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	add	x8, sp, #48
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	mov	w20, #1
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
LBB0_10:
                                        ; implicit-def: $x26
                                        ; implicit-def: $x27
	str	x22, [sp]                       ; 8-byte Folded Spill
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh7:
	adrp	x8, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w24, w8
Lloh10:
	adrp	x8, _POLLIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh12:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x25, x23
	mov	x23, x22
	ldr	x22, [sp]                       ; 8-byte Folded Reload
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _POLLPRI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _POLLPRI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_php_pollfd_for
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w20, #0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #64
	mov	x1, #0
	bl	_gettimeofday
	ldp	x0, x1, [sp, #64]
	ldp	x3, x2, [sp, #8]                ; 16-byte Folded Reload
	bl	_php_openssl_subtract_timeval
	mov	x27, x0
	mov	x26, x1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x2, x3, [x8]
	bl	_php_openssl_compare_timeval
	cmp	x0, #1
	b.ge	LBB0_39
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_ERR_clear_error
	ldr	w0, [x19, #32]
	mov	x1, x23
	mov	x2, x22
	cbz	w21, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_SSL_read
	mov	x28, x0
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_42
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	tbnz	w20, #0, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x0, x1, [x8]
	mov	x2, x27
	mov	x3, x26
	bl	_php_openssl_subtract_timeval
	stp	x0, x1, [sp, #48]
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x28
	bl	_SSL_get_error
	mov	x24, x0
	cmp	w28, #0
	b.le	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh17:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w24, w8
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w24, w8
	b.ne	LBB0_14
	b	LBB0_44
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_SSL_write
	mov	x28, x0
	tbz	w20, #0, LBB0_20
	b	LBB0_21
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x22, x23
	mov	x23, x25
	mov	x0, x25
	mov	x1, x28
	mov	w2, #0
	bl	_php_openssl_handle_ssl_error
	mov	x25, x0
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w21, #0
	cset	w10, eq
	cset	w11, ne
Lloh26:
	adrp	x12, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh27:
	ldr	x12, [x12, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	cmp	w24, w12
	cset	w12, eq
	and	w11, w11, w12
Lloh29:
	adrp	x12, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh30:
	ldr	x12, [x12, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	cmp	w24, w12
	cset	w12, eq
	and	w10, w10, w12
	orr	w10, w10, w11
	cmp	w10, #0
	csinc	w25, w25, wzr, eq
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w21, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w10, #0
	cbnz	w25, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x8, x9
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #32]
	bl	_SSL_pending
	cmp	w0, #0
	cset	w10, eq
LBB0_31:                                ;   in Loop: Header=BB0_14 Depth=1
	str	w10, [x23]
LBB0_32:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_45
; %bb.33:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	w25, LBB0_43
; %bb.34:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #8]
	cbnz	w21, LBB0_11
; %bb.35:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh32:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w24, w8
Lloh35:
	adrp	x8, _POLLIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh37:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_12
LBB0_36:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #8]
	cbz	w21, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh39:
	adrp	x8, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w24, w8
Lloh42:
	adrp	x8, _POLLIN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh44:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_13
LBB0_38:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh46:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w24, w8
Lloh49:
	adrp	x8, _POLLIN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh51:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_13
LBB0_39:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_41
; %bb.40:
	ldr	w0, [x19, #8]
	mov	w20, #1
	mov	w1, #1
	bl	_php_set_sock_blocking
	str	w20, [x19]
LBB0_41:
	mov	w8, #1
	str	w8, [x19, #4]
	mov	w0, #-1
	b	LBB0_49
LBB0_42:
Lloh53:
	adrp	x8, _SHUT_RDWR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SHUT_RDWR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_php_stream_xport_shutdown
	mov	w28, #0
	mov	w8, #1
	str	w8, [x25]
	b	LBB0_45
LBB0_43:
Lloh56:
	adrp	x21, _SUCCESS@GOTPAGE
Lloh57:
	ldr	x21, [x21, _SUCCESS@GOTPAGEOFF]
	b	LBB0_46
LBB0_44:
	mov	x0, x25
	bl	_PHP_STREAM_CONTEXT
	mov	x1, x28
	mov	w2, #0
	bl	_php_stream_notify_progress_increment
LBB0_45:
Lloh58:
	adrp	x21, _SUCCESS@GOTPAGE
Lloh59:
	ldr	x21, [x21, _SUCCESS@GOTPAGEOFF]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_48
LBB0_46:
	ldr	w0, [x19, #8]
	mov	w20, #1
	mov	w1, #1
	bl	_php_set_sock_blocking
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_48
; %bb.47:
	str	w20, [x19]
LBB0_48:
	cmp	w28, #0
	csel	w0, w28, wzr, gt
LBB0_49:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_SHUT_RDWR,8,3                  ; @SHUT_RDWR
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ; @SSL_ERROR_WANT_WRITE
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.comm	_php_stream_socket_ops,16,3     ; @php_stream_socket_ops
	.no_dead_strip	_php_openssl_sockop_io
.subsections_via_symbols
