	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_isr_thread
_brcmf_pcie_isr_thread:                 ## @brcmf_pcie_isr_thread
	.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	%rsi, %r14
	movl	$1, (%rsi)
	movq	_BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_brcmf_pcie_read_reg32
	movl	%eax, %ebx
	movq	_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_brcmf_dbg
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_brcmf_pcie_write_reg32
	movq	_BRCMF_PCIE_MB_INT_FN0_0@GOTPCREL(%rip), %rax
	movq	_BRCMF_PCIE_MB_INT_FN0_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_brcmf_pcie_handle_mb_data
LBB0_3:
	movq	_BRCMF_PCIE_MB_INT_D2H_DB@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	movq	_BRCMFMAC_PCIE_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	16(%r14), %rdi
	callq	_brcmf_proto_msgbuf_rx_trigger
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_brcmf_pcie_bus_console_read
	movq	8(%r14), %rax
	movq	_BRCMFMAC_PCIE_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_brcmf_pcie_intr_enable
LBB0_8:
	movl	$0, (%r14)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_PCIE_PCIE2REG_MAILBOXINT,4,2 ## @BRCMF_PCIE_PCIE2REG_MAILBOXINT
	.comm	_PCIE,4,2                       ## @PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter %x\n"

	.comm	_BRCMF_PCIE_MB_INT_FN0_0,4,2    ## @BRCMF_PCIE_MB_INT_FN0_0
	.comm	_BRCMF_PCIE_MB_INT_FN0_1,4,2    ## @BRCMF_PCIE_MB_INT_FN0_1
	.comm	_BRCMF_PCIE_MB_INT_D2H_DB,4,2   ## @BRCMF_PCIE_MB_INT_D2H_DB
	.comm	_BRCMFMAC_PCIE_STATE_UP,8,3     ## @BRCMFMAC_PCIE_STATE_UP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_brcmf_pcie_isr_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_isr_thread
_brcmf_pcie_isr_thread:                 ; @brcmf_pcie_isr_thread
	.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, x1
	mov	w8, #1
	str	w8, [x1]
Lloh0:
	adrp	x22, _BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_brcmf_pcie_read_reg32
	mov	x20, x0
Lloh2:
	adrp	x8, _PCIE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_brcmf_dbg
Lloh7:
	adrp	x21, _BRCMFMAC_PCIE_STATE_UP@GOTPAGE
Lloh8:
	ldr	x21, [x21, _BRCMFMAC_PCIE_STATE_UP@GOTPAGEOFF]
	cbz	w20, LBB0_6
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_brcmf_pcie_write_reg32
Lloh9:
	adrp	x8, _BRCMF_PCIE_MB_INT_FN0_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMF_PCIE_MB_INT_FN0_0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BRCMF_PCIE_MB_INT_FN0_1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BRCMF_PCIE_MB_INT_FN0_1@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_brcmf_pcie_handle_mb_data
LBB0_3:
Lloh15:
	adrp	x8, _BRCMF_PCIE_MB_INT_D2H_DB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMF_PCIE_MB_INT_D2H_DB@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]
	bl	_brcmf_proto_msgbuf_rx_trigger
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_brcmf_pcie_bus_console_read
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_brcmf_pcie_intr_enable
LBB0_8:
	str	wzr, [x19]
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_PCIE_PCIE2REG_MAILBOXINT,4,2 ; @BRCMF_PCIE_PCIE2REG_MAILBOXINT
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter %x\n"

	.comm	_BRCMF_PCIE_MB_INT_FN0_0,4,2    ; @BRCMF_PCIE_MB_INT_FN0_0
	.comm	_BRCMF_PCIE_MB_INT_FN0_1,4,2    ; @BRCMF_PCIE_MB_INT_FN0_1
	.comm	_BRCMF_PCIE_MB_INT_D2H_DB,4,2   ; @BRCMF_PCIE_MB_INT_D2H_DB
	.comm	_BRCMFMAC_PCIE_STATE_UP,8,3     ; @BRCMFMAC_PCIE_STATE_UP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_brcmf_pcie_isr_thread
.subsections_via_symbols
