	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_write_rss_key               ## -- Begin function t4_write_rss_key
	.p2align	4, 0x90
_t4_write_rss_key:                      ## @t4_write_rss_key
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_TP_RSS_CONFIG_VRT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_t4_read_reg
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	movl	$16, %r15d
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.1:
	movq	_KEYEXTEND_F@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movl	%ebx, %edi
	callq	_KEYMODE_G
	xorl	%ebx, %ebx
	cmpl	$3, %eax
	sete	%bl
	movl	%ebx, %r15d
	shll	$4, %r15d
	addl	$16, %r15d
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_TP_RSS_SECRET_KEY0_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$10, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_t4_tp_pio_write
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.6:
	cmpl	%r14d, %r15d
	jle	LBB0_9
## %bb.7:
	movq	_TP_RSS_CONFIG_VRT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testb	%bl, %bl
	je	LBB0_10
## %bb.8:
	movl	%r14d, %edi
	shrl	$4, %edi
	callq	_KEYWRADDRX_V
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_T6_VFWRADDR_V
	orl	%ebx, %eax
	movq	_KEYWREN_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_11
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r14d, %edi
	callq	_KEYWRADDR_V
	movl	%eax, %edx
	movq	_KEYWREN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%eax, %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_write_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_RSS_CONFIG_VRT_A,4,2        ## @TP_RSS_CONFIG_VRT_A
	.comm	_CHELSIO_T5,8,3                 ## @CHELSIO_T5
	.comm	_KEYEXTEND_F,4,2                ## @KEYEXTEND_F
	.comm	_TP_RSS_SECRET_KEY0_A,4,2       ## @TP_RSS_SECRET_KEY0_A
	.comm	_KEYWREN_F,4,2                  ## @KEYWREN_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_write_rss_key               ; -- Begin function t4_write_rss_key
	.p2align	2
_t4_write_rss_key:                      ; @t4_write_rss_key
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _TP_RSS_CONFIG_VRT_A@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TP_RSS_CONFIG_VRT_A@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_t4_read_reg
	mov	x23, x0
	ldr	w0, [x19]
	bl	_CHELSIO_CHIP_VERSION
Lloh2:
	adrp	x8, _CHELSIO_T5@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHELSIO_T5@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _KEYEXTEND_F@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEYEXTEND_F@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w25, #16
	tst	w8, w23
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_KEYMODE_G
	mov	w8, #32
	cmp	w0, #3
	csel	w25, w8, w25, eq
	cset	w23, eq
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	mov	w25, #16
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
Lloh8:
	adrp	x8, _TP_RSS_SECRET_KEY0_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TP_RSS_SECRET_KEY0_A@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #10
	mov	x4, x21
	bl	_t4_tp_pio_write
	tbnz	w20, #31, LBB0_9
; %bb.6:
	cmp	w25, w20
	b.le	LBB0_9
; %bb.7:
	ldr	w21, [x24]
	cbz	w23, LBB0_10
; %bb.8:
	lsr	w0, w20, #4
	bl	_KEYWRADDRX_V
	mov	x22, x0
	mov	x0, x20
	bl	_T6_VFWRADDR_V
	orr	w8, w0, w22
Lloh11:
	adrp	x9, _KEYWREN_F@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KEYWREN_F@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	b	LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	bl	_KEYWRADDR_V
Lloh14:
	adrp	x8, _KEYWREN_F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEYWREN_F@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_11:
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_t4_write_reg
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_RSS_CONFIG_VRT_A,4,2        ; @TP_RSS_CONFIG_VRT_A
	.comm	_CHELSIO_T5,8,3                 ; @CHELSIO_T5
	.comm	_KEYEXTEND_F,4,2                ; @KEYEXTEND_F
	.comm	_TP_RSS_SECRET_KEY0_A,4,2       ; @TP_RSS_SECRET_KEY0_A
	.comm	_KEYWREN_F,4,2                  ; @KEYWREN_F
.subsections_via_symbols
