	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_stream_mode_sanitize_fdopen_fopencookie ## -- Begin function php_stream_mode_sanitize_fdopen_fopencookie
	.p2align	4, 0x90
_php_stream_mode_sanitize_fdopen_fopencookie: ## @php_stream_mode_sanitize_fdopen_fopencookie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movb	(%r8), %cl
	movb	$119, %al
	leal	-97(%rcx), %edi
	cmpb	$22, %dil
	ja	LBB0_3
## %bb.1:
	movzbl	%dil, %edi
	movl	$4325377, %edx                  ## imm = 0x420001
	btq	%rdi, %rdx
	jae	LBB0_3
## %bb.2:
	movl	%ecx, %eax
LBB0_3:
	movb	%al, (%rsi)
	movb	1(%r8), %cl
	movl	$1, %eax
	testb	%cl, %cl
	je	LBB0_24
## %bb.4:
	cmpb	$98, %cl
	je	LBB0_5
## %bb.6:
	cmpb	$43, %cl
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	movl	$1, %edi
	jmp	LBB0_9
LBB0_5:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_8:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_9:
	movb	2(%r8), %cl
	testb	%cl, %cl
	je	LBB0_19
## %bb.10:
	cmpb	$98, %cl
	je	LBB0_11
## %bb.12:
	cmpb	$43, %cl
	jne	LBB0_14
## %bb.13:
	movl	$1, %edi
	jmp	LBB0_14
LBB0_11:
	movl	$1, %eax
LBB0_14:
	movb	3(%r8), %cl
	testb	%cl, %cl
	je	LBB0_19
## %bb.15:
	cmpb	$98, %cl
	je	LBB0_16
## %bb.17:
	cmpb	$43, %cl
	jne	LBB0_19
## %bb.18:
	movl	$1, %edi
LBB0_19:
	testl	%eax, %eax
	je	LBB0_20
LBB0_21:
	movb	$98, 1(%rsi)
	movl	$2, %eax
	testl	%edi, %edi
	je	LBB0_24
LBB0_23:
	movl	%eax, %ecx
	incl	%eax
	movb	$43, (%rsi,%rcx)
LBB0_24:
	movl	%eax, %eax
	movb	$0, (%rsi,%rax)
	popq	%rbp
	retq
LBB0_16:
	movl	$1, %eax
	testl	%eax, %eax
	jne	LBB0_21
LBB0_20:
	movl	$1, %eax
	testl	%edi, %edi
	jne	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_stream_mode_sanitize_fdopen_fopencookie ; -- Begin function php_stream_mode_sanitize_fdopen_fopencookie
	.p2align	2
_php_stream_mode_sanitize_fdopen_fopencookie: ; @php_stream_mode_sanitize_fdopen_fopencookie
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0]
	ldrb	w8, [x10]
	mov	w9, #119
	sub	w11, w8, #97
	cmp	w11, #22
	mov	w12, #1
	lsl	w11, w12, w11
	mov	w12, #1
	movk	w12, #66, lsl #16
	and	w11, w11, w12
	ccmp	w11, #0, #4, ls
	csel	w8, w8, w9, ne
	strb	w8, [x1]
	ldrb	w8, [x10, #1]
	mov	w9, #1
	cbz	w8, LBB0_13
; %bb.1:
	mov	w11, #1
	cmp	w8, #43
	csel	w11, wzr, w11, ne
	csel	w12, wzr, wzr, ne
	cmp	w8, #98
	csel	w8, wzr, w11, eq
	csel	w9, w9, w12, eq
	ldrb	w11, [x10, #2]
	cbz	w11, LBB0_10
; %bb.2:
	cmp	w11, #98
	b.eq	LBB0_6
; %bb.3:
	cmp	w11, #43
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
LBB0_5:
	ldrb	w10, [x10, #3]
	cbnz	w10, LBB0_7
	b	LBB0_10
LBB0_6:
	mov	w9, #1
	ldrb	w10, [x10, #3]
	cbz	w10, LBB0_10
LBB0_7:
	cmp	w10, #98
	b.eq	LBB0_14
; %bb.8:
	cmp	w10, #43
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
LBB0_10:
	cbz	w9, LBB0_15
LBB0_11:
	mov	w9, #98
	strb	w9, [x1, #1]
	mov	w9, #2
	cbz	w8, LBB0_13
LBB0_12:
	mov	w8, #43
	strb	w8, [x1, w9, uxtw]
	add	w9, w9, #1
LBB0_13:
	strb	wzr, [x1, w9, uxtw]
	ret
LBB0_14:
	mov	w9, #1
	cbnz	w9, LBB0_11
LBB0_15:
	mov	w9, #1
	cbnz	w8, LBB0_12
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
