	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_itr
_e1000_set_itr:                         ## @e1000_set_itr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	56(%rdi), %rax
	movq	_e1000_82540@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	movl	$4000, %esi                     ## imm = 0xFA0
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rsi
	movl	52(%rbx), %edx
	movl	48(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_e1000_update_itr
	cmpq	$128, %rax
	movl	$129, %r14d
	movq	%rax, %rcx
	cmoveq	%r14, %rcx
	cmpl	$3, 24(%rbx)
	cmovneq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	movq	32(%rbx), %rsi
	movl	44(%rbx), %edx
	movl	40(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_e1000_update_itr
	cmpq	$128, %rax
	cmovneq	%rax, %r14
	cmpl	$3, 24(%rbx)
	movl	16(%rbx), %esi
	cmovneq	%rax, %r14
	movq	%r14, 32(%rbx)
	movl	%r14d, %edi
	callq	_max
	addl	$-128, %eax
	movl	%r15d, %esi
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.e1000_set_itr(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_4:
	movl	(%rbx), %edi
	cmpl	%edi, %esi
	jne	LBB0_5
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	jle	LBB0_7
## %bb.6:
	movl	%esi, %eax
	sarl	$2, %eax
	addl	%eax, %edi
	callq	_min
	movl	%eax, %esi
LBB0_7:
	movl	%esi, (%rbx)
	movq	_ITR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %esi
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivl	%esi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ew32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82540,8,3                ## @e1000_82540
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ITR,4,2                        ## @ITR
	.no_dead_strip	_e1000_set_itr
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.e1000_set_itr
l_switch.table.e1000_set_itr:
	.long	70000                           ## 0x11170
	.long	20000                           ## 0x4e20
	.long	4000                            ## 0xfa0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_itr
_e1000_set_itr:                         ; @e1000_set_itr
	.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	x19, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #56]
Lloh0:
	adrp	x9, _e1000_82540@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82540@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #4000
	b	LBB0_5
LBB0_3:
	ldr	x1, [x19, #16]
	ldp	w3, w2, [x19, #48]
	mov	x0, x19
	bl	_e1000_update_itr
	ldr	w8, [x19, #24]
	cmp	x0, #128
	ccmp	w8, #3, #0, eq
	mov	w21, #129
	csel	x8, x21, x0, eq
	str	x8, [x19, #16]
	ldr	x1, [x19, #32]
	ldp	w3, w2, [x19, #40]
	mov	x0, x19
	bl	_e1000_update_itr
	ldr	w8, [x19, #24]
	cmp	x0, #128
	ccmp	w8, #3, #0, eq
	csel	x0, x21, x0, eq
	str	x0, [x19, #32]
	ldr	w1, [x19, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_max
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, l_switch.table.e1000_set_itr@PAGE
Lloh7:
	add	x9, x9, l_switch.table.e1000_set_itr@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
LBB0_5:
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_7
LBB0_6:
	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:
	b.le	LBB0_9
; %bb.8:
	add	w0, w8, w20, asr #2
	mov	x1, x20
	bl	_min
	mov	x20, x0
LBB0_9:
	str	w20, [x19]
Lloh8:
	adrp	x8, _ITR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ITR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	lsl	w8, w20, #8
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	sdiv	w1, w9, w8
	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	_ew32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82540,8,3                ; @e1000_82540
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ITR,4,2                        ; @ITR
	.no_dead_strip	_e1000_set_itr
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.e1000_set_itr
l_switch.table.e1000_set_itr:
	.long	70000                           ; 0x11170
	.long	20000                           ; 0x4e20
	.long	4000                            ; 0xfa0

.subsections_via_symbols
