	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_handle_mb_data
_brcmf_pcie_handle_mb_data:             ## @brcmf_pcie_handle_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	20(%rdi), %ebx
	movl	%ebx, %esi
	callq	_brcmf_pcie_read_tcm32
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_brcmf_pcie_write_tcm32
	movq	_PCIE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_D2H_DEV_DS_ENTER_REQ@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_H2D_HOST_DS_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcmf_pcie_send_mb_data
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_3:
	movq	_BRCMF_D2H_DEV_DS_EXIT_NOTE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_5:
	movq	_BRCMF_D2H_DEV_D3_ACK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$1, (%r14)
	leaq	16(%r14), %rdi
	callq	_wake_up
LBB0_7:
	movq	_BRCMF_D2H_DEV_FWHALT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_fw_crashed               ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	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	"D2H_MB_DATA: 0x%04x\n"

	.comm	_BRCMF_D2H_DEV_DS_ENTER_REQ,4,2 ## @BRCMF_D2H_DEV_DS_ENTER_REQ
L_.str.1:                               ## @.str.1
	.asciz	"D2H_MB_DATA: DEEP SLEEP REQ\n"

	.comm	_BRCMF_H2D_HOST_DS_ACK,4,2      ## @BRCMF_H2D_HOST_DS_ACK
L_.str.2:                               ## @.str.2
	.asciz	"D2H_MB_DATA: sent DEEP SLEEP ACK\n"

	.comm	_BRCMF_D2H_DEV_DS_EXIT_NOTE,4,2 ## @BRCMF_D2H_DEV_DS_EXIT_NOTE
L_.str.3:                               ## @.str.3
	.asciz	"D2H_MB_DATA: DEEP SLEEP EXIT\n"

	.comm	_BRCMF_D2H_DEV_D3_ACK,4,2       ## @BRCMF_D2H_DEV_D3_ACK
L_.str.4:                               ## @.str.4
	.asciz	"D2H_MB_DATA: D3 ACK\n"

	.comm	_BRCMF_D2H_DEV_FWHALT,4,2       ## @BRCMF_D2H_DEV_FWHALT
L_.str.5:                               ## @.str.5
	.asciz	"D2H_MB_DATA: FW HALT\n"

	.no_dead_strip	_brcmf_pcie_handle_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_handle_mb_data
_brcmf_pcie_handle_mb_data:             ; @brcmf_pcie_handle_mb_data
	.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
	ldr	w21, [x0, #20]
	mov	x1, x21
	bl	_brcmf_pcie_read_tcm32
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_brcmf_pcie_write_tcm32
Lloh0:
	adrp	x21, _PCIE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCIE@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh4:
	adrp	x8, _BRCMF_D2H_DEV_DS_ENTER_REQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMF_D2H_DEV_DS_ENTER_REQ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
Lloh9:
	adrp	x8, _BRCMF_H2D_HOST_DS_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMF_H2D_HOST_DS_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcmf_pcie_send_mb_data
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
LBB0_3:
Lloh14:
	adrp	x8, _BRCMF_D2H_DEV_DS_EXIT_NOTE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BRCMF_D2H_DEV_DS_EXIT_NOTE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
LBB0_5:
Lloh19:
	adrp	x8, _BRCMF_D2H_DEV_D3_ACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BRCMF_D2H_DEV_D3_ACK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
	mov	w8, #1
	mov	x0, x19
	str	w8, [x0], #16
	bl	_wake_up
LBB0_7:
Lloh24:
	adrp	x8, _BRCMF_D2H_DEV_FWHALT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRCMF_D2H_DEV_FWHALT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_brcmf_dbg
	ldr	x0, [x19, #8]
	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
	b	_brcmf_fw_crashed
LBB0_9:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"D2H_MB_DATA: 0x%04x\n"

	.comm	_BRCMF_D2H_DEV_DS_ENTER_REQ,4,2 ; @BRCMF_D2H_DEV_DS_ENTER_REQ
l_.str.1:                               ; @.str.1
	.asciz	"D2H_MB_DATA: DEEP SLEEP REQ\n"

	.comm	_BRCMF_H2D_HOST_DS_ACK,4,2      ; @BRCMF_H2D_HOST_DS_ACK
l_.str.2:                               ; @.str.2
	.asciz	"D2H_MB_DATA: sent DEEP SLEEP ACK\n"

	.comm	_BRCMF_D2H_DEV_DS_EXIT_NOTE,4,2 ; @BRCMF_D2H_DEV_DS_EXIT_NOTE
l_.str.3:                               ; @.str.3
	.asciz	"D2H_MB_DATA: DEEP SLEEP EXIT\n"

	.comm	_BRCMF_D2H_DEV_D3_ACK,4,2       ; @BRCMF_D2H_DEV_D3_ACK
l_.str.4:                               ; @.str.4
	.asciz	"D2H_MB_DATA: D3 ACK\n"

	.comm	_BRCMF_D2H_DEV_FWHALT,4,2       ; @BRCMF_D2H_DEV_FWHALT
l_.str.5:                               ; @.str.5
	.asciz	"D2H_MB_DATA: FW HALT\n"

	.no_dead_strip	_brcmf_pcie_handle_mb_data
.subsections_via_symbols
