	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_irqs
_setup_irqs:                            ## @setup_irqs
	.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
	movq	%rdi, %r14
	callq	_fsl_mc_allocate_irqs
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_2:
	movq	16(%r14), %rax
	movq	(%rax), %r13
	movq	(%r13), %rax
	movl	(%rax), %r12d
	movq	_dpni_irq0_handler_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%r14), %edx
	movl	8(%r14), %edi
	movq	_DPNI_IRQ_INDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_DPNI_IRQ_EVENT_LINK_CHANGED@GOTPCREL(%rip), %rax
	movq	_DPNI_IRQ_EVENT_ENDPOINT_CHANGED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dpni_set_irq_mask
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	4(%r14), %edx
	movl	8(%r14), %edi
	movl	(%r12), %ecx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_dpni_set_irq_enable
	testl	%eax, %eax
	jns	LBB0_10
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_devm_free_irq
LBB0_9:
	movq	%r14, %rdi
	callq	_fsl_mc_free_irqs
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MC irqs allocation failed\n"

	.comm	_dpni_irq0_handler_thread,4,2   ## @dpni_irq0_handler_thread
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"devm_request_threaded_irq(): %d\n"

	.comm	_DPNI_IRQ_INDEX,4,2             ## @DPNI_IRQ_INDEX
	.comm	_DPNI_IRQ_EVENT_LINK_CHANGED,4,2 ## @DPNI_IRQ_EVENT_LINK_CHANGED
	.comm	_DPNI_IRQ_EVENT_ENDPOINT_CHANGED,4,2 ## @DPNI_IRQ_EVENT_ENDPOINT_CHANGED
L_.str.2:                               ## @.str.2
	.asciz	"dpni_set_irq_mask(): %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"dpni_set_irq_enable(): %d\n"

	.no_dead_strip	_setup_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_irqs
_setup_irqs:                            ; @setup_irqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_fsl_mc_allocate_irqs
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x23, [x8]
	ldr	x8, [x23]
	ldr	w20, [x8]
Lloh2:
	adrp	x8, _dpni_irq0_handler_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dpni_irq0_handler_thread@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IRQF_NO_SUSPEND@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, x21
	mov	x4, x22
	mov	x6, x19
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldp	w2, w0, [x19, #4]
Lloh11:
	adrp	x21, _DPNI_IRQ_INDEX@GOTPAGE
Lloh12:
	ldr	x21, [x21, _DPNI_IRQ_INDEX@GOTPAGEOFF]
Lloh13:
	adrp	x8, _DPNI_IRQ_EVENT_LINK_CHANGED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DPNI_IRQ_EVENT_LINK_CHANGED@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _DPNI_IRQ_EVENT_ENDPOINT_CHANGED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DPNI_IRQ_EVENT_ENDPOINT_CHANGED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	w1, #0
	bl	_dpni_set_irq_mask
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldp	w2, w0, [x19, #4]
	ldr	w3, [x21]
	mov	w1, #0
	mov	w4, #1
	bl	_dpni_set_irq_enable
	mov	w20, #0
	tbz	w0, #31, LBB0_10
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_8
LBB0_6:
	mov	x20, x0
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x20, x0
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_8:
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_free_irq
LBB0_9:
	mov	x0, x19
	bl	_fsl_mc_free_irqs
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MC irqs allocation failed\n"

	.comm	_dpni_irq0_handler_thread,4,2   ; @dpni_irq0_handler_thread
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"devm_request_threaded_irq(): %d\n"

	.comm	_DPNI_IRQ_INDEX,4,2             ; @DPNI_IRQ_INDEX
	.comm	_DPNI_IRQ_EVENT_LINK_CHANGED,4,2 ; @DPNI_IRQ_EVENT_LINK_CHANGED
	.comm	_DPNI_IRQ_EVENT_ENDPOINT_CHANGED,4,2 ; @DPNI_IRQ_EVENT_ENDPOINT_CHANGED
l_.str.2:                               ; @.str.2
	.asciz	"dpni_set_irq_mask(): %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"dpni_set_irq_enable(): %d\n"

	.no_dead_strip	_setup_irqs
.subsections_via_symbols
