	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipcp_method_compute_scale
_ipcp_method_compute_scale:             ## @ipcp_method_compute_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	xorl	%esi, %esi
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rcx), %eax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_3:
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movq	_REG_BR_PROB_BASE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
LBB0_5:
	popq	%rbp
	jmp	_ipcp_method_set_scale          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_BR_PROB_BASE,4,2           ## @REG_BR_PROB_BASE
	.no_dead_strip	_ipcp_method_compute_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipcp_method_compute_scale
_ipcp_method_compute_scale:             ; @ipcp_method_compute_scale
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.1:
	mov	w8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	add	w8, w8, w10
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_2
; %bb.3:
	ldr	w9, [x0]
	cbz	w9, LBB0_6
LBB0_4:
Lloh0:
	adrp	x10, _REG_BR_PROB_BASE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _REG_BR_PROB_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w8, w10, w8
	sdiv	w1, w8, w9
	b	_ipcp_method_set_scale
LBB0_5:
	mov	w8, #0
	ldr	w9, [x0]
	cbnz	w9, LBB0_4
LBB0_6:
	mov	w1, #0
	b	_ipcp_method_set_scale
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_BR_PROB_BASE,4,2           ; @REG_BR_PROB_BASE
	.no_dead_strip	_ipcp_method_compute_scale
.subsections_via_symbols
