	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_chip_socram_banksize
_brcmf_chip_socram_banksize:            ## @brcmf_chip_socram_banksize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_SOCRAM_MEMTYPE_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCRAM_BANKIDX_MEMTYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%esi, %ebx
	movl	%ebx, %edi
	callq	_SOCRAMREGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_brcmf_chip_core_write32
	callq	_SOCRAMREGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_brcmf_chip_core_read32
	movq	_SOCRAM_BANKINFO_SZMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	incl	%ecx
	movl	%ecx, (%r14)
	movq	_SOCRAM_BANKINFO_SZBASE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	movl	%ecx, (%r14)
	movq	_SOCRAM_BANKINFO_RETNTRAM_MASK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCRAM_MEMTYPE_RAM,4,2         ## @SOCRAM_MEMTYPE_RAM
	.comm	_SOCRAM_BANKIDX_MEMTYPE_SHIFT,4,2 ## @SOCRAM_BANKIDX_MEMTYPE_SHIFT
	.comm	_SOCRAM_BANKINFO_SZMASK,4,2     ## @SOCRAM_BANKINFO_SZMASK
	.comm	_SOCRAM_BANKINFO_SZBASE,4,2     ## @SOCRAM_BANKINFO_SZBASE
	.comm	_SOCRAM_BANKINFO_RETNTRAM_MASK,4,2 ## @SOCRAM_BANKINFO_RETNTRAM_MASK
	.no_dead_strip	_brcmf_chip_socram_banksize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_chip_socram_banksize
_brcmf_chip_socram_banksize:            ; @brcmf_chip_socram_banksize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _SOCRAM_MEMTYPE_RAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCRAM_MEMTYPE_RAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SOCRAM_BANKIDX_MEMTYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCRAM_BANKIDX_MEMTYPE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w21, w8, w1
	mov	x0, x21
	bl	_SOCRAMREGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_chip_core_write32
	bl	_SOCRAMREGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_brcmf_chip_core_read32
Lloh6:
	adrp	x8, _SOCRAM_BANKINFO_SZMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCRAM_BANKINFO_SZMASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	add	w8, w8, #1
	str	w8, [x19]
Lloh9:
	adrp	x9, _SOCRAM_BANKINFO_SZBASE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCRAM_BANKINFO_SZBASE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mul	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x8, _SOCRAM_BANKINFO_RETNTRAM_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCRAM_BANKINFO_RETNTRAM_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCRAM_MEMTYPE_RAM,4,2         ; @SOCRAM_MEMTYPE_RAM
	.comm	_SOCRAM_BANKIDX_MEMTYPE_SHIFT,4,2 ; @SOCRAM_BANKIDX_MEMTYPE_SHIFT
	.comm	_SOCRAM_BANKINFO_SZMASK,4,2     ; @SOCRAM_BANKINFO_SZMASK
	.comm	_SOCRAM_BANKINFO_SZBASE,4,2     ; @SOCRAM_BANKINFO_SZBASE
	.comm	_SOCRAM_BANKINFO_RETNTRAM_MASK,4,2 ; @SOCRAM_BANKINFO_RETNTRAM_MASK
	.no_dead_strip	_brcmf_chip_socram_banksize
.subsections_via_symbols
