	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_gc_buffer_size
_calc_gc_buffer_size:                   ## @calc_gc_buffer_size
	.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
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EX
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_EX_CALL_INFO
	movq	_ZEND_CALL_HAS_SYMBOL_TABLE@GOTPCREL(%rip), %rcx
	movl	$4, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rbx
	addq	$4, %rbx
LBB0_4:
	xorl	%eax, %eax
	callq	_EX_CALL_INFO
	movq	_ZEND_CALL_FREE_EXTRA_ARGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_EX_NUM_ARGS
	addq	%rbx, %rax
	subq	8(%r15), %rax
	movq	%rax, %rbx
LBB0_6:
	xorl	%eax, %eax
	callq	_EX_CALL_INFO
	movq	_ZEND_CALL_RELEASE_THIS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbq	$-1, %rbx
	xorl	%eax, %eax
	callq	_EX_CALL_INFO
	movq	_ZEND_CALL_CLOSURE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbq	$-1, %rbx
	movq	(%r12), %r10
	movq	16(%r15), %rdx
	cmpq	%rdx, %r10
	je	LBB0_13
## %bb.7:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.8:
	notq	%rdx
	addq	%rdx, %r10
	movq	32(%r15), %rdx
	movq	_ZEND_LIVE_MASK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movq	_ZEND_LIVE_TMPVAR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movq	_ZEND_LIVE_LOOP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	$16, %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$24, %rdx
	decq	%rcx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, -16(%rdx)
	ja	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	-8(%rdx), %r10
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rdx), %rdi
	andq	%r8, %rdi
	cmpq	%r9, %rdi
	sete	%r11b
	cmpq	%rsi, %rdi
	sete	%al
	orb	%r11b, %al
	movzbl	%al, %eax
	addq	%rax, %rbx
	jmp	LBB0_12
LBB0_13:
	cmpq	$0, (%r14)
	jne	LBB0_17
## %bb.14:
	movq	8(%r14), %rax
	cmpq	%r14, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_zend_generator_get_child
	incq	%rbx
	cmpq	%r14, %rax
	jne	LBB0_15
	jmp	LBB0_17
LBB0_1:
	movl	$4, %ebx
LBB0_17:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_func,4,2                       ## @func
	.comm	_ZEND_CALL_HAS_SYMBOL_TABLE,4,2 ## @ZEND_CALL_HAS_SYMBOL_TABLE
	.comm	_ZEND_CALL_FREE_EXTRA_ARGS,4,2  ## @ZEND_CALL_FREE_EXTRA_ARGS
	.comm	_ZEND_CALL_RELEASE_THIS,4,2     ## @ZEND_CALL_RELEASE_THIS
	.comm	_ZEND_CALL_CLOSURE,4,2          ## @ZEND_CALL_CLOSURE
	.comm	_ZEND_LIVE_MASK,8,3             ## @ZEND_LIVE_MASK
	.comm	_ZEND_LIVE_TMPVAR,8,3           ## @ZEND_LIVE_TMPVAR
	.comm	_ZEND_LIVE_LOOP,8,3             ## @ZEND_LIVE_LOOP
	.no_dead_strip	_calc_gc_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_gc_buffer_size
_calc_gc_buffer_size:                   ; @calc_gc_buffer_size
	.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	x22, [x0, #16]
	cbz	x22, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _func@GOTPAGE
Lloh1:
	ldr	x8, [x8, _func@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_EX
	mov	x21, x0
	bl	_EX_CALL_INFO
Lloh3:
	adrp	x8, _ZEND_CALL_HAS_SYMBOL_TABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZEND_CALL_HAS_SYMBOL_TABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	w20, #4
	b	LBB0_5
LBB0_3:
	mov	w20, #4
	b	LBB0_15
LBB0_4:
	ldr	x8, [x21]
	add	x20, x8, #4
LBB0_5:
	bl	_EX_CALL_INFO
Lloh6:
	adrp	x8, _ZEND_CALL_FREE_EXTRA_ARGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZEND_CALL_FREE_EXTRA_ARGS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	bl	_EX_NUM_ARGS
	ldr	x8, [x21, #8]
	add	x9, x0, x20
	sub	x20, x9, x8
LBB0_7:
	bl	_EX_CALL_INFO
Lloh9:
	adrp	x8, _ZEND_CALL_RELEASE_THIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZEND_CALL_RELEASE_THIS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	x20, x20, ne
	bl	_EX_CALL_INFO
Lloh12:
	adrp	x8, _ZEND_CALL_CLOSURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZEND_CALL_CLOSURE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	x20, x20, ne
	ldr	x9, [x22]
	ldr	x10, [x21, #16]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.8:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.9:
	mvn	x10, x10
	add	x9, x9, x10
	ldr	x13, [x21, #32]
Lloh15:
	adrp	x10, _ZEND_LIVE_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ZEND_LIVE_MASK@GOTPAGEOFF]
Lloh17:
	adrp	x11, _ZEND_LIVE_TMPVAR@GOTPAGE
Lloh18:
	ldr	x11, [x11, _ZEND_LIVE_TMPVAR@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	ldr	x11, [x11]
Lloh21:
	adrp	x12, _ZEND_LIVE_LOOP@GOTPAGE
Lloh22:
	ldr	x12, [x12, _ZEND_LIVE_LOOP@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	add	x13, x13, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x13, x13, #24
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x14, [x13, #-8]
	cmp	x14, x9
	b.hi	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x14, [x13]
	cmp	x9, x14
	b.hs	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x14, [x13, #8]
	and	x14, x10, x14
	cmp	x14, x11
	ccmp	x14, x12, #4, ne
	cinc	x20, x20, eq
	b	LBB0_10
LBB0_14:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
LBB0_15:
	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
LBB0_16:
	ldr	x0, [x19, #8]
	cmp	x0, x19
	b.eq	LBB0_15
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_zend_generator_get_child
	add	x20, x20, #1
	cmp	x0, x19
	b.ne	LBB0_17
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_func,4,2                       ; @func
	.comm	_ZEND_CALL_HAS_SYMBOL_TABLE,4,2 ; @ZEND_CALL_HAS_SYMBOL_TABLE
	.comm	_ZEND_CALL_FREE_EXTRA_ARGS,4,2  ; @ZEND_CALL_FREE_EXTRA_ARGS
	.comm	_ZEND_CALL_RELEASE_THIS,4,2     ; @ZEND_CALL_RELEASE_THIS
	.comm	_ZEND_CALL_CLOSURE,4,2          ; @ZEND_CALL_CLOSURE
	.comm	_ZEND_LIVE_MASK,8,3             ; @ZEND_LIVE_MASK
	.comm	_ZEND_LIVE_TMPVAR,8,3           ; @ZEND_LIVE_TMPVAR
	.comm	_ZEND_LIVE_LOOP,8,3             ; @ZEND_LIVE_LOOP
	.no_dead_strip	_calc_gc_buffer_size
.subsections_via_symbols
