	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_write_rss                ## -- Begin function cxgb4_write_rss
	.p2align	4, 0x90
_cxgb4_write_rss:                       ## @cxgb4_write_rss
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	(%rdi), %r13
	shlq	$3, %r13
	addq	8(%r14), %r13
	movq	%rsi, %rbx
	movl	8(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movl	8(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.2:
	leaq	-1(%r8), %rcx
	movl	%r8d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_5
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movl	%r8d, %edx
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	(%r13,%rsi,8), %rsi
	movq	%rsi, (%r12,%rcx,8)
	movq	8(%rbx), %rsi
	movq	(%r13,%rsi,8), %rsi
	movq	%rsi, 8(%r12,%rcx,8)
	movq	16(%rbx), %rsi
	movq	(%r13,%rsi,8), %rsi
	movq	%rsi, 16(%r12,%rcx,8)
	movq	24(%rbx), %rsi
	movq	(%r13,%rsi,8), %rsi
	movq	%rsi, 24(%r12,%rcx,8)
	addq	$4, %rcx
	addq	$32, %rbx
	cmpq	%rcx, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	(%r12,%rcx,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rsi
	movq	(%r13,%rsi,8), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_9
LBB0_10:
	movl	4(%r14), %esi
	movl	12(%r15), %edx
	movl	%r8d, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%r12, %r9
	callq	_t4_config_rss_range
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPCREL(%rip), %rax
	movq	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%r14), %esi
	movq	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	12(%r15), %edx
	movq	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%r12), %r8
	movq	%r14, %rdi
	callq	_t4_config_vi_rss
	movl	%eax, %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_UDPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_UDPEN_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_write_rss                ; -- Begin function cxgb4_write_rss
	.p2align	2
_cxgb4_write_rss:                       ; @cxgb4_write_rss
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	x23, [x19, #8]
	ldr	x24, [x0]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w4, [x21, #8]
	cmp	w4, #1
	b.lt	LBB0_4
; %bb.2:
	add	x8, x23, x24, lsl #3
	mov	x9, x4
	mov	x10, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x22], #8
	ldr	x11, [x8, x11, lsl #3]
	str	x11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w1, [x19, #4]
	ldr	w2, [x21, #12]
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	mov	x6, x4
	bl	_t4_config_rss_range
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x19]
Lloh3:
	adrp	x8, _FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPAGEOFF]
	ldr	w2, [x21, #12]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x4, [x20]
	mov	x0, x19
	bl	_t4_config_vi_rss
	mov	x22, x0
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_UDPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_UDPEN_F
.subsections_via_symbols
