	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g2_irq_thread_fn
_mv88e6xxx_g2_irq_thread_fn:            ## @mv88e6xxx_g2_irq_thread_fn
	.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
	movq	%rsi, %rdi
	callq	_mv88e6xxx_reg_lock
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_g2_int_source
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_7:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$16, %ebx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-28(%rbp), %eax
	btl	%ebx, %eax
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	incl	%r15d
	jmp	LBB0_4
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_mv88e6xxx_g2_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g2_irq_thread_fn
_mv88e6xxx_g2_irq_thread_fn:            ; @mv88e6xxx_g2_irq_thread_fn
	.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, x1
	mov	x0, x1
	bl	_mv88e6xxx_reg_lock
	add	x1, sp, #12
	mov	x0, x19
	bl	_mv88e6xxx_g2_int_source
	mov	x20, x0
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	cbz	w20, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w20, #16
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_irq_find_mapping
	bl	_handle_nested_irq
	add	w21, w21, #1
	b	LBB0_3
LBB0_6:
	cbz	w21, LBB0_1
; %bb.7:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_mv88e6xxx_g2_irq_thread_fn
.subsections_via_symbols
