	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function berkeley_calc
_berkeley_calc:                         ## @berkeley_calc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %ecx
	movq	_SHF_ALLOC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.2:
	movq	_SHF_EXECINSTR@GOTPCREL(%rip), %rdx
	movq	_text_size@GOTPCREL(%rip), %rax
	testl	%ecx, (%rdx)
	je	LBB0_3
LBB0_7:
	movl	16(%rdi), %ecx
	addl	%ecx, (%rax)
LBB0_8:
	popq	%rbp
	retq
LBB0_3:
	movq	_SHF_WRITE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.4:
	movq	8(%rdi), %rax
	movq	_SHT_NOBITS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_bss_size@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_data_size@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SHF_ALLOC,4,2                  ## @SHF_ALLOC
	.comm	_SHF_EXECINSTR,4,2              ## @SHF_EXECINSTR
	.comm	_SHF_WRITE,4,2                  ## @SHF_WRITE
	.comm	_text_size,4,2                  ## @text_size
	.comm	_SHT_NOBITS,8,3                 ## @SHT_NOBITS
	.comm	_data_size,4,2                  ## @data_size
	.comm	_bss_size,4,2                   ## @bss_size
	.no_dead_strip	_berkeley_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function berkeley_calc
_berkeley_calc:                         ; @berkeley_calc
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SHF_ALLOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHF_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, _SHF_EXECINSTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SHF_EXECINSTR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _text_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _text_size@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x9, _SHF_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SHF_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.5:
	ldr	x8, [x0, #8]
Lloh11:
	adrp	x9, _SHT_NOBITS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SHT_NOBITS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _data_size@GOTPAGE
Lloh15:
	ldr	x10, [x10, _data_size@GOTPAGEOFF]
Lloh16:
	adrp	x11, _bss_size@GOTPAGE
Lloh17:
	ldr	x11, [x11, _bss_size@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_6:
	ldr	w9, [x0, #16]
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SHF_ALLOC,4,2                  ; @SHF_ALLOC
	.comm	_SHF_EXECINSTR,4,2              ; @SHF_EXECINSTR
	.comm	_SHF_WRITE,4,2                  ; @SHF_WRITE
	.comm	_text_size,4,2                  ; @text_size
	.comm	_SHT_NOBITS,8,3                 ; @SHT_NOBITS
	.comm	_data_size,4,2                  ; @data_size
	.comm	_bss_size,4,2                   ; @bss_size
	.no_dead_strip	_berkeley_calc
.subsections_via_symbols
