	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_tx_stfwd
_sky2_set_tx_stfwd:                     ## @sky2_set_tx_stfwd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movl	%esi, %edx
	movq	(%rcx,%rdx,8), %r15
	movq	_CHIP_ID_YUKON_EX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_CHIP_REV_YU_EX_A0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
LBB0_2:
	movq	_CHIP_ID_YUKON_FE_P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_CHIP_ID_YUKON_SUPR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.9:
	movq	(%r15), %rax
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
## %bb.11:
	movq	_TX_GMF_AE_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_ECU_JUMBO_WM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$16, %edx
	movq	_ECU_AE_THR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_TX_STFW_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_ALL_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 8(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %r15
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	cmpq	%r12, %r15
	jle	LBB0_5
## %bb.8:
	movq	_TX_JUMBO_ENA@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_TX_JUMBO_DIS@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	_TX_STFW_ENA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	jmp	LBB0_7
LBB0_10:
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_TX_STFW_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_7:
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_YUKON_EX,8,3           ## @CHIP_ID_YUKON_EX
	.comm	_CHIP_REV_YU_EX_A0,8,3          ## @CHIP_REV_YU_EX_A0
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ## @CHIP_ID_YUKON_FE_P
	.comm	_CHIP_ID_YUKON_SUPR,8,3         ## @CHIP_ID_YUKON_SUPR
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_TX_GMF_CTRL_T,4,2              ## @TX_GMF_CTRL_T
	.comm	_TX_JUMBO_DIS,4,2               ## @TX_JUMBO_DIS
	.comm	_TX_STFW_ENA,4,2                ## @TX_STFW_ENA
	.comm	_TX_JUMBO_ENA,4,2               ## @TX_JUMBO_ENA
	.comm	_TX_GMF_AE_THR,4,2              ## @TX_GMF_AE_THR
	.comm	_ECU_JUMBO_WM,4,2               ## @ECU_JUMBO_WM
	.comm	_ECU_AE_THR,4,2                 ## @ECU_AE_THR
	.comm	_TX_STFW_DIS,4,2                ## @TX_STFW_DIS
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_ALL_CSUM,4,2           ## @NETIF_F_ALL_CSUM
	.no_dead_strip	_sky2_set_tx_stfwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_tx_stfwd
_sky2_set_tx_stfwd:                     ; @sky2_set_tx_stfwd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8, w1, uxtw #3]
	ldr	x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9, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.6:
Lloh23:
	adrp	x8, _TX_GMF_AE_THR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_GMF_AE_THR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh26:
	adrp	x8, _ECU_JUMBO_WM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ECU_JUMBO_WM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _ECU_AE_THR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ECU_AE_THR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8, lsl #16
	mov	x0, x19
	bl	_sky2_write32
Lloh32:
	adrp	x8, _TX_GMF_CTRL_T@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TX_GMF_CTRL_T@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh35:
	adrp	x8, _TX_STFW_DIS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_STFW_DIS@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write32
Lloh38:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _NETIF_F_ALL_CSUM@GOTPAGE
Lloh45:
	ldr	x10, [x10, _NETIF_F_ALL_CSUM@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh46:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	str	w8, [x21, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh47:
	adrp	x8, _TX_JUMBO_DIS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TX_JUMBO_DIS@GOTPAGEOFF]
LBB0_8:
Lloh49:
	adrp	x9, _TX_STFW_ENA@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TX_STFW_ENA@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh51:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_10
LBB0_9:
Lloh52:
	adrp	x8, _TX_GMF_CTRL_T@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TX_GMF_CTRL_T@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh55:
	adrp	x8, _TX_STFW_ENA@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TX_STFW_ENA@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sky2_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_YUKON_EX,8,3           ; @CHIP_ID_YUKON_EX
	.comm	_CHIP_REV_YU_EX_A0,8,3          ; @CHIP_REV_YU_EX_A0
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ; @CHIP_ID_YUKON_FE_P
	.comm	_CHIP_ID_YUKON_SUPR,8,3         ; @CHIP_ID_YUKON_SUPR
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_TX_GMF_CTRL_T,4,2              ; @TX_GMF_CTRL_T
	.comm	_TX_JUMBO_DIS,4,2               ; @TX_JUMBO_DIS
	.comm	_TX_STFW_ENA,4,2                ; @TX_STFW_ENA
	.comm	_TX_JUMBO_ENA,4,2               ; @TX_JUMBO_ENA
	.comm	_TX_GMF_AE_THR,4,2              ; @TX_GMF_AE_THR
	.comm	_ECU_JUMBO_WM,4,2               ; @ECU_JUMBO_WM
	.comm	_ECU_AE_THR,4,2                 ; @ECU_AE_THR
	.comm	_TX_STFW_DIS,4,2                ; @TX_STFW_DIS
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_ALL_CSUM,4,2           ; @NETIF_F_ALL_CSUM
	.no_dead_strip	_sky2_set_tx_stfwd
.subsections_via_symbols
