	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_setup_tx_ctx
_ice_setup_tx_ctx:                      ## @ice_setup_tx_ctx
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movl	(%rdi), %eax
	movq	_ICE_TLAN_CTX_BASE_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	8(%rdi), %r12
	movq	24(%r12), %r15
	movl	%eax, (%rbx)
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	4(%rdi), %eax
	movl	%eax, 52(%rbx)
	movq	%rbx, %rdi
	callq	_ice_set_cgd_num
	movl	8(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.1:
	movq	_ICE_TLAN_CTX_VMVF_TYPE_PF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%r12), %rax
	addq	(%r15), %rax
	movq	%rax, 40(%rbx)
	movq	_ICE_TLAN_CTX_VMVF_TYPE_VF@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_ice_get_hw_vsi_num
	movl	%eax, 32(%rbx)
	movq	_ICE_TX_LEGACY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	%r14d, 16(%rbx)
	movq	%rax, 8(%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_TLAN_CTX_BASE_S,4,2        ## @ICE_TLAN_CTX_BASE_S
	.comm	_ICE_TLAN_CTX_VMVF_TYPE_PF,4,2  ## @ICE_TLAN_CTX_VMVF_TYPE_PF
	.comm	_ICE_TLAN_CTX_VMVF_TYPE_VF,4,2  ## @ICE_TLAN_CTX_VMVF_TYPE_VF
	.comm	_ICE_TX_LEGACY,8,3              ## @ICE_TX_LEGACY
	.no_dead_strip	_ice_setup_tx_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_setup_tx_ctx
_ice_setup_tx_ctx:                      ; @ice_setup_tx_ctx
	.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, x2
	mov	x19, x1
	mov	x1, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _ICE_TLAN_CTX_BASE_S@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_TLAN_CTX_BASE_S@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	asr	w8, w9, w8
	str	w8, [x19]
	ldp	x8, x21, [x22, #16]
	ldr	w8, [x8]
	stp	w10, w8, [x19, #52]
	mov	x0, x19
	bl	_ice_set_cgd_num
	ldr	w8, [x21, #8]
	str	w8, [x19, #48]
	ldr	w8, [x22]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ICE_TLAN_CTX_VMVF_TYPE_PF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_TLAN_CTX_VMVF_TYPE_PF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x22, #8]
	add	x8, x9, x8
	str	x8, [x19, #40]
Lloh5:
	adrp	x8, _ICE_TLAN_CTX_VMVF_TYPE_VF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICE_TLAN_CTX_VMVF_TYPE_VF@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	ldr	w1, [x22, #4]
	mov	x0, x21
	bl	_ice_get_hw_vsi_num
	str	w0, [x19, #32]
Lloh7:
	adrp	x8, _ICE_TX_LEGACY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICE_TX_LEGACY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	str	w20, [x19, #16]
	str	x8, [x19, #8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_TLAN_CTX_BASE_S,4,2        ; @ICE_TLAN_CTX_BASE_S
	.comm	_ICE_TLAN_CTX_VMVF_TYPE_PF,4,2  ; @ICE_TLAN_CTX_VMVF_TYPE_PF
	.comm	_ICE_TLAN_CTX_VMVF_TYPE_VF,4,2  ; @ICE_TLAN_CTX_VMVF_TYPE_VF
	.comm	_ICE_TX_LEGACY,8,3              ; @ICE_TX_LEGACY
	.no_dead_strip	_ice_setup_tx_ctx
.subsections_via_symbols
