	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_sockop_cast
_php_sockop_cast:                       ## @php_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	8(%rdi), %rcx
	movq	_FAILURE@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	leal	-129(%rsi), %edx
	cmpl	$3, %edx
	jae	LBB0_4
## %bb.2:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_10
LBB0_4:
	cmpl	$128, %esi
	jne	LBB0_10
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movl	(%rcx), %eax
	movl	(%rdi), %esi
	movl	%eax, %edi
	callq	_fdopen
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_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_sockop_cast
_php_sockop_cast:                       ; @php_sockop_cast
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x2
	sub	w9, w1, #129
	cmp	w9, #3
	b.hs	LBB0_6
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
Lloh0:
	adrp	x20, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x20, _FAILURE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FAILURE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x20, _FAILURE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _FAILURE@GOTPAGEOFF]
	cmp	w1, #128
	b.ne	LBB0_10
; %bb.7:
Lloh6:
	adrp	x21, _SUCCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SUCCESS@GOTPAGEOFF]
	cbz	x19, LBB0_9
; %bb.8:
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_fdopen
	str	x0, [x19]
	cmp	x0, #0
	csel	x20, x20, x21, eq
	b	LBB0_10
LBB0_9:
	mov	x20, x21
LBB0_10:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_sockop_cast
.subsections_via_symbols
