	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_irq_setup         ## -- Begin function mv88e6xxx_g2_irq_setup
	.p2align	4, 0x90
_mv88e6xxx_g2_irq_setup:                ## @mv88e6xxx_g2_irq_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movq	_mv88e6xxx_g2_irq_domain_ops@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$16, %esi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_irq_domain_add_simple
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$2, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$3, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$4, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$5, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$6, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$7, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$8, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$9, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$10, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$11, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$12, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$13, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$14, %esi
	callq	_irq_create_mapping
	movl	4(%rbx), %edi
	movl	$15, %esi
	callq	_irq_create_mapping
	movq	_mv88e6xxx_g2_irq_chip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$-1, 8(%rbx)
	movl	16(%rbx), %edi
	movq	_MV88E6XXX_G1_STS_IRQ_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_find_mapping
	movq	%rax, %r14
	movl	%r14d, (%rbx)
	testl	%r14d, %r14d
	js	LBB0_3
## %bb.2:
	movq	_mv88e6xxx_g2_irq_thread_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$2, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$3, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$4, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$5, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$6, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$7, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$8, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$9, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$10, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$11, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$12, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$13, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$14, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movl	$15, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	callq	_irq_domain_remove
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_g2_watchdog_setup    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mv88e6xxx_g2_irq_domain_ops,4,2 ## @mv88e6xxx_g2_irq_domain_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mv88e6xxx_g2_irq_chip,4,2      ## @mv88e6xxx_g2_irq_chip
	.comm	_MV88E6XXX_G1_STS_IRQ_DEVICE,4,2 ## @MV88E6XXX_G1_STS_IRQ_DEVICE
	.comm	_mv88e6xxx_g2_irq_thread_fn,4,2 ## @mv88e6xxx_g2_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mv88e6xxx-g2"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_irq_setup         ; -- Begin function mv88e6xxx_g2_irq_setup
	.p2align	2
_mv88e6xxx_g2_irq_setup:                ; @mv88e6xxx_g2_irq_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
Lloh0:
	adrp	x3, _mv88e6xxx_g2_irq_domain_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _mv88e6xxx_g2_irq_domain_ops@GOTPAGEOFF]
	mov	w1, #16
	mov	w2, #0
	mov	x4, x19
	bl	_irq_domain_add_simple
	str	w0, [x19, #4]
	cbz	w0, LBB0_4
; %bb.1:
	mov	w1, #0
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #2
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #3
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #4
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #5
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #6
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #7
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #8
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #9
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #10
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #11
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #12
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #13
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #14
	bl	_irq_create_mapping
	ldr	w0, [x19, #4]
	mov	w1, #15
	bl	_irq_create_mapping
Lloh2:
	adrp	x8, _mv88e6xxx_g2_irq_chip@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mv88e6xxx_g2_irq_chip@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #-1
	stp	w9, w8, [x19, #8]
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _MV88E6XXX_G1_STS_IRQ_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MV88E6XXX_G1_STS_IRQ_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_irq_find_mapping
	mov	x20, x0
	str	w20, [x19]
	tbnz	w20, #31, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _mv88e6xxx_g2_irq_thread_fn@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mv88e6xxx_g2_irq_thread_fn@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x4, l_.str@PAGE
Lloh15:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_3:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #2
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #3
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #4
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #5
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #6
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #7
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #8
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #9
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #10
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #11
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #12
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #13
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #14
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	mov	w1, #15
	bl	_irq_find_mapping
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	bl	_irq_domain_remove
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_g2_watchdog_setup
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_mv88e6xxx_g2_irq_domain_ops,4,2 ; @mv88e6xxx_g2_irq_domain_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mv88e6xxx_g2_irq_chip,4,2      ; @mv88e6xxx_g2_irq_chip
	.comm	_MV88E6XXX_G1_STS_IRQ_DEVICE,4,2 ; @MV88E6XXX_G1_STS_IRQ_DEVICE
	.comm	_mv88e6xxx_g2_irq_thread_fn,4,2 ; @mv88e6xxx_g2_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mv88e6xxx-g2"

.subsections_via_symbols
