	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function e1000e_set_interrupt_capability
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_5:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
LCPI0_6:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
LCPI0_7:
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
LCPI0_8:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_e1000e_set_interrupt_capability
	.p2align	4, 0x90
_e1000e_set_interrupt_capability:       ## @e1000e_set_interrupt_capability
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_19
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_22
## %bb.2:
	movq	_FLAG_HAS_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_18
## %bb.3:
	movl	$3, 8(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$3, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.5:
	cmpl	$8, %ecx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_7:
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rsi
	jae	LBB0_9
## %bb.8:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_9:
	andq	$-4, %rdi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [20,20,20,20]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [24,24,24,24]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [28,28,28,28]
	movdqa	LCPI0_8(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	paddd	%xmm8, %xmm2
	movdqu	%xmm0, (%rax,%rsi,4)
	movdqu	%xmm2, 16(%rax,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm9, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm10, %xmm3
	movdqu	%xmm2, 32(%rax,%rsi,4)
	movdqu	%xmm3, 48(%rax,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm5, %xmm3
	movdqu	%xmm2, 64(%rax,%rsi,4)
	movdqu	%xmm3, 80(%rax,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm7, %xmm3
	movdqu	%xmm2, 96(%rax,%rsi,4)
	movdqu	%xmm3, 112(%rax,%rsi,4)
	addq	$32, %rsi
	paddd	%xmm1, %xmm0
	addq	$-4, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%r8, %r8
	je	LBB0_14
## %bb.12:
	leaq	(%rax,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	paddd	%xmm1, %xmm3
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm3, (%rsi,%rdi)
	paddd	%xmm2, %xmm0
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_13
LBB0_14:
	cmpq	%rcx, %rdx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
LBB0_16:
	movl	12(%rbx), %edi
	movq	%rax, %rsi
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_pci_enable_msix_range
	testl	%eax, %eax
	jg	LBB0_23
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_e_err
	movq	%rbx, %rdi
	callq	_e1000e_reset_interrupt_capability
LBB0_18:
	movl	$129, (%rbx)
LBB0_19:
	movl	12(%rbx), %edi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	$130, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_e_err
	jmp	LBB0_22
LBB0_20:
	movq	_FLAG_MSI_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_22:
	movl	$1, 8(%rbx)
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_HAS_MSIX,4,2              ## @FLAG_HAS_MSIX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize MSI-X interrupts.  Falling back to MSI interrupts.\n"

	.comm	_FLAG_MSI_ENABLED,4,2           ## @FLAG_MSI_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize MSI interrupts.  Falling back to legacy interrupts.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function e1000e_set_interrupt_capability
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_e1000e_set_interrupt_capability
	.p2align	2
_e1000e_set_interrupt_capability:       ; @e1000e_set_interrupt_capability
	.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	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.2:
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _FLAG_HAS_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG_HAS_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.3:
	mov	w8, #3
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #3
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.4:
	mov	x1, x0
	ldr	w2, [x19, #8]
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.5:
	cmp	w2, #16
	b.hs	LBB0_7
; %bb.6:
	mov	x8, #0
	b	LBB0_10
LBB0_7:
	and	x8, x2, #0xfffffff0
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	add	x9, x1, #32
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #16
	mov	x10, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v5, v0, v1
	add.4s	v6, v0, v2
	add.4s	v7, v0, v3
	stp	q0, q5, [x9, #-32]
	stp	q6, q7, [x9], #64
	add.4s	v0, v0, v4
	subs	x10, x10, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x2
	b.eq	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x1, x8, lsl #2]
	add	x8, x8, #1
	cmp	x2, x8
	b.ne	LBB0_10
LBB0_11:
	ldr	w0, [x19, #12]
	mov	x3, x2
	bl	_pci_enable_msix_range
	cmp	w0, #0
	b.gt	LBB0_18
LBB0_12:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
	mov	x0, x19
	bl	_e1000e_reset_interrupt_capability
LBB0_13:
	mov	w8, #129
	str	w8, [x19]
LBB0_14:
	ldr	w0, [x19, #12]
	bl	_pci_enable_msi
	cbz	w0, LBB0_16
; %bb.15:
	mov	w8, #130
	str	w8, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_err
	b	LBB0_17
LBB0_16:
Lloh12:
	adrp	x8, _FLAG_MSI_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAG_MSI_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_17:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_HAS_MSIX,4,2              ; @FLAG_HAS_MSIX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize MSI-X interrupts.  Falling back to MSI interrupts.\n"

	.comm	_FLAG_MSI_ENABLED,4,2           ; @FLAG_MSI_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize MSI interrupts.  Falling back to legacy interrupts.\n"

.subsections_via_symbols
