	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _php_filter_validate_ipv6
__php_filter_validate_ipv6:             ## @_php_filter_validate_ipv6
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$58, %esi
	movq	%r15, %rdx
	callq	_memchr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%r14, %rdi
	movl	$46, %esi
	movq	%r15, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rcx
	subq	%r14, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%rcx, %r12
	cmpq	%r14, %rax
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rax
	leaq	-1(%r12), %rcx
	cmpb	$58, -1(%rbx)
	jne	LBB0_3
LBB0_5:
	subq	%r12, %r15
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__php_filter_validate_ipv4
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_33
## %bb.6:
	cmpq	$2, %r12
	jb	LBB0_33
## %bb.7:
	xorl	%eax, %eax
	cmpb	$58, -2(%rbx)
	setne	%al
	subq	%rax, %r12
	movl	$2, %ebx
	movq	%r12, %r15
LBB0_8:
	addq	%r14, %r15
	xorl	%r8d, %r8d
	movabsq	$270582939711, %rax             ## imm = 0x3F0000003F
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	cmpq	%r15, %rsi
	jae	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$58, (%rsi)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rsi), %rdx
	cmpq	%r15, %rdx
	jae	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$58, (%rdx)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r8d, %r8d
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rsi
	cmpq	%r15, %rsi
	je	LBB0_32
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	movl	$1, %r8d
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %rdx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r14, %rsi
	je	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r15, %rdx
	jae	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=2
	leaq	(%rdx,%rdi), %rcx
	incq	%rcx
	incq	%rdi
	cmpq	%r15, %rcx
	jae	LBB0_24
LBB0_21:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdx,%rdi), %esi
	leal	-48(%rsi), %ecx
	cmpb	$10, %cl
	jb	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	addb	$-65, %sil
	cmpb	$37, %sil
	ja	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	movzbl	%sil, %ecx
	btq	%rcx, %rax
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	%rdi, %rdx
	movq	%rdx, %rsi
	addl	$-5, %edi
	xorl	%edx, %edx
	cmpl	$-4, %edi
	jb	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$7, %ebx
	movl	%ecx, %ebx
	jle	LBB0_9
	jmp	LBB0_33
LBB0_26:
	xorl	%edx, %edx
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movzbl	%dl, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	testl	%r8d, %r8d
	setne	%al
	cmpl	$8, %ebx
	sete	%dl
	orb	%al, %dl
	jmp	LBB0_33
LBB0_32:
	cmpl	$8, %ebx
	setl	%dl
	jmp	LBB0_33
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__php_filter_validate_ipv6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _php_filter_validate_ipv6
__php_filter_validate_ipv6:             ; @_php_filter_validate_ipv6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w1, #58
	mov	x2, x20
	bl	_memchr
	cbz	x0, LBB0_30
; %bb.1:
	mov	x0, x19
	mov	w1, #46
	mov	x2, x20
	bl	_memchr
	cbz	x0, LBB0_8
; %bb.2:
	sub	x8, x0, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x0
	mov	x22, x8
	cmp	x0, x19
	b.ls	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	ldrb	w9, [x0, #-1]!
	sub	x8, x22, #1
	cmp	w9, #58
	b.ne	LBB0_3
LBB0_5:
	sub	x1, x20, x22
	add	x2, sp, #8
	mov	x0, x21
	bl	__php_filter_validate_ipv4
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_30
; %bb.6:
	cmp	x22, #2
	b.lo	LBB0_30
; %bb.7:
	ldurb	w8, [x21, #-2]
	cmp	w8, #58
	cset	w8, ne
	sub	x20, x22, x8
	mov	w8, #2
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	mov	w11, #0
	add	x9, x19, x20
	mov	w10, #1
	mov	x13, x19
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	cmp	x13, x9
	b.hs	LBB0_29
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w12, [x13]
	cmp	w12, #58
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x12, x13, #1
	cmp	x12, x9
	b.hs	LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w14, [x12]
	cmp	w14, #58
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w11, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x12, x13, #2
	cmp	x12, x9
	b.eq	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	mov	w11, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x12, x13
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x13, x19
	b.eq	LBB0_28
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x12, x9
	b.hs	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x14, #0
	sub	x13, x9, x12
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	add	x14, x14, #1
	cmp	x13, x14
	b.eq	LBB0_25
LBB0_22:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w15, [x12, x14]
	sub	w16, w15, #48
	and	w16, w16, #0xff
	cmp	w16, #10
	b.lo	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	and	w15, w15, #0xff
	sub	w15, w15, #65
	cmp	w15, #37
	lsl	x15, x10, x15
	and	x15, x15, #0x3f0000003f
	ccmp	x15, #0, #4, ls
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x13, x12, x14
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x13, x9
LBB0_26:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	sub	w12, w14, #5
	cmn	w12, #4
	b.lo	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w12, w8, #1
	cmp	w8, #7
	mov	x8, x12
	b.le	LBB0_10
	b	LBB0_30
LBB0_28:
	mov	w0, #0
	b	LBB0_30
LBB0_29:
	cmp	w11, #0
	ccmp	w8, #8, #4, eq
	cset	w0, eq
LBB0_30:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_32:
	cmp	w8, #8
	cset	w0, lt
	b	LBB0_30
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__php_filter_validate_ipv6
.subsections_via_symbols
