	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_init_share_ram_info
_brcmf_pcie_init_share_ram_info:        ## @brcmf_pcie_init_share_ram_info
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	72(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r14, 64(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_brcmf_pcie_read_tcm32
	movl	%eax, 8(%rbx)
	movq	_BRCMF_PCIE_SHARED_VERSION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %rdx
	movq	%rdx, 16(%rbx)
	movq	_PCIE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	16(%rbx), %rdx
	movq	_BRCMF_PCIE_MAX_SHARED_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jg	LBB0_2
## %bb.1:
	movq	_BRCMF_PCIE_MIN_SHARED_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_2
## %bb.3:
	movl	8(%rbx), %eax
	movq	_BRCMF_PCIE_SHARED_DMA_INDEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_BRCMF_PCIE_SHARED_DMA_2B_IDX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	sete	%dl
	leal	4(,%rdx,4), %eax
	movl	%eax, (%rbx)
LBB0_5:
	movq	_BRCMF_SHARED_MAX_RXBUFPOST_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_brcmf_pcie_read_tcm16
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_BRCMF_DEF_MAX_RXBUFPOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_7:
	movq	_BRCMF_SHARED_RX_DATAOFFSET_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_brcmf_pcie_read_tcm32
	movq	%rax, 32(%rbx)
	movq	_BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_brcmf_pcie_read_tcm32
	movq	%rax, 56(%rbx)
	movq	_BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_brcmf_pcie_read_tcm32
	movq	%rax, 48(%rbx)
	movq	_BRCMF_SHARED_RING_INFO_ADDR_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_brcmf_pcie_read_tcm32
	movq	%rax, 40(%rbx)
	movl	(%r13), %edi
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	%rbx, %rdi
	callq	_brcmf_pcie_bus_console_init
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_brcmf_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_PCIE_SHARED_VERSION_MASK,4,2 ## @BRCMF_PCIE_SHARED_VERSION_MASK
	.comm	_PCIE,4,2                       ## @PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCIe protocol version %d\n"

	.comm	_BRCMF_PCIE_MAX_SHARED_VERSION,8,3 ## @BRCMF_PCIE_MAX_SHARED_VERSION
	.comm	_BRCMF_PCIE_MIN_SHARED_VERSION,8,3 ## @BRCMF_PCIE_MIN_SHARED_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported PCIE version %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BRCMF_PCIE_SHARED_DMA_INDEX,4,2 ## @BRCMF_PCIE_SHARED_DMA_INDEX
	.comm	_BRCMF_PCIE_SHARED_DMA_2B_IDX,4,2 ## @BRCMF_PCIE_SHARED_DMA_2B_IDX
	.comm	_BRCMF_SHARED_MAX_RXBUFPOST_OFFSET,8,3 ## @BRCMF_SHARED_MAX_RXBUFPOST_OFFSET
	.comm	_BRCMF_DEF_MAX_RXBUFPOST,8,3    ## @BRCMF_DEF_MAX_RXBUFPOST
	.comm	_BRCMF_SHARED_RX_DATAOFFSET_OFFSET,8,3 ## @BRCMF_SHARED_RX_DATAOFFSET_OFFSET
	.comm	_BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET,8,3 ## @BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET
	.comm	_BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET,8,3 ## @BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET
	.comm	_BRCMF_SHARED_RING_INFO_ADDR_OFFSET,8,3 ## @BRCMF_SHARED_RING_INFO_ADDR_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"max rx buf post %d, rx dataoffset %d\n"

	.no_dead_strip	_brcmf_pcie_init_share_ram_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_init_share_ram_info
_brcmf_pcie_init_share_ram_info:        ; @brcmf_pcie_init_share_ram_info
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #72]
	bl	_dev_get_drvdata
	mov	x21, x0
	str	x20, [x19, #64]
	mov	x0, x19
	mov	x1, x20
	bl	_brcmf_pcie_read_tcm32
	str	w0, [x19, #8]
Lloh0:
	adrp	x8, _BRCMF_PCIE_SHARED_VERSION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_PCIE_SHARED_VERSION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	sxtw	x2, w8
	str	x2, [x19, #16]
Lloh3:
	adrp	x22, _PCIE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCIE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x2, [x19, #16]
Lloh7:
	adrp	x8, _BRCMF_PCIE_MAX_SHARED_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMF_PCIE_MAX_SHARED_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _BRCMF_PCIE_MIN_SHARED_VERSION@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BRCMF_PCIE_MIN_SHARED_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x2, x9, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_brcmf_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19, #8]
Lloh18:
	adrp	x9, _BRCMF_PCIE_SHARED_DMA_INDEX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BRCMF_PCIE_SHARED_DMA_INDEX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh21:
	adrp	x9, _BRCMF_PCIE_SHARED_DMA_2B_IDX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BRCMF_PCIE_SHARED_DMA_2B_IDX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #4
	mov	w9, #8
	csel	w8, w9, w8, eq
	str	w8, [x19]
LBB0_4:
Lloh24:
	adrp	x8, _BRCMF_SHARED_MAX_RXBUFPOST_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRCMF_SHARED_MAX_RXBUFPOST_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_brcmf_pcie_read_tcm16
	str	x0, [x19, #24]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _BRCMF_DEF_MAX_RXBUFPOST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BRCMF_DEF_MAX_RXBUFPOST@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_6:
Lloh30:
	adrp	x8, _BRCMF_SHARED_RX_DATAOFFSET_OFFSET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BRCMF_SHARED_RX_DATAOFFSET_OFFSET@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_brcmf_pcie_read_tcm32
	str	x0, [x19, #32]
Lloh33:
	adrp	x8, _BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_brcmf_pcie_read_tcm32
	str	x0, [x19, #56]
Lloh36:
	adrp	x8, _BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_brcmf_pcie_read_tcm32
	str	x0, [x19, #48]
Lloh39:
	adrp	x8, _BRCMF_SHARED_RING_INFO_ADDR_OFFSET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BRCMF_SHARED_RING_INFO_ADDR_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_brcmf_pcie_read_tcm32
	str	x0, [x19, #40]
	ldr	w0, [x22]
	ldp	x2, x8, [x19, #24]
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x19
	bl	_brcmf_pcie_bus_console_init
	mov	w0, #0
LBB0_7:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_PCIE_SHARED_VERSION_MASK,4,2 ; @BRCMF_PCIE_SHARED_VERSION_MASK
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCIe protocol version %d\n"

	.comm	_BRCMF_PCIE_MAX_SHARED_VERSION,8,3 ; @BRCMF_PCIE_MAX_SHARED_VERSION
	.comm	_BRCMF_PCIE_MIN_SHARED_VERSION,8,3 ; @BRCMF_PCIE_MIN_SHARED_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported PCIE version %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BRCMF_PCIE_SHARED_DMA_INDEX,4,2 ; @BRCMF_PCIE_SHARED_DMA_INDEX
	.comm	_BRCMF_PCIE_SHARED_DMA_2B_IDX,4,2 ; @BRCMF_PCIE_SHARED_DMA_2B_IDX
	.comm	_BRCMF_SHARED_MAX_RXBUFPOST_OFFSET,8,3 ; @BRCMF_SHARED_MAX_RXBUFPOST_OFFSET
	.comm	_BRCMF_DEF_MAX_RXBUFPOST,8,3    ; @BRCMF_DEF_MAX_RXBUFPOST
	.comm	_BRCMF_SHARED_RX_DATAOFFSET_OFFSET,8,3 ; @BRCMF_SHARED_RX_DATAOFFSET_OFFSET
	.comm	_BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET,8,3 ; @BRCMF_SHARED_HTOD_MB_DATA_ADDR_OFFSET
	.comm	_BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET,8,3 ; @BRCMF_SHARED_DTOH_MB_DATA_ADDR_OFFSET
	.comm	_BRCMF_SHARED_RING_INFO_ADDR_OFFSET,8,3 ; @BRCMF_SHARED_RING_INFO_ADDR_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"max rx buf post %d, rx dataoffset %d\n"

	.no_dead_strip	_brcmf_pcie_init_share_ram_info
.subsections_via_symbols
