	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_mips_irq             ## -- Begin function bcma_core_mips_irq
	.p2align	4, 0x90
_bcma_core_mips_irq:                    ## @bcma_core_mips_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), %rax
	movq	(%rax), %r14
	callq	_bcma_core_mips_irqflag
	movl	$6, %r15d
	cmpl	$63, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BCMA_MIPS_MIPS74K_INTMASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	btl	%ebx, %eax
	jb	LBB0_6
## %bb.2:
	movl	$1, %edi
	callq	_BCMA_MIPS_MIPS74K_INTMASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$1, %r15d
	testl	%r12d, %eax
	jne	LBB0_6
## %bb.3:
	movl	$2, %r15d
	movl	$2, %edi
	callq	_BCMA_MIPS_MIPS74K_INTMASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	testl	%r12d, %eax
	jne	LBB0_6
## %bb.4:
	movl	$3, %r15d
	movl	$3, %edi
	callq	_BCMA_MIPS_MIPS74K_INTMASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	testl	%r12d, %eax
	jne	LBB0_6
## %bb.5:
	movl	$4, %edi
	callq	_BCMA_MIPS_MIPS74K_INTMASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	xorl	%r15d, %r15d
	testl	%r12d, %eax
	sete	%r15b
	orl	$4, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_mips_irq             ; -- Begin function bcma_core_mips_irq
	.p2align	2
_bcma_core_mips_irq:                    ; @bcma_core_mips_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
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_bcma_core_mips_irqflag
	cmp	w0, #63
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #6
	b	LBB0_7
LBB0_2:
	mov	w8, #1
	lsl	w21, w8, w0
	mov	w0, #0
	bl	_BCMA_MIPS_MIPS74K_INTMASK
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	mov	w20, #0
	tst	w0, w21
	b.ne	LBB0_7
; %bb.3:
	mov	w20, #1
	mov	w0, #1
	bl	_BCMA_MIPS_MIPS74K_INTMASK
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	tst	w0, w21
	b.ne	LBB0_7
; %bb.4:
	mov	w20, #2
	mov	w0, #2
	bl	_BCMA_MIPS_MIPS74K_INTMASK
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	tst	w0, w21
	b.ne	LBB0_7
; %bb.5:
	mov	w20, #3
	mov	w0, #3
	bl	_BCMA_MIPS_MIPS74K_INTMASK
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	tst	w0, w21
	b.ne	LBB0_7
; %bb.6:
	mov	w20, #4
	mov	w0, #4
	bl	_BCMA_MIPS_MIPS74K_INTMASK
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
	tst	w0, w21
	cinc	w20, w20, eq
LBB0_7:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
