	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_release_irq
_brcmf_pcie_release_irq:                ## @brcmf_pcie_release_irq
	.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	%rdi, %r12
	movq	16(%rdi), %r15
	leaq	4(%r15), %rdi
	callq	_dev_get_drvdata
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_brcmf_pcie_intr_disable
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movq	%r15, %rdi
	callq	_pci_disable_msi
	movl	$50, %edi
	callq	_msleep
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_msleep
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$19, %ebx
	movl	%ecx, %ebx
	jb	LBB0_3
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_brcmf_err
LBB0_7:
	movq	_BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_brcmf_pcie_read_reg32
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_brcmf_pcie_write_reg32
	movl	$0, (%r12)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Still in IRQ (processing) !!!\n"

	.comm	_BRCMF_PCIE_PCIE2REG_MAILBOXINT,4,2 ## @BRCMF_PCIE_PCIE2REG_MAILBOXINT
	.no_dead_strip	_brcmf_pcie_release_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_release_irq
_brcmf_pcie_release_irq:                ; @brcmf_pcie_release_irq
	.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, x0
	ldr	x21, [x0, #16]
	add	x0, x21, #4
	bl	_dev_get_drvdata
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_brcmf_pcie_intr_disable
	ldr	w0, [x21]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x21
	bl	_pci_disable_msi
	mov	w0, #50
	bl	_msleep
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_msleep
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	w21, #19, #2, ne
	add	w21, w21, #1
	b.lo	LBB0_3
; %bb.4:
	cbz	x8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_brcmf_err
LBB0_6:
Lloh2:
	adrp	x20, _BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BRCMF_PCIE_PCIE2REG_MAILBOXINT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_brcmf_pcie_read_reg32
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_brcmf_pcie_write_reg32
	str	wzr, [x19]
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Still in IRQ (processing) !!!\n"

	.comm	_BRCMF_PCIE_PCIE2REG_MAILBOXINT,4,2 ; @BRCMF_PCIE_PCIE2REG_MAILBOXINT
	.no_dead_strip	_brcmf_pcie_release_irq
.subsections_via_symbols
