	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_chip_tcm_ramsize
_brcmf_chip_tcm_ramsize:                ## @brcmf_chip_tcm_ramsize
	.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
	movq	%rdi, %r15
	movq	_ARMCR4_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_brcmf_chip_core_read32
	movl	%eax, %r14d
	movq	_ARMCR4_TCBANB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_ARMCR4_TCBANB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_ARMCR4_TCBBNB_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	movq	_ARMCR4_TCBBNB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r14d
	addl	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_ARMCR4_BSZ_MULT@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ARMCR4_BANKIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_brcmf_chip_core_write32
	movq	_ARMCR4_BANKINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcmf_chip_core_read32
	movq	_ARMCR4_BSZ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	incl	%eax
	imull	(%r13), %eax
	addl	%eax, %r12d
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARMCR4_CAP,4,2                 ## @ARMCR4_CAP
	.comm	_ARMCR4_TCBANB_MASK,4,2         ## @ARMCR4_TCBANB_MASK
	.comm	_ARMCR4_TCBANB_SHIFT,4,2        ## @ARMCR4_TCBANB_SHIFT
	.comm	_ARMCR4_TCBBNB_MASK,4,2         ## @ARMCR4_TCBBNB_MASK
	.comm	_ARMCR4_TCBBNB_SHIFT,4,2        ## @ARMCR4_TCBBNB_SHIFT
	.comm	_ARMCR4_BANKIDX,4,2             ## @ARMCR4_BANKIDX
	.comm	_ARMCR4_BANKINFO,4,2            ## @ARMCR4_BANKINFO
	.comm	_ARMCR4_BSZ_MASK,4,2            ## @ARMCR4_BSZ_MASK
	.comm	_ARMCR4_BSZ_MULT,4,2            ## @ARMCR4_BSZ_MULT
	.no_dead_strip	_brcmf_chip_tcm_ramsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_chip_tcm_ramsize
_brcmf_chip_tcm_ramsize:                ; @brcmf_chip_tcm_ramsize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _ARMCR4_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARMCR4_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_brcmf_chip_core_read32
Lloh3:
	adrp	x8, _ARMCR4_TCBANB_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARMCR4_TCBANB_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _ARMCR4_TCBANB_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARMCR4_TCBANB_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _ARMCR4_TCBBNB_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ARMCR4_TCBBNB_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh12:
	adrp	x10, _ARMCR4_TCBBNB_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ARMCR4_TCBBNB_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w9, w9, w10
	add	w22, w9, w8
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
	mov	w20, #0
Lloh15:
	adrp	x23, _ARMCR4_BANKIDX@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ARMCR4_BANKIDX@GOTPAGEOFF]
Lloh17:
	adrp	x24, _ARMCR4_BANKINFO@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ARMCR4_BANKINFO@GOTPAGEOFF]
Lloh19:
	adrp	x25, _ARMCR4_BSZ_MASK@GOTPAGE
Lloh20:
	ldr	x25, [x25, _ARMCR4_BSZ_MASK@GOTPAGEOFF]
Lloh21:
	adrp	x26, _ARMCR4_BSZ_MULT@GOTPAGE
Lloh22:
	ldr	x26, [x26, _ARMCR4_BSZ_MULT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_brcmf_chip_core_write32
	ldr	w1, [x24]
	mov	x0, x19
	bl	_brcmf_chip_core_read32
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	madd	w8, w9, w8, w9
	add	w20, w8, w20
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARMCR4_CAP,4,2                 ; @ARMCR4_CAP
	.comm	_ARMCR4_TCBANB_MASK,4,2         ; @ARMCR4_TCBANB_MASK
	.comm	_ARMCR4_TCBANB_SHIFT,4,2        ; @ARMCR4_TCBANB_SHIFT
	.comm	_ARMCR4_TCBBNB_MASK,4,2         ; @ARMCR4_TCBBNB_MASK
	.comm	_ARMCR4_TCBBNB_SHIFT,4,2        ; @ARMCR4_TCBBNB_SHIFT
	.comm	_ARMCR4_BANKIDX,4,2             ; @ARMCR4_BANKIDX
	.comm	_ARMCR4_BANKINFO,4,2            ; @ARMCR4_BANKINFO
	.comm	_ARMCR4_BSZ_MASK,4,2            ; @ARMCR4_BSZ_MASK
	.comm	_ARMCR4_BSZ_MULT,4,2            ; @ARMCR4_BSZ_MULT
	.no_dead_strip	_brcmf_chip_tcm_ramsize
.subsections_via_symbols
