	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %rcx
	movq	8(%rax), %rax
	movq	_e1000_82545@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %edi
	movq	_E1000_MAX_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_8
## %bb.4:
	cmpl	$5, %edi
	jl	LBB0_6
## %bb.5:
	movq	_E1000_MIN_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_8
LBB0_6:
	cmpl	$4, %edi
	je	LBB0_9
## %bb.7:
	cmpl	$2, %edi
	jne	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, (%rcx)
	movl	$1024, %esi                     ## imm = 0x400
	jmp	LBB0_14
LBB0_10:
	cmpl	$3, %edi
	jg	LBB0_12
## %bb.11:
	movl	$20000, (%rcx)                  ## imm = 0x4E20
	movl	%edi, 4(%rcx)
	movl	$5120000, %esi                  ## imm = 0x4E2000
	jmp	LBB0_13
LBB0_12:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
	movl	%eax, (%rcx)
	movl	%eax, %edi
	andl	$1048572, %edi                  ## imm = 0xFFFFC
	movl	%edi, 4(%rcx)
	shll	$8, %esi
LBB0_13:
	testl	%edi, %edi
	je	LBB0_15
LBB0_14:
	movq	_ITR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
	jmp	LBB0_16
LBB0_15:
	movq	_ITR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
LBB0_16:
	callq	_ew32
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82545,8,3                ## @e1000_82545
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.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
	.comm	_ITR,4,2                        ## @ITR
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000_82545@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82545@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _E1000_MAX_ITR_USECS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_MAX_ITR_USECS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.3:
Lloh8:
	adrp	x9, _E1000_MIN_ITR_USECS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E1000_MIN_ITR_USECS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #5
	ccmp	w8, w9, #0, ge
	b.lt	LBB0_6
; %bb.4:
	cmp	w8, #4
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #2
	b.ne	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	movi.2s	v0, #4
	str	d0, [x0]
	mov	w9, #1024
	b	LBB0_14
LBB0_10:
	cmp	w8, #3
	b.gt	LBB0_12
; %bb.11:
	mov	w9, #20000
	stp	w9, w8, [x0]
	mov	w9, #8192
	movk	w9, #78, lsl #16
	b	LBB0_13
LBB0_12:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	udiv	w9, w9, w8
	and	w8, w9, #0xffffc
	stp	w9, w8, [x0]
	lsl	w9, w9, #8
LBB0_13:
	cbz	w8, LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _ITR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ITR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	udiv	w1, w8, w9
	b	LBB0_16
LBB0_15:
Lloh16:
	adrp	x8, _ITR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ITR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #0
LBB0_16:
	bl	_ew32
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82545,8,3                ; @e1000_82545
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.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
	.comm	_ITR,4,2                        ; @ITR
	.no_dead_strip	_e1000_set_coalesce
.subsections_via_symbols
