	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_enable_msix
_cxgb_enable_msix:                      ## @cxgb_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_SGE_QSETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	%eax, %esi
	leaq	-1(%rsi), %rdx
	movl	%esi, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	andl	$-8, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rbx,%rdx,8)
	leal	1(%rdx), %edi
	movl	%edi, 8(%rbx,%rdx,8)
	leal	2(%rdx), %edi
	movl	%edi, 16(%rbx,%rdx,8)
	leal	3(%rdx), %edi
	movl	%edi, 24(%rbx,%rdx,8)
	leal	4(%rdx), %edi
	movl	%edi, 32(%rbx,%rdx,8)
	leal	5(%rdx), %edi
	movl	%edi, 40(%rbx,%rdx,8)
	leal	6(%rdx), %edi
	movl	%edi, 48(%rbx,%rdx,8)
	leal	7(%rdx), %edi
	movl	%edi, 56(%rbx,%rdx,8)
	addq	$8, %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rbx,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_6
LBB0_7:
	movl	24(%r14), %edi
	movq	16(%r14), %rdx
	incq	%rdx
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_pci_enable_msix_range
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	je	LBB0_14
## %bb.9:
	movq	8(%r14), %rcx
	movl	%eax, %edx
	cmpl	$9, %eax
	jae	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_11:
	movl	%edx, %esi
	andl	$7, %esi
	testq	%rsi, %rsi
	movl	$8, %edi
	cmovneq	%rsi, %rdi
	movq	%rdx, %rsi
	subq	%rdi, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	4(%rbx,%rdi,8), %xmm0
	movups	20(%rbx,%rdi,8), %xmm1
	shufps	$136, %xmm1, %xmm0              ## xmm0 = xmm0[0,2],xmm1[0,2]
	movups	36(%rbx,%rdi,8), %xmm1
	movups	52(%rbx,%rdi,8), %xmm2
	shufps	$136, %xmm2, %xmm1              ## xmm1 = xmm1[0,2],xmm2[0,2]
	movups	%xmm0, (%rcx,%rdi,4)
	movups	%xmm1, 16(%rcx,%rdi,4)
	addq	$8, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx,%rsi,8), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_13
LBB0_14:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_QSETS,4,2                  ## @SGE_QSETS
	.no_dead_strip	_cxgb_enable_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb_enable_msix
_cxgb_enable_msix:                      ; @cxgb_enable_msix
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _SGE_QSETS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGE_QSETS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w3
	cmp	w3, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x20, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w10, #1
	add	w13, w10, #2
	add	w14, w10, #3
	stur	w10, [x11, #-16]
	stur	w12, [x11, #-8]
	str	w13, [x11]
	str	w14, [x11, #8]
	add	x10, x10, #4
	add	x11, x11, #32
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x20, x9, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x10], #8
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_8:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	add	x2, x8, #1
	mov	x1, x20
	bl	_pci_enable_msix_range
	tbnz	w0, #31, LBB0_17
; %bb.9:
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x9, [x19, #8]
	mov	w8, w0
	cmp	w0, #17
	b.hs	LBB0_12
; %bb.11:
	mov	x10, #0
	b	LBB0_14
LBB0_12:
	ands	x10, x8, #0xf
	mov	w11, #16
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x13, x20, #68
	add	x11, x9, #32
	mov	x12, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x14, x13, #64
	ld2.4s	{ v0, v1 }, [x14]
	sub	x14, x13, #32
	ld2.4s	{ v2, v3 }, [x14]
	add	x14, x13, #128
	ld2.4s	{ v4, v5 }, [x13], #32
	ld2.4s	{ v6, v7 }, [x13]
	stp	q0, q2, [x11, #-32]
	stp	q4, q6, [x11], #64
	mov	x13, x14
	subs	x12, x12, #16
	b.ne	LBB0_13
LBB0_14:
	add	x11, x20, x10, lsl #3
	add	x11, x11, #4
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11], #8
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	str	w0, [x19]
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_QSETS,4,2                  ; @SGE_QSETS
	.no_dead_strip	_cxgb_enable_msix
.subsections_via_symbols
