	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_phi_node
_allocate_phi_node:                     ## @allocate_phi_node
	.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	%edi, %ebx
	movq	_free_phinode_count@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.1:
	movq	_NUM_BUCKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	-2(%rdx), %ecx
	leal	-2(%rbx), %eax
	cmpl	%ebx, %edx
	jle	LBB0_6
## %bb.2:
	movq	_free_phinodes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cltq
	movslq	%ecx, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rsi, %rax
	jl	LBB0_3
	jmp	LBB0_5
LBB0_6:
	cmpl	%ecx, %eax
	jge	LBB0_5
## %bb.7:
	movq	_free_phinodes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movslq	%eax, %r12
	movq	(%rcx,%r12,8), %rdi
	callq	_PHI_ARG_CAPACITY
	cmpl	%ebx, %eax
	jge	LBB0_8
LBB0_5:
	shll	$2, %ebx
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ggc_alloc                      ## TAILCALL
LBB0_8:
	decq	(%r14)
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_PHI_CHAIN
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_BUCKETS,4,2                ## @NUM_BUCKETS
	.comm	_free_phinode_count,8,3         ## @free_phinode_count
	.comm	_free_phinodes,8,3              ## @free_phinodes
	.comm	_phi_kind,8,3                   ## @phi_kind
	.comm	_phi_nodes_created,4,2          ## @phi_nodes_created
	.comm	_phi_nodes_reused,4,2           ## @phi_nodes_reused
	.comm	_tree_node_counts,8,3           ## @tree_node_counts
	.comm	_tree_node_sizes,8,3            ## @tree_node_sizes
	.no_dead_strip	_allocate_phi_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_phi_node
_allocate_phi_node:                     ; @allocate_phi_node
	.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, x0
Lloh0:
	adrp	x20, _free_phinode_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _free_phinode_count@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _NUM_BUCKETS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_BUCKETS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	sub	w8, w9, #2
	sub	w21, w19, #2
	cmp	w9, w19
	b.le	LBB0_6
; %bb.2:
Lloh5:
	adrp	x9, _free_phinodes@GOTPAGE
Lloh6:
	ldr	x9, [x9, _free_phinodes@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sxtw	x21, w21
	sxtw	x10, w8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x21, lsl #3]
	cbnz	x11, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x10
	b.lt	LBB0_3
	b	LBB0_8
LBB0_5:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_6:
	cmp	w21, w8
	b.ge	LBB0_8
; %bb.7:
Lloh8:
	adrp	x22, _free_phinodes@GOTPAGE
Lloh9:
	ldr	x22, [x22, _free_phinodes@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8, w21, sxtw #3]
	bl	_PHI_ARG_CAPACITY
	cmp	w0, w19
	b.ge	LBB0_9
LBB0_8:
	lsl	w0, w19, #2
	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
	b	_ggc_alloc
LBB0_9:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x8, w21
	ldr	x9, [x20]
	sub	x9, x9, #1
	str	x9, [x20]
	ldr	x9, [x22]
	lsl	x20, x8, #3
	ldr	x19, [x9, x20]
	mov	x0, x19
	bl	_PHI_CHAIN
	ldr	x8, [x22]
	str	x0, [x8, x20]
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_BUCKETS,4,2                ; @NUM_BUCKETS
	.comm	_free_phinode_count,8,3         ; @free_phinode_count
	.comm	_free_phinodes,8,3              ; @free_phinodes
	.comm	_phi_kind,8,3                   ; @phi_kind
	.comm	_phi_nodes_created,4,2          ; @phi_nodes_created
	.comm	_phi_nodes_reused,4,2           ; @phi_nodes_reused
	.comm	_tree_node_counts,8,3           ; @tree_node_counts
	.comm	_tree_node_sizes,8,3            ; @tree_node_sizes
	.no_dead_strip	_allocate_phi_node
.subsections_via_symbols
