	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ndev_init_isr
_ndev_init_isr:                         ## @ndev_init_isr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	56(%rdi), %r15
	movq	%r15, %rdi
	callq	_dev_to_node
	movl	%eax, %ebx
	movl	48(%r13), %eax
	movl	%eax, 52(%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	$64, %esi
	movl	%ebx, %ecx
	callq	_kcalloc_node
	leaq	16(%r13), %rcx
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	$64, %esi
	movl	%ebx, %ecx
	callq	_kcalloc_node
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	testl	%r12d, %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jle	LBB0_10
## %bb.3:
	movl	%r12d, %esi
	leaq	-1(%rsi), %rdx
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_5:
	andl	$-4, %esi
	leaq	192(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -192(%rdi)
	leal	1(%rdx), %ebx
	movl	%ebx, -128(%rdi)
	leal	2(%rdx), %ebx
	movl	%ebx, -64(%rdi)
	leal	3(%rdx), %ebx
	movl	%ebx, (%rdi)
	addq	$4, %rdx
	addq	$256, %rdi                      ## imm = 0x100
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	movq	%rdx, %rdi
	shlq	$6, %rdi
	movq	%rax, %rsi
	addq	%rdi, %rsi
	shlq	$6, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rsi,%rdi)
	incl	%edx
	addq	$64, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_pci_enable_msix_range
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %eax
	jge	LBB0_12
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_pci_disable_msix
LBB0_19:
	movq	24(%r13), %rdi
	callq	_kfree
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rcx
LBB0_21:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movq	%r15, %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	jne	LBB0_27
## %bb.22:
	movl	4(%r15), %edi
	movq	_ndev_irq_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.26:
	movq	%r15, %rdi
	callq	_pci_disable_msi
LBB0_27:
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pci_intx
	movl	4(%r15), %edi
	movq	_ndev_irq_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_31
## %bb.28:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	jmp	LBB0_29
LBB0_23:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movl	$1, %ebx
LBB0_29:
	movl	$1, %r12d
LBB0_30:
	movl	%ebx, 8(%r13)
	movl	%r12d, 12(%r13)
	xorl	%eax, %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%eax, %eax
	je	LBB0_25
## %bb.13:
	movl	%eax, %r14d
	shlq	$6, %r14
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	leaq	(%rax,%rbx), %r8
	movq	%r13, 40(%rax,%rbx)
	movl	%r15d, 4(%rax,%rbx)
	movq	24(%r13), %rax
	movl	32(%rax,%rbx), %edi
	movq	_ndev_vec_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	leaq	L_.str(%rip), %rcx
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_15
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	addq	$64, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_14
LBB0_25:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_30
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.16:
	addq	$-64, %rbx
	incq	%r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	32(%rax,%rbx), %edi
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	callq	_free_irq
	decq	%r15
	addq	$-64, %rbx
	cmpq	$1, %r15
	jg	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ndev_vec_isr,4,2               ## @ndev_vec_isr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndev_vec_isr"

L_.str.1:                               ## @.str.1
	.asciz	"Using msix interrupts\n"

	.comm	_ndev_irq_isr,4,2               ## @ndev_irq_isr
L_.str.2:                               ## @.str.2
	.asciz	"ndev_irq_isr"

L_.str.3:                               ## @.str.3
	.asciz	"Using msi interrupts\n"

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.4:                               ## @.str.4
	.asciz	"Using intx interrupts\n"

	.no_dead_strip	_ndev_init_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ndev_init_isr
_ndev_init_isr:                         ; @ndev_init_isr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #56]
	mov	x0, x20
	bl	_dev_to_node
	mov	x23, x0
	ldr	w8, [x19, #48]
	str	w8, [x19, #52]
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #64
	mov	x3, x23
	bl	_kcalloc_node
	mov	x24, x19
	str	x0, [x24, #16]!
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #64
	mov	x3, x23
	bl	_kcalloc_node
	str	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.2:
	mov	x1, x0
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w8, w22
	cmp	w22, #4
	b.hs	LBB0_5
; %bb.4:
	mov	x9, #0
	b	LBB0_8
LBB0_5:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x1, #128
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w10, #1
	add	w13, w10, #2
	add	w14, w10, #3
	stur	w10, [x11, #-128]
	stur	w12, [x11, #-64]
	str	w13, [x11]
	str	w14, [x11, #64]
	add	x10, x10, #4
	add	x11, x11, #256
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	add	x10, x1, x9, lsl #6
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x10], #64
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_pci_enable_msix_range
	tbnz	w0, #31, LBB0_13
; %bb.11:
	cmp	w0, w21
	b.ge	LBB0_24
LBB0_12:
	mov	x0, x20
	bl	_pci_disable_msix
LBB0_13:
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_14:
	ldr	x0, [x24]
	bl	_kfree
LBB0_15:
	stp	xzr, xzr, [x24]
	mov	x0, x20
	bl	_pci_enable_msi
Lloh2:
	adrp	x21, _ndev_irq_isr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ndev_irq_isr@GOTPAGEOFF]
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_20
; %bb.17:
	mov	x0, x20
	bl	_pci_disable_msi
LBB0_18:
	mov	x0, x20
	mov	w1, #1
	bl	_pci_intx
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbnz	w0, LBB0_23
; %bb.19:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_dev_dbg
	mov	w21, #1
	mov	w22, #1
LBB0_22:
	mov	w0, #0
	stp	w21, w22, [x19, #8]
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	cbz	w0, LBB0_28
; %bb.25:
	mov	x26, #0
	mov	x25, #0
	mov	w8, w0
	lsl	x27, x8, #6
Lloh15:
	adrp	x28, _ndev_vec_isr@GOTPAGE
Lloh16:
	ldr	x28, [x28, _ndev_vec_isr@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str@PAGE
Lloh18:
	add	x23, x23, l_.str@PAGEOFF
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #16]
	add	x4, x8, x26
	str	x19, [x4, #40]
	str	w25, [x4, #4]
	add	x8, x9, x26
	ldr	w0, [x8, #32]
	ldr	w1, [x28]
	mov	w2, #0
	mov	x3, x23
	bl	_request_irq
	cbnz	w0, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x25, x25, #1
	add	x26, x26, #64
	cmp	x27, x26
	b.ne	LBB0_26
LBB0_28:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_22
LBB0_29:
	cbz	w25, LBB0_12
; %bb.30:
	sub	x21, x26, #32
	add	x22, x25, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	w0, [x8, x21]
	add	x8, x9, x21
	sub	x1, x8, #32
	bl	_free_irq
	sub	x22, x22, #1
	sub	x21, x21, #64
	cmp	x22, #1
	b.gt	LBB0_31
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ndev_vec_isr,4,2               ; @ndev_vec_isr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndev_vec_isr"

l_.str.1:                               ; @.str.1
	.asciz	"Using msix interrupts\n"

	.comm	_ndev_irq_isr,4,2               ; @ndev_irq_isr
l_.str.2:                               ; @.str.2
	.asciz	"ndev_irq_isr"

l_.str.3:                               ; @.str.3
	.asciz	"Using msi interrupts\n"

	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.4:                               ; @.str.4
	.asciz	"Using intx interrupts\n"

	.no_dead_strip	_ndev_init_isr
.subsections_via_symbols
