	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_set_coalesce
_ixgbe_set_coalesce:                    ## @ixgbe_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	%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
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	16(%rax), %r9
	testq	%r9, %r9
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.2:
	cmpl	$0, (%r15)
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rsi
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rsi
	addq	$4, %rsi
LBB0_6:
	movl	4(%r15), %edi
	movq	_IXGBE_MAX_EITR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %edi
	jg	LBB0_3
## %bb.7:
	movl	(%r15), %edx
	cmpl	%ecx, %edx
	jle	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rsi), %r8d
	leal	(,%rdi,4), %esi
	cmpl	$2, %edi
	cmovll	%edi, %esi
	movl	%esi, (%rbx)
	movl	%esi, %r12d
	cmpl	$1, %esi
	jne	LBB0_10
## %bb.9:
	movq	_IXGBE_20K_ITR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_10:
	leal	(,%rdx,4), %edi
	cmpl	$2, %edx
	cmovll	%edx, %edi
	movl	%edi, 4(%rbx)
	movl	%edi, %r13d
	cmpl	$1, %edi
	jne	LBB0_12
## %bb.11:
	movq	_IXGBE_12K_ITR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_12:
	testq	%r9, %r9
	je	LBB0_15
## %bb.13:
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.14:
	movl	%esi, 4(%rbx)
	movl	%esi, %edi
LBB0_15:
	movq	_IXGBE_100K_ITR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %edi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.16:
	cmpl	%eax, %edi
	jge	LBB0_18
## %bb.17:
	cmpl	$1, %r8d
	sete	%cl
	cmpl	%eax, %r8d
	setge	%al
	orb	%cl, %al
	jmp	LBB0_19
LBB0_18:
	cmpl	$1, %r8d
	setne	%cl
	cmpl	%eax, %r8d
	setl	%al
	andb	%cl, %al
LBB0_19:
	movzbl	%al, %r14d
	movq	%rbx, %rdi
	callq	_ixgbe_update_rsc
	movl	%eax, %r15d
	orl	%r14d, %r15d
	cmpl	$0, 8(%rbx)
	jle	LBB0_25
## %bb.20:
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r12d, %eax
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, (%rdi)
	callq	_ixgbe_write_eitr
	incq	%r14
	movslq	8(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	$0, 8(%rdi)
	movl	%r13d, %eax
	jne	LBB0_23
	jmp	LBB0_24
LBB0_25:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	je	LBB0_27
## %bb.26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ixgbe_do_reset
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IXGBE_MAX_EITR,4,2             ## @IXGBE_MAX_EITR
	.comm	_IXGBE_20K_ITR,4,2              ## @IXGBE_20K_ITR
	.comm	_IXGBE_12K_ITR,4,2              ## @IXGBE_12K_ITR
	.comm	_IXGBE_100K_ITR,4,2             ## @IXGBE_100K_ITR
	.no_dead_strip	_ixgbe_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_set_coalesce
_ixgbe_set_coalesce:                    ; @ixgbe_set_coalesce
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_4
; %bb.2:
	ldr	w10, [x21]
	cbnz	w10, LBB0_7
; %bb.3:
	mov	x10, x20
	b	LBB0_5
LBB0_4:
	add	x10, x20, #4
LBB0_5:
	ldr	w11, [x21, #4]
Lloh0:
	adrp	x12, _IXGBE_MAX_EITR@GOTPAGE
Lloh1:
	ldr	x12, [x12, _IXGBE_MAX_EITR@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	asr	w12, w12, #2
	cmp	w11, w12
	b.gt	LBB0_7
; %bb.6:
	ldr	w13, [x21]
	cmp	w13, w12
	b.le	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w10, [x10]
	lsl	w12, w11, #2
	cmp	w11, #1
	csel	w12, w12, w11, gt
	str	w12, [x20]
Lloh6:
	adrp	x11, _IXGBE_20K_ITR@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IXGBE_20K_ITR@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w12, #1
	csel	w21, w11, w12, eq
	lsl	w11, w13, #2
	cmp	w13, #1
	csel	w11, w11, w13, gt
	str	w11, [x20, #4]
Lloh9:
	adrp	x13, _IXGBE_12K_ITR@GOTPAGE
Lloh10:
	ldr	x13, [x13, _IXGBE_12K_ITR@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	cmp	w11, #1
	csel	w22, w13, w11, eq
	cbz	x9, LBB0_12
; %bb.10:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.11:
	str	w12, [x20, #4]
	mov	x11, x12
LBB0_12:
Lloh12:
	adrp	x8, _IXGBE_100K_ITR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_100K_ITR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w11, #1
	b.eq	LBB0_15
; %bb.13:
	cmp	w11, w8
	b.ge	LBB0_15
; %bb.14:
	cmp	w10, #1
	ccmp	w10, w8, #0, ne
	cset	w23, ge
	b	LBB0_16
LBB0_15:
	cmp	w10, #1
	ccmp	w10, w8, #0, ne
	cset	w23, lt
LBB0_16:
	mov	x0, x20
	bl	_ixgbe_update_rsc
	orr	w23, w0, w23
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x24, #0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x8, x21
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	str	w8, [x0]
	bl	_ixgbe_write_eitr
	add	x24, x24, #1
	ldrsw	x8, [x20, #8]
	cmp	x24, x8
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x24, lsl #3]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x0, #8]
	mov	x8, x22
	cbnz	x9, LBB0_18
	b	LBB0_19
LBB0_22:
	cbz	w23, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_ixgbe_do_reset
LBB0_24:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IXGBE_MAX_EITR,4,2             ; @IXGBE_MAX_EITR
	.comm	_IXGBE_20K_ITR,4,2              ; @IXGBE_20K_ITR
	.comm	_IXGBE_12K_ITR,4,2              ; @IXGBE_12K_ITR
	.comm	_IXGBE_100K_ITR,4,2             ; @IXGBE_100K_ITR
	.no_dead_strip	_ixgbe_set_coalesce
.subsections_via_symbols
