	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_config_tx_modes
_igb_config_tx_modes:                   ## @igb_config_tx_modes
	.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	%esi, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	_e1000_i210@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpl	$2, %ebx
	setae	%dil
	callq	_WARN_ON
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movq	_QUEUE_MODE_STREAM_RESERVATION@GOTPCREL(%rip), %rbx
	movq	_TX_QUEUE_PRIO_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	cmpq	$0, 16(%r14)
	movq	_TX_QUEUE_PRIO_HIGH@GOTPCREL(%rip), %rax
	cmoveq	_TX_QUEUE_PRIO_LOW@GOTPCREL(%rip), %rax
	movq	_QUEUE_MODE_STREAM_RESERVATION@GOTPCREL(%rip), %rbx
	cmoveq	_QUEUE_MODE_STRICT_PRIORITY@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_set_tx_desc_fetch_prio
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_set_queue_mode
	movq	24(%r14), %rax
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVCC
	movl	%eax, %edi
	callq	_rd32
	movq	_E1000_TQAVCC_IDLESLOPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVCC
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_wr32
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVHC
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	%r15, %rdi
	callq	_is_any_cbs_enabled
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_E1000_I210_TQAVCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_TQAVCTRL_DATATRANARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_wr32
LBB0_11:
	cmpq	$0, 16(%r14)
	je	LBB0_13
LBB0_12:
	movq	_E1000_I210_TQAVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %esi
	movq	_E1000_TQAVCTRL_DATATRANTIM@GOTPCREL(%rip), %rax
	movq	_E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPCREL(%rip), %rcx
	orl	(%rax), %esi
	orl	(%rcx), %esi
LBB0_15:
	movq	_E1000_I210_TQAVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wr32
	jmp	LBB0_16
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	$1000000, (%r14)                ## imm = 0xF4240
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_8:
	movq	_E1000_I210_TQAVCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_TQAVCTRL_DATATRANARB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_wr32
	movslq	(%r14), %rax
	imulq	$61034, %rax, %rdi              ## imm = 0xEE6A
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_DIV_ROUND_UP_ULL
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVCC
	movl	%eax, %edi
	callq	_rd32
	movq	_E1000_TQAVCC_IDLESLOPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVCC
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_wr32
	movl	%r13d, %edi
	callq	_E1000_I210_TQAVHC
	imull	$30517, 4(%r14), %esi           ## imm = 0x7735
	addl	$-2147483648, %esi              ## imm = 0x80000000
	movl	%eax, %edi
	callq	_wr32
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, 16(%r14)
	jne	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_is_any_txtime_enabled
	testl	%eax, %eax
	je	LBB0_14
LBB0_16:
	cmpq	$0, 24(%r14)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	cmpq	$0, 16(%r14)
	cmoveq	%rax, %rcx
	movslq	(%r14), %r9
	movl	12(%r14), %r10d
	movl	4(%r14), %ebx
	movl	8(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %r8d
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_netdev_dbg
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_E1000_I210_TQAVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_TQAVCTRL_DATATRANTIM@GOTPCREL(%rip), %rcx
	movq	_E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_i210,8,3                 ## @e1000_i210
	.comm	_TX_QUEUE_PRIO_HIGH,4,2         ## @TX_QUEUE_PRIO_HIGH
	.comm	_QUEUE_MODE_STREAM_RESERVATION,4,2 ## @QUEUE_MODE_STREAM_RESERVATION
	.comm	_TX_QUEUE_PRIO_LOW,4,2          ## @TX_QUEUE_PRIO_LOW
	.comm	_QUEUE_MODE_STRICT_PRIORITY,4,2 ## @QUEUE_MODE_STRICT_PRIORITY
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_E1000_I210_TQAVCTRL,4,2        ## @E1000_I210_TQAVCTRL
	.comm	_E1000_TQAVCTRL_DATATRANARB,4,2 ## @E1000_TQAVCTRL_DATATRANARB
	.comm	_E1000_TQAVCC_IDLESLOPE_MASK,4,2 ## @E1000_TQAVCC_IDLESLOPE_MASK
	.comm	_E1000_TQAVCTRL_DATATRANTIM,4,2 ## @E1000_TQAVCTRL_DATATRANTIM
	.comm	_E1000_TQAVCTRL_FETCHTIME_DELTA,4,2 ## @E1000_TQAVCTRL_FETCHTIME_DELTA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Qav Tx mode: cbs %s, launchtime %s, queue %d idleslope %d sendslope %d hiCredit %d locredit %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.no_dead_strip	_igb_config_tx_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_config_tx_modes
_igb_config_tx_modes:                   ; @igb_config_tx_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	ldp	x20, x8, [x0, #8]
	ldr	x23, [x8, w1, sxtw #3]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_i210@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_i210@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cmp	w19, #1
	cset	w0, hi
	bl	_WARN_ON
	ldr	x9, [x23, #24]
Lloh3:
	adrp	x22, _QUEUE_MODE_STREAM_RESERVATION@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QUEUE_MODE_STREAM_RESERVATION@GOTPAGEOFF]
Lloh5:
	adrp	x8, _TX_QUEUE_PRIO_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_QUEUE_PRIO_HIGH@GOTPAGEOFF]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _TX_QUEUE_PRIO_LOW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TX_QUEUE_PRIO_LOW@GOTPAGEOFF]
	ldr	x10, [x23, #16]
	cmp	x10, #0
	csel	x8, x9, x8, eq
Lloh9:
	adrp	x9, _QUEUE_MODE_STRICT_PRIORITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QUEUE_MODE_STRICT_PRIORITY@GOTPAGEOFF]
	csel	x22, x9, x22, eq
LBB0_2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_set_tx_desc_fetch_prio
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_set_queue_mode
	ldr	x8, [x23, #24]
	cbz	w19, LBB0_8
; %bb.3:
	cbnz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_E1000_I210_TQAVCC
	bl	_rd32
Lloh11:
	adrp	x8, _E1000_TQAVCC_IDLESLOPE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_TQAVCC_IDLESLOPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w22, w0, w8
	mov	x0, x19
	bl	_E1000_I210_TQAVCC
	mov	x1, x22
	bl	_wr32
	mov	x0, x19
	bl	_E1000_I210_TQAVHC
	mov	w1, #0
	bl	_wr32
	mov	x0, x21
	bl	_is_any_cbs_enabled
	cbz	w0, LBB0_12
; %bb.5:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_14
LBB0_6:
Lloh14:
	adrp	x8, _E1000_I210_TQAVCTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_I210_TQAVCTRL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_rd32
Lloh17:
	adrp	x8, _E1000_TQAVCTRL_DATATRANTIM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_TQAVCTRL_DATATRANTIM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w1, w8, w9
LBB0_7:
Lloh23:
	adrp	x8, _E1000_I210_TQAVCTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _E1000_I210_TQAVCTRL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_wr32
	b	LBB0_15
LBB0_8:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	cbnz	w19, LBB0_11
; %bb.9:
	cbnz	x8, LBB0_11
; %bb.10:
	str	w9, [x23]
Lloh26:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x23, #4]
LBB0_11:
Lloh29:
	adrp	x22, _E1000_I210_TQAVCTRL@GOTPAGE
Lloh30:
	ldr	x22, [x22, _E1000_I210_TQAVCTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rd32
Lloh31:
	adrp	x8, _E1000_TQAVCTRL_DATATRANARB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E1000_TQAVCTRL_DATATRANARB@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x22]
	bl	_wr32
	ldrsw	x8, [x23]
	mov	w9, #61034
	mul	x0, x8, x9
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_DIV_ROUND_UP_ULL
	mov	x22, x0
	mov	x0, x19
	bl	_E1000_I210_TQAVCC
	bl	_rd32
Lloh34:
	adrp	x8, _E1000_TQAVCC_IDLESLOPE_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_TQAVCC_IDLESLOPE_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w22, w8, w22
	mov	x0, x19
	bl	_E1000_I210_TQAVCC
	mov	x1, x22
	bl	_wr32
	mov	x0, x19
	bl	_E1000_I210_TQAVHC
	ldr	w8, [x23, #4]
	mov	w9, #30517
	mul	w8, w8, w9
	eor	w1, w8, #0x80000000
	b	LBB0_13
LBB0_12:
Lloh37:
	adrp	x22, _E1000_I210_TQAVCTRL@GOTPAGE
Lloh38:
	ldr	x22, [x22, _E1000_I210_TQAVCTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rd32
Lloh39:
	adrp	x8, _E1000_TQAVCTRL_DATATRANARB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _E1000_TQAVCTRL_DATATRANARB@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x22]
LBB0_13:
	bl	_wr32
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_6
LBB0_14:
	mov	x0, x21
	bl	_is_any_txtime_enabled
	cbz	w0, LBB0_16
LBB0_15:
Lloh42:
	adrp	x8, l_.str.1@PAGE
Lloh43:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh44:
	adrp	x9, l_.str.2@PAGE
Lloh45:
	add	x9, x9, l_.str.2@PAGEOFF
	ldp	x11, x10, [x23, #16]
	cmp	x10, #0
	csel	x2, x9, x8, eq
	cmp	x11, #0
	csel	x3, x9, x8, eq
	ldp	w5, w7, [x23]
                                        ; kill: def $w5 killed $w5 def $x5
	sxtw	x5, w5
	ldp	w8, w6, [x23, #8]
	str	w8, [sp]
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_netdev_dbg
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh48:
	adrp	x8, _E1000_I210_TQAVCTRL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _E1000_I210_TQAVCTRL@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_rd32
Lloh51:
	adrp	x8, _E1000_TQAVCTRL_DATATRANTIM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _E1000_TQAVCTRL_DATATRANTIM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPAGE
Lloh55:
	ldr	x9, [x9, _E1000_TQAVCTRL_FETCHTIME_DELTA@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	b	LBB0_7
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_i210,8,3                 ; @e1000_i210
	.comm	_TX_QUEUE_PRIO_HIGH,4,2         ; @TX_QUEUE_PRIO_HIGH
	.comm	_QUEUE_MODE_STREAM_RESERVATION,4,2 ; @QUEUE_MODE_STREAM_RESERVATION
	.comm	_TX_QUEUE_PRIO_LOW,4,2          ; @TX_QUEUE_PRIO_LOW
	.comm	_QUEUE_MODE_STRICT_PRIORITY,4,2 ; @QUEUE_MODE_STRICT_PRIORITY
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_E1000_I210_TQAVCTRL,4,2        ; @E1000_I210_TQAVCTRL
	.comm	_E1000_TQAVCTRL_DATATRANARB,4,2 ; @E1000_TQAVCTRL_DATATRANARB
	.comm	_E1000_TQAVCC_IDLESLOPE_MASK,4,2 ; @E1000_TQAVCC_IDLESLOPE_MASK
	.comm	_E1000_TQAVCTRL_DATATRANTIM,4,2 ; @E1000_TQAVCTRL_DATATRANTIM
	.comm	_E1000_TQAVCTRL_FETCHTIME_DELTA,4,2 ; @E1000_TQAVCTRL_FETCHTIME_DELTA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Qav Tx mode: cbs %s, launchtime %s, queue %d idleslope %d sendslope %d hiCredit %d locredit %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.no_dead_strip	_igb_config_tx_modes
.subsections_via_symbols
