	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_ap_getword
_php_ap_getword:                        ## @php_ap_getword
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	(%rsi), %rdi
	movb	(%rdi), %sil
	testb	%sil, %sil
	sete	%cl
	movq	%rdi, %rbx
	je	LBB0_19
## %bb.1:
	cmpb	%r12b, %sil
	je	LBB0_19
## %bb.2:
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpb	$39, %sil
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$34, %sil
	jne	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	1(%rbx), %al
	incq	%rbx
	testb	%al, %al
	sete	%cl
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	%sil, %al
	je	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$92, %al
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	1(%rbx), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	$2, %eax
	cmpb	%sil, %cl
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, %eax
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rbx,%rax), %rdx
	movzbl	(%rbx,%rax), %eax
	testb	%al, %al
	sete	%cl
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdx, %rbx
	cmpb	%sil, %al
	jne	LBB0_7
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	xorb	$1, %cl
	movzbl	%cl, %ebx
	addq	%rdx, %rbx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rbx), %sil
	testb	%sil, %sil
	sete	%cl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	%r12b, %sil
	jne	LBB0_3
LBB0_19:
	testb	%cl, %cl
	je	LBB0_21
## %bb.20:
	callq	_estrdup
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	(%r14), %rbx
	jmp	LBB0_23
LBB0_21:
	movl	%ebx, %esi
	subl	%edi, %esi
	callq	_estrndup
	movq	%rax, %r15
	decq	%rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	incq	%rbx
	cmpb	%r12b, 1(%rax)
	je	LBB0_22
LBB0_23:
	movq	%rbx, (%r14)
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_php_ap_getword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_ap_getword
_php_ap_getword:                        ; @php_ap_getword
	.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
	mov	x19, x1
	and	w21, w2, #0xff
	ldr	x0, [x1]
	ldrb	w8, [x0]
	cmp	w8, #0
	cset	w9, eq
	mov	x22, x0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	eor	w8, w10, #0x1
	add	x22, x22, x8
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #0
	cset	w9, eq
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ccmp	w8, w21, #4, ne
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #39
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #34
	b.ne	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x22, #1]!
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	w9, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x22, x22, x9
	ldrb	w9, [x22]
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #0
	cset	w10, eq
	ccmp	w9, w8, #4, ne
	b.eq	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w9, #92
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w9, [x22, #1]
	cmp	w9, #0
	ccmp	w9, w8, #0, ne
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w9, #2
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	b	LBB0_2
LBB0_14:
	cbz	w9, LBB0_16
; %bb.15:
	bl	_estrdup
	mov	x20, x0
	ldr	x0, [x19]
	bl	_strlen
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
	b	LBB0_18
LBB0_16:
	sub	w1, w22, w0
	bl	_estrndup
	mov	x20, x0
	sub	x8, x22, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, #1]!
	cmp	w9, w21
	b.eq	LBB0_17
LBB0_18:
	str	x8, [x19]
	mov	x0, 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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_php_ap_getword
.subsections_via_symbols
