	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igbvf_set_coalesce
_igbvf_set_coalesce:                    ## @igbvf_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
	movl	(%rbx), %esi
	movq	_IGBVF_MIN_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jl	LBB0_3
## %bb.1:
	movq	_IGBVF_MAX_ITR_USECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_3
## %bb.2:
	leal	(,%rsi,4), %edi
	movl	%edi, (%rcx)
	shll	$10, %esi
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivl	%esi
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_3:
	leal	-2(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_4
## %bb.7:
	movq	_IGBVF_START_ITR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%rcx)
	jmp	LBB0_8
LBB0_4:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:
	movl	$4, (%rcx)
	movl	$4, %edi
	movl	$976562, %esi                   ## imm = 0xEE6B2
LBB0_8:
	movl	%esi, 4(%rcx)
	movq	8(%rcx), %rax
	movq	(%rax), %rsi
	addq	16(%rcx), %rsi
	callq	_writel
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IGBVF_MIN_ITR_USECS,4,2        ## @IGBVF_MIN_ITR_USECS
	.comm	_IGBVF_MAX_ITR_USECS,4,2        ## @IGBVF_MAX_ITR_USECS
	.comm	_IGBVF_START_ITR,4,2            ## @IGBVF_START_ITR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_igbvf_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igbvf_set_coalesce
_igbvf_set_coalesce:                    ; @igbvf_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	w9, [x19]
Lloh0:
	adrp	x8, _IGBVF_MIN_ITR_USECS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGBVF_MIN_ITR_USECS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _IGBVF_MAX_ITR_USECS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IGBVF_MAX_ITR_USECS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w9, w10, #0, ge
	b.le	LBB0_3
; %bb.1:
	sub	w8, w9, #2
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _IGBVF_START_ITR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGBVF_START_ITR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0]
	b	LBB0_6
LBB0_3:
	lsl	w8, w9, #2
	str	w8, [x0]
	lsl	w9, w9, #10
	mov	w10, #51712
	movk	w10, #15258, lsl #16
	sdiv	w9, w10, w9
	b	LBB0_6
LBB0_4:
	cbnz	w9, LBB0_8
; %bb.5:
	mov	w8, #4
	str	w8, [x0]
	mov	w9, #59058
	movk	w9, #14, lsl #16
LBB0_6:
	str	w9, [x0, #4]
	ldp	x10, x9, [x0, #8]
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	bl	_writel
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IGBVF_MIN_ITR_USECS,4,2        ; @IGBVF_MIN_ITR_USECS
	.comm	_IGBVF_MAX_ITR_USECS,4,2        ; @IGBVF_MAX_ITR_USECS
	.comm	_IGBVF_START_ITR,4,2            ; @IGBVF_START_ITR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_igbvf_set_coalesce
.subsections_via_symbols
