	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_send_mb_data
_brcmf_pcie_send_mb_data:               ## @brcmf_pcie_send_mb_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	%r12, %rsi
	callq	_brcmf_pcie_read_tcm32
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_PCIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_brcmf_dbg
	movl	$101, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	decq	%rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_brcmf_pcie_read_tcm32
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_brcmf_pcie_write_tcm32
	movl	(%r15), %edi
	movq	_BRCMF_PCIE_REG_SBMBX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_pci_write_config_dword
	movl	4(%r15), %edi
	movq	_BCMA_CORE_PCIE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_brcmf_chip_get_core
	xorl	%ebx, %ebx
	cmpl	$13, (%rax)
	jg	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_pci_write_config_dword
	jmp	LBB0_7
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE,4,2                       ## @PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MB transaction is already pending 0x%04x\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_BRCMF_PCIE_REG_SBMBX,4,2       ## @BRCMF_PCIE_REG_SBMBX
	.comm	_BCMA_CORE_PCIE2,4,2            ## @BCMA_CORE_PCIE2
	.no_dead_strip	_brcmf_pcie_send_mb_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_send_mb_data
_brcmf_pcie_send_mb_data:               ; @brcmf_pcie_send_mb_data
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x1, x21
	bl	_brcmf_pcie_read_tcm32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _PCIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	w22, #101
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	subs	x22, x22, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_brcmf_pcie_read_tcm32
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_brcmf_pcie_write_tcm32
	ldr	w0, [x19]
Lloh5:
	adrp	x20, _BRCMF_PCIE_REG_SBMBX@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BRCMF_PCIE_REG_SBMBX@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_pci_write_config_dword
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x8, _BCMA_CORE_PCIE2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BCMA_CORE_PCIE2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_brcmf_chip_get_core
	ldr	w8, [x0]
	cmp	w8, #13
	b.gt	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_pci_write_config_dword
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MB transaction is already pending 0x%04x\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_BRCMF_PCIE_REG_SBMBX,4,2       ; @BRCMF_PCIE_REG_SBMBX
	.comm	_BCMA_CORE_PCIE2,4,2            ; @BCMA_CORE_PCIE2
	.no_dead_strip	_brcmf_pcie_send_mb_data
.subsections_via_symbols
