	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ql_enable_msix
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
	.p2align	4, 0x90
_ql_enable_msix:                        ## @ql_enable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_qlge_irq_type@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_MSIX_IRQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.1:
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.3:
	cmpl	$8, %edx
	jae	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_20:
	movq	_MSI_IRQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, (%rbx)
	je	LBB0_21
	jmp	LBB0_22
LBB0_6:
	movl	%edx, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rsi
	jae	LBB0_8
## %bb.7:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_8:
	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_9:                                 ## =>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_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	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_12:                                ## =>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_12
LBB0_13:
	cmpq	%rdx, %rcx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_5
LBB0_14:
	movl	12(%rbx), %edi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	callq	_pci_enable_msix
	testl	%eax, %eax
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	movq	16(%rbx), %rsi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_17:
	testl	%eax, %eax
	js	LBB0_18
## %bb.23:
	movq	_QL_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_info                     ## TAILCALL
LBB0_18:
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_warn
LBB0_19:
	movq	_MSI_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	$1, (%rbx)
LBB0_21:
	movl	12(%rbx), %edi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_24
LBB0_22:
	movq	_LEG_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_printk                   ## TAILCALL
LBB0_24:
	movq	_QL_MSI_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_info                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qlge_irq_type,8,3              ## @qlge_irq_type
	.comm	_MSIX_IRQ,8,3                   ## @MSIX_IRQ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MSI_IRQ,8,3                    ## @MSI_IRQ
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI-X Enable failed, trying MSI.\n"

	.comm	_QL_MSIX_ENABLED,4,2            ## @QL_MSIX_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"MSI-X Enabled, got %d vectors.\n"

	.comm	_QL_MSI_ENABLED,4,2             ## @QL_MSI_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"Running with MSI interrupts.\n"

	.comm	_LEG_IRQ,8,3                    ## @LEG_IRQ
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"Running with legacy interrupts.\n"

	.no_dead_strip	_ql_enable_msix
.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 ql_enable_msix
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ql_enable_msix:                        ; @ql_enable_msix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _qlge_irq_type@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qlge_irq_type@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MSIX_IRQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSIX_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.2:
	mov	x1, x0
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.3:
	cmp	w2, #16
	b.hs	LBB0_6
; %bb.4:
	mov	x8, #0
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x9, _MSI_IRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSI_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x19]
	cmp	x8, x9
	b.eq	LBB0_16
	b	LBB0_17
LBB0_6:
	and	x8, x2, #0xfffffff0
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	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_7:                                 ; =>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_7
; %bb.8:
	cmp	x8, x2
	b.eq	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x1, x8, lsl #2]
	add	x8, x8, #1
	cmp	x2, x8
	b.ne	LBB0_9
LBB0_10:
	ldr	w0, [x19, #12]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pci_enable_msix
	mov	x2, x0
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w2, [x19]
	ldr	w0, [x19, #12]
	ldr	x1, [x19, #16]
	bl	_pci_enable_msix
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_11
LBB0_12:
	tbnz	w2, #31, LBB0_14
; %bb.13:
Lloh13:
	adrp	x8, _QL_MSIX_ENABLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QL_MSIX_ENABLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
Lloh16:
	adrp	x8, _ifup@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldp	w8, w2, [x19]
	str	x8, [sp]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
Lloh21:
	adrp	x8, _ifup@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
LBB0_15:
Lloh26:
	adrp	x8, _MSI_IRQ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSI_IRQ@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	ldr	w0, [x19, #12]
	bl	_pci_enable_msi
	cbz	w0, LBB0_18
LBB0_17:
Lloh29:
	adrp	x8, _LEG_IRQ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LEG_IRQ@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh32:
	adrp	x8, _ifup@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x4, l_.str.3@PAGE
Lloh39:
	add	x4, x4, l_.str.3@PAGEOFF
	ldr	w3, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_netif_printk
LBB0_18:
Lloh40:
	adrp	x8, _QL_MSI_ENABLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _QL_MSI_ENABLED@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
Lloh43:
	adrp	x8, _ifup@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh46:
	adrp	x3, l_.str.2@PAGE
Lloh47:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_netif_info
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_qlge_irq_type,8,3              ; @qlge_irq_type
	.comm	_MSIX_IRQ,8,3                   ; @MSIX_IRQ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MSI_IRQ,8,3                    ; @MSI_IRQ
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI-X Enable failed, trying MSI.\n"

	.comm	_QL_MSIX_ENABLED,4,2            ; @QL_MSIX_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"MSI-X Enabled, got %d vectors.\n"

	.comm	_QL_MSI_ENABLED,4,2             ; @QL_MSI_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"Running with MSI interrupts.\n"

	.comm	_LEG_IRQ,8,3                    ; @LEG_IRQ
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"Running with legacy interrupts.\n"

	.no_dead_strip	_ql_enable_msix
.subsections_via_symbols
