	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_spilled_pseudo
_count_spilled_pseudo:                  ## @count_spilled_pseudo
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_reg_renumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %r12
	movl	(%rax,%r12,4), %r15d
	movq	_hard_regno_nregs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rbx
	movq	(%rax,%rbx,8), %r14
	movl	%r12d, %edi
	callq	_PSEUDO_REGNO_MODE
	movl	(%r14,%rax,4), %r14d
	movq	_spilled_pseudos@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_REGNO_REG_SET_P
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%ecx, %eax
	cmpl	%r15d, %eax
	jle	LBB0_6
## %bb.2:
	addl	%r14d, %r15d
	cmpl	%ecx, %r15d
	jle	LBB0_6
## %bb.3:
	movq	_spilled_pseudos@GOTPCREL(%rip), %rdi
	movl	%r13d, %esi
	callq	_SET_REGNO_REG_SET
	movl	%r13d, %edi
	callq	_REG_FREQ
	movq	_spill_add_cost@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	%eax, (%rcx,%rbx,4)
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.4:
	incq	%r14
	shlq	$2, %rbx
	movq	_spill_cost@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_REG_FREQ
	movq	(%r15), %rcx
	addq	%rbx, %rcx
	subl	%eax, -8(%rcx,%r14,4)
	decq	%r14
	cmpq	$1, %r14
	ja	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_renumber,8,3               ## @reg_renumber
	.comm	_hard_regno_nregs,8,3           ## @hard_regno_nregs
	.comm	_spilled_pseudos,4,2            ## @spilled_pseudos
	.comm	_spill_add_cost,8,3             ## @spill_add_cost
	.comm	_spill_cost,8,3                 ## @spill_cost
	.no_dead_strip	_count_spilled_pseudo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_spilled_pseudo
_count_spilled_pseudo:                  ; @count_spilled_pseudo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _reg_renumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg_renumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w23, [x8, w2, sxtw #2]
Lloh3:
	adrp	x8, _hard_regno_nregs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hard_regno_nregs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x22, [x8, w23, sxtw #3]
	mov	x0, x2
	bl	_PSEUDO_REGNO_MODE
	ldr	w22, [x22, x0, lsl #2]
Lloh6:
	adrp	x0, _spilled_pseudos@GOTPAGE
Lloh7:
	ldr	x0, [x0, _spilled_pseudos@GOTPAGEOFF]
	mov	x1, x19
	bl	_REGNO_REG_SET_P
	add	w8, w20, w21
	add	w9, w22, w23
	cmp	x0, #0
	ccmp	w8, w23, #4, eq
	ccmp	w9, w21, #4, gt
	b.le	LBB0_4
; %bb.1:
	sxtw	x20, w23
Lloh8:
	adrp	x0, _spilled_pseudos@GOTPAGE
Lloh9:
	ldr	x0, [x0, _spilled_pseudos@GOTPAGEOFF]
	mov	x1, x19
	bl	_SET_REGNO_REG_SET
	mov	x0, x19
	bl	_REG_FREQ
Lloh10:
	adrp	x8, _spill_add_cost@GOTPAGE
Lloh11:
	ldr	x8, [x8, _spill_add_cost@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
	lsl	x8, x20, #2
	ldr	w10, [x9, x8]
	sub	w10, w10, w0
	str	w10, [x9, x8]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
	sub	x20, x8, #4
Lloh13:
	adrp	x21, _spill_cost@GOTPAGE
Lloh14:
	ldr	x21, [x21, _spill_cost@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_REG_FREQ
	ldr	x8, [x21]
	add	x8, x8, x20
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, w0
	str	w10, [x8, x9]
	subs	x22, x22, #1
	b.hi	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_renumber,8,3               ; @reg_renumber
	.comm	_hard_regno_nregs,8,3           ; @hard_regno_nregs
	.comm	_spilled_pseudos,4,2            ; @spilled_pseudos
	.comm	_spill_add_cost,8,3             ; @spill_add_cost
	.comm	_spill_cost,8,3                 ; @spill_cost
	.no_dead_strip	_count_spilled_pseudo
.subsections_via_symbols
