	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_alloc_msix               ## -- Begin function enetc_alloc_msix
	.p2align	4, 0x90
_enetc_alloc_msix:                      ## @enetc_alloc_msix
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rcx
	movq	56(%rdi), %rax
	movq	(%rax), %rdi
	movq	_ENETC_BDR_INT_BASE_IDX@GOTPCREL(%rip), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	addl	(%rax), %r14d
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_pci_alloc_irq_vectors
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	cmpl	%r14d, %r12d
	jne	LBB0_13
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	cltd
	idivl	%ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.3:
	movl	%eax, %r15d
	shll	$4, %eax
	addl	$40, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	shlq	$4, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %rdx
	addq	$8, %rdx
	movl	%r13d, 8(%r8)
	movl	%ecx, 20(%r8)
	movl	%eax, 16(%r8)
	movl	24(%rbx), %eax
	movl	%eax, 12(%r8)
	movq	16(%rbx), %rax
	movq	%rdx, (%rax,%r13,8)
	incq	%r13
	movslq	(%rbx), %rax
	addq	$8, %r14
	addl	%r15d, %r12d
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	%r8, (%rax,%r13,8)
	movl	32(%rbx), %edi
	leaq	4(%r8), %rsi
	movq	_enetc_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_netif_napi_add
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, (%r8)
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leaq	32(%r8), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movl	%r13d, %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	___set_bit
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	24(%r8), %rdx
	leaq	(%rdx,%r15), %rsi
	movl	%r13d, (%rdx,%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %ecx
	movl	%ecx, 12(%rdx,%r15)
	movl	28(%rbx), %eax
	movl	%eax, 8(%rdx,%r15)
	movl	48(%rbx), %edi
	movl	%edi, 4(%rdx,%r15)
	movq	40(%rbx), %rdx
	movslq	%r13d, %rdi
	movq	%rsi, (%rdx,%rdi,8)
	addl	$2, %r12d
	incl	%r14d
	addq	$16, %r15
	cmpq	%r15, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_4
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %eax
	movl	%r12d, %r13d
	movq	_ENETC_MAX_BDR_INT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r14d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%rbx), %eax
	movl	32(%rbx), %ecx
	jmp	LBB0_5
LBB0_13:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_18:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	-8(%rax,%r14), %rdi
	addq	$4, %rdi
	callq	_netif_napi_del
	movq	8(%rbx), %rax
	movq	-8(%rax,%r14), %rdi
	callq	_kfree
	addq	$-8, %r14
	jne	LBB0_16
LBB0_17:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_free_irq_vectors
LBB0_19:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_BDR_INT_BASE_IDX,4,2     ## @ENETC_BDR_INT_BASE_IDX
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_enetc_poll,4,2                 ## @enetc_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_ENETC_MAX_BDR_INT,4,2          ## @ENETC_MAX_BDR_INT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_alloc_msix               ; -- Begin function enetc_alloc_msix
	.p2align	2
_enetc_alloc_msix:                      ; @enetc_alloc_msix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	ldr	x8, [x0, #56]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _ENETC_BDR_INT_BASE_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_BDR_INT_BASE_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	add	w22, w9, w8
Lloh3:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x22
	bl	_pci_alloc_irq_vectors
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.1:
	cmp	w21, w22
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	w27, #0
	mov	x24, #0
	ldr	w9, [x20, #4]
	sdiv	w23, w9, w8
	lsl	w8, w23, #4
	add	w8, w8, #40
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	lsl	x19, x23, #4
	mov	x25, #-8
Lloh6:
	adrp	x21, _ENETC_MAX_BDR_INT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENETC_MAX_BDR_INT@GOTPAGEOFF]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w9, [x20, #28]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x22, #8]!
	str	w9, [x22, #12]
	ldr	w9, [x20, #24]
	ldr	x10, [x20, #16]
	str	x22, [x10, x24, lsl #3]
	stp	w9, w8, [x22, #4]
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x25, x25, #8
	add	w27, w27, w23
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x20, #8]
	str	x0, [x8, x24, lsl #3]
	ldr	w0, [x20, #32]
	add	x1, x22, #4
Lloh11:
	adrp	x8, _enetc_poll@GOTPAGE
Lloh12:
	ldr	x8, [x8, _enetc_poll@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_netif_napi_add
	str	w23, [x22]
	cmp	w23, #0
	b.le	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	add	x23, x22, #32
	str	w27, [sp, #20]                  ; 4-byte Folded Spill
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	mov	x26, x24
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w24, w26, w27, eq
	mov	x0, x24
	mov	x1, x23
	bl	___set_bit
	ldr	x8, [x22, #24]
	add	x10, x8, x28
	ldp	w8, w9, [x20, #28]
	stp	w8, w9, [x10, #8]
	ldr	w11, [x20, #48]
	stp	w24, w11, [x10]
	ldr	x11, [x20, #40]
	str	x10, [x11, w24, sxtw #3]
	add	w26, w26, #2
	add	w27, w27, #1
	add	x28, x28, #16
	cmp	x19, x28
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w27, [sp, #20]                  ; 4-byte Folded Reload
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_5
LBB0_11:
Lloh17:
	adrp	x8, _EPERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_12:
	mov	w21, #0
	b	LBB0_16
LBB0_13:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	w24, LBB0_15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x25]
	add	x0, x8, #4
	bl	_netif_napi_del
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x25]
	bl	_kfree
	sub	x25, x25, #8
	cmn	x25, #8
	b.ne	LBB0_14
LBB0_15:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_pci_free_irq_vectors
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_BDR_INT_BASE_IDX,4,2     ; @ENETC_BDR_INT_BASE_IDX
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_enetc_poll,4,2                 ; @enetc_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_ENETC_MAX_BDR_INT,4,2          ; @ENETC_MAX_BDR_INT
.subsections_via_symbols
