	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpn_ave                        ## -- Begin function rpn_ave
	.p2align	4, 0x90
_rpn_ave:                               ## @rpn_ave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_stat_sum
	movq	_calc@GOTPCREL(%rip), %r14
	movl	8(%r14), %edi
	movq	_IDC_LIST_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LB_GETCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_MPFR_DEFAULT_RND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%edi, %esi
	movl	%eax, %edx
	callq	_mpfr_div_ui
LBB0_2:
	movq	(%r14), %rax
	movq	_IDC_RADIO_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	movl	%edi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mpfr_trunc                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_calc,16,3                      ## @calc
	.comm	_IDC_LIST_STAT,4,2              ## @IDC_LIST_STAT
	.comm	_LB_GETCOUNT,4,2                ## @LB_GETCOUNT
	.comm	_MPFR_DEFAULT_RND,4,2           ## @MPFR_DEFAULT_RND
	.comm	_IDC_RADIO_DEC,8,3              ## @IDC_RADIO_DEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpn_ave                        ; -- Begin function rpn_ave
	.p2align	2
_rpn_ave:                               ; @rpn_ave
	.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
	ldr	w0, [x0]
	bl	_stat_sum
Lloh0:
	adrp	x20, _calc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _calc@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _IDC_LIST_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDC_LIST_STAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _LB_GETCOUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_GETCOUNT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_SendDlgItemMessage
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _MPFR_DEFAULT_RND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPFR_DEFAULT_RND@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x0
	bl	_mpfr_div_ui
LBB0_2:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _IDC_RADIO_DEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IDC_RADIO_DEC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
	mov	x1, x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mpfr_trunc
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_calc,16,3                      ; @calc
	.comm	_IDC_LIST_STAT,4,2              ; @IDC_LIST_STAT
	.comm	_LB_GETCOUNT,4,2                ; @LB_GETCOUNT
	.comm	_MPFR_DEFAULT_RND,4,2           ; @MPFR_DEFAULT_RND
	.comm	_IDC_RADIO_DEC,8,3              ; @IDC_RADIO_DEC
.subsections_via_symbols
