	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cgraph_edge_badness
_cgraph_edge_badness:                   ## @cgraph_edge_badness
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_max_count@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movl	$1, %edi
	callq	_cgraph_estimate_size_after_inlining
	movl	%eax, %ecx
	movq	8(%r14), %rax
	subl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.3:
	cvtsi2sdq	24(%r14), %xmm0
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	cvtsi2sdl	(%rax), %xmm1
	mulsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rbx), %xmm0
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	16(%r14), %edi
	movl	$8, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_cgraph_estimate_growth
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	%ebx, %edx
	movl	%r15d, %ecx
	sarl	%cl, %edx
	shll	%cl, %ebx
	testl	%eax, %eax
	cmovgl	%edx, %ebx
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_cgraph_recursive_inlining_p
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	subl	%ecx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_count,4,2                  ## @max_count
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.no_dead_strip	_cgraph_edge_badness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cgraph_edge_badness
_cgraph_edge_badness:                   ; @cgraph_edge_badness
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _max_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _max_count@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	mov	w0, #1
	bl	_cgraph_estimate_size_after_inlining
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w0, w8
	cmp	w8, #0
	b.le	LBB0_4
; %bb.2:
	ldr	d0, [x19, #24]
Lloh2:
	adrp	x9, _INT_MIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INT_MIN@GOTPAGEOFF]
	scvtf	d0, d0
Lloh4:
	ldr	s1, [x9]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmul	d0, d0, d1
	ldr	s1, [x20]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d0, d1
	fcvtzs	w9, d0
	sdiv	w0, w9, w8
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19, #16]
	mov	w1, #8
	bl	_MIN
	mov	x20, x0
	ldr	w0, [x19]
	bl	_cgraph_estimate_growth
	lsl	w8, w0, #8
	asr	w9, w8, w20
	lsl	w8, w8, w20
	cmp	w0, #0
	csel	w20, w9, w8, gt
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	x2, #0
	bl	_cgraph_recursive_inlining_p
	cmp	x0, #0
	cinc	w0, w20, ne
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x9, _INT_MIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INT_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sub	w0, w9, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_max_count,4,2                  ; @max_count
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.no_dead_strip	_cgraph_edge_badness
.subsections_via_symbols
