	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_intstatus
_wlc_intstatus:                         ## @wlc_intstatus
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	callq	_D11REGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %r13d
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	movl	(%r12,%rax,4), %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_trace_brcms_macintstatus
	movq	%r12, %rdi
	callq	_brcms_deviceremoved
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	cmpl	$-1, %r13d
	je	LBB0_6
## %bb.2:
	andl	%r13d, %r14d
	je	LBB0_6
## %bb.3:
	movq	_macintmask@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_D11REGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_bcma_write32
	movl	(%rbx), %edi
	callq	_D11REGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$0, (%r12)
	movl	%r14d, %edi
	callq	_D11REGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_bcma_write32
	movq	_MI_DMAINT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_intctrlregs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RX_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_D11REGOFFS
	movq	_DEF_RXINTMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
LBB0_5:
	movl	%r14d, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_macintmask,4,2                 ## @macintmask
	.comm	_MI_DMAINT,4,2                  ## @MI_DMAINT
	.comm	_intctrlregs,8,3                ## @intctrlregs
	.comm	_RX_FIFO,8,3                    ## @RX_FIFO
	.comm	_DEF_RXINTMASK,4,2              ## @DEF_RXINTMASK
	.no_dead_strip	_wlc_intstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_intstatus
_wlc_intstatus:                         ; @wlc_intstatus
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x21, x0
	cmp	w1, #0
	cset	w22, eq
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	mov	x20, x0
	ldr	w22, [x21, w22, uxtw #2]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_trace_brcms_macintstatus
	mov	x0, x21
	bl	_brcms_deviceremoved
	cbz	x0, LBB0_3
; %bb.1:
	mov	w20, #-1
LBB0_2:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmn	w20, #1
	b.eq	LBB0_7
; %bb.4:
	ands	w20, w22, w20
	b.eq	LBB0_2
; %bb.5:
Lloh0:
	adrp	x22, _macintmask@GOTPAGE
Lloh1:
	ldr	x22, [x22, _macintmask@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_bcma_write32
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	str	wzr, [x21]
	mov	x0, x20
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_bcma_write32
Lloh2:
	adrp	x8, _MI_DMAINT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_DMAINT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.6:
Lloh5:
	adrp	x8, _intctrlregs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _intctrlregs@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _RX_FIFO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RX_FIFO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_D11REGOFFS
	mov	x1, x0
Lloh11:
	adrp	x8, _DEF_RXINTMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEF_RXINTMASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcma_write32
	b	LBB0_2
LBB0_7:
	mov	w20, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_macintmask,4,2                 ; @macintmask
	.comm	_MI_DMAINT,4,2                  ; @MI_DMAINT
	.comm	_intctrlregs,8,3                ; @intctrlregs
	.comm	_RX_FIFO,8,3                    ; @RX_FIFO
	.comm	_DEF_RXINTMASK,4,2              ; @DEF_RXINTMASK
	.no_dead_strip	_wlc_intstatus
.subsections_via_symbols
