	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_coalesce
_e1000_set_coalesce:                    ## @e1000_set_coalesce
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %ecx
	movq	_E1000_MAX_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_5
## %bb.1:
	cmpl	$5, %ecx
	jl	LBB0_3
## %bb.2:
	movq	_E1000_MIN_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_5
LBB0_3:
	cmpl	$4, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	jne	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, (%r14)
	jmp	LBB0_10
LBB0_7:
	cmpl	$3, %ecx
	jg	LBB0_9
## %bb.8:
	movl	$20000, 4(%r14)                 ## imm = 0x4E20
	movl	%ecx, (%r14)
	jmp	LBB0_10
LBB0_9:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, 4(%r14)
	andl	$1048572, %eax                  ## imm = 0xFFFFC
	movl	%eax, (%r14)
LBB0_10:
	movl	(%r15), %edi
	callq	_pm_runtime_get_sync
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	movl	$0, %esi
	je	LBB0_12
## %bb.11:
	movl	4(%r14), %esi
LBB0_12:
	movq	%r14, %rdi
	callq	_e1000e_write_itr
	movl	(%r15), %edi
	callq	_pm_runtime_put_sync
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_MAX_ITR_USECS,4,2        ## @E1000_MAX_ITR_USECS
	.comm	_E1000_MIN_ITR_USECS,4,2        ## @E1000_MIN_ITR_USECS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_e1000_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_coalesce
_e1000_set_coalesce:                    ; @e1000_set_coalesce
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _E1000_MAX_ITR_USECS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _E1000_MAX_ITR_USECS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _E1000_MIN_ITR_USECS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_MIN_ITR_USECS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #5
	ccmp	w8, w9, #0, ge
	b.lt	LBB0_4
; %bb.2:
	mov	x20, x0
	cmp	w8, #4
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_6:
	movi.2s	v0, #4
	str	d0, [x20]
	b	LBB0_10
LBB0_7:
	cmp	w8, #3
	b.gt	LBB0_9
; %bb.8:
	mov	w9, #20000
	stp	w8, w9, [x20]
	b	LBB0_10
LBB0_9:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	udiv	w8, w9, w8
	and	w9, w8, #0xffffc
	stp	w9, w8, [x20]
LBB0_10:
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w1, [x20, #4]
	b	LBB0_13
LBB0_12:
	mov	w1, #0
LBB0_13:
	mov	x0, x20
	bl	_e1000e_write_itr
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_MAX_ITR_USECS,4,2        ; @E1000_MAX_ITR_USECS
	.comm	_E1000_MIN_ITR_USECS,4,2        ; @E1000_MIN_ITR_USECS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_e1000_set_coalesce
.subsections_via_symbols
