	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_chip_sysmem_ramsize
_brcmf_chip_sysmem_ramsize:             ## @brcmf_chip_sysmem_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, %r14
	callq	_brcmf_chip_iscoreup
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brcmf_chip_resetcore
LBB0_2:
	callq	_SYSMEMREGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_brcmf_chip_core_read32
	movl	%eax, %r15d
	movq	_SRCI_SRNB_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_SRCI_SRNB_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:
	leaq	-44(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_brcmf_chip_socram_banksize
	addl	-44(%rbp), %r13d
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_4
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRCI_SRNB_MASK,4,2             ## @SRCI_SRNB_MASK
	.comm	_SRCI_SRNB_SHIFT,4,2            ## @SRCI_SRNB_SHIFT
	.no_dead_strip	_brcmf_chip_sysmem_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_sysmem_ramsize
_brcmf_chip_sysmem_ramsize:             ; @brcmf_chip_sysmem_ramsize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_brcmf_chip_iscoreup
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_brcmf_chip_resetcore
LBB0_2:
	bl	_SYSMEMREGOFFS
	mov	x1, x0
	mov	x0, x19
	bl	_brcmf_chip_core_read32
Lloh0:
	adrp	x8, _SRCI_SRNB_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRCI_SRNB_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _SRCI_SRNB_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SRCI_SRNB_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w22, w8, w9
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w20, #0
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_brcmf_chip_socram_banksize
	ldr	w8, [sp, #12]
	add	w20, w8, w20
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRCI_SRNB_MASK,4,2             ; @SRCI_SRNB_MASK
	.comm	_SRCI_SRNB_SHIFT,4,2            ; @SRCI_SRNB_SHIFT
	.no_dead_strip	_brcmf_chip_sysmem_ramsize
.subsections_via_symbols
