	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_sockop_cast
_php_openssl_sockop_cast:               ## @php_openssl_sockop_cast
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_FAILURE@GOTPCREL(%rip), %r15
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_14
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$0, 4(%r12)
	jne	LBB0_14
## %bb.3:
	movq	_SUCCESS@GOTPCREL(%rip), %r15
	testq	%r14, %r14
	jne	LBB0_13
	jmp	LBB0_14
LBB0_4:
	cmpl	$0, 4(%r12)
	jne	LBB0_14
## %bb.5:
	testq	%r14, %r14
	je	LBB0_16
## %bb.6:
	movl	(%r12), %edi
	movl	16(%rbx), %esi
	callq	_fdopen
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:
	movq	_FAILURE@GOTPCREL(%rip), %r15
	jmp	LBB0_14
LBB0_8:
	movq	_SUCCESS@GOTPCREL(%rip), %r15
	testq	%r14, %r14
	je	LBB0_14
## %bb.9:
	movl	12(%rbx), %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_13
## %bb.10:
	cmpl	$0, 4(%r12)
	je	LBB0_13
## %bb.11:
	movl	8(%r12), %edi
	callq	_SSL_pending
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movslq	%eax, %rsi
	movq	(%rbx), %rax
	cmpq	%rsi, %rax
	cmovbq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_php_stream_fill_read_buffer
LBB0_13:
	movl	(%r12), %eax
	movl	%eax, (%r14)
LBB0_14:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_openssl_sockop_cast
.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_cast
_php_openssl_sockop_cast:               ; @php_openssl_sockop_cast
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_12
LBB0_3:
Lloh2:
	adrp	x22, _FAILURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FAILURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	ldr	w8, [x21, #4]
Lloh4:
	adrp	x22, _FAILURE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FAILURE@GOTPAGEOFF]
	cbnz	w8, LBB0_15
; %bb.5:
Lloh6:
	adrp	x23, _SUCCESS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SUCCESS@GOTPAGEOFF]
	cbz	x19, LBB0_16
; %bb.6:
	ldr	w0, [x21]
	ldr	w1, [x20, #16]
	bl	_fdopen
	str	x0, [x19]
	cmp	x0, #0
	csel	x22, x22, x23, eq
	b	LBB0_15
LBB0_7:
	cbz	x19, LBB0_14
; %bb.8:
	ldp	w9, w8, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.9:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_13
; %bb.10:
	ldr	w0, [x21, #8]
	bl	_SSL_pending
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.11:
	sxtw	x8, w0
	ldr	x9, [x20]
	cmp	x9, x8
	csel	x1, x9, x8, lo
	mov	x0, x20
	bl	_php_stream_fill_read_buffer
	b	LBB0_13
LBB0_12:
	cbz	x19, LBB0_14
LBB0_13:
	ldr	w8, [x21]
	str	w8, [x19]
LBB0_14:
Lloh8:
	adrp	x22, _SUCCESS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SUCCESS@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x22]
	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
LBB0_16:
	mov	x22, x23
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_openssl_sockop_cast
.subsections_via_symbols
