	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_set_coalesce
_igb_set_coalesce:                      ## @igb_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
	movl	(%rbx), %edi
	movq	_IGB_MAX_ITR_USECS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %edi
	jle	LBB0_1
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$4, %edi
	setge	%dl
	movq	_IGB_MIN_ITR_USECS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edi
	setl	%cl
	cmpl	$2, %edi
	je	LBB0_3
## %bb.2:
	andb	%cl, %dl
	jne	LBB0_3
## %bb.4:
	movl	4(%rbx), %edx
	cmpl	%esi, %edx
	jg	LBB0_3
## %bb.5:
	cmpl	$4, %edx
	setge	%bl
	cmpl	%r8d, %edx
	setl	%cl
	cmpl	$2, %edx
	je	LBB0_3
## %bb.6:
	andb	%cl, %bl
	jne	LBB0_3
## %bb.7:
	movl	(%rax), %esi
	movq	_IGB_FLAG_QUEUE_PAIRS@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	testl	%esi, %ecx
	je	LBB0_9
## %bb.8:
	testl	%edx, %edx
	jne	LBB0_3
LBB0_9:
	testl	%edi, %edi
	je	LBB0_10
## %bb.12:
	cmpl	$4, %edi
	jge	LBB0_13
	jmp	LBB0_14
LBB0_10:
	movq	_IGB_FLAG_DMAC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	testl	%esi, %ebx
	je	LBB0_13
## %bb.11:
	notl	%ebx
	andl	%ebx, %esi
	movl	%esi, (%rax)
	movl	(%r8), %ecx
LBB0_13:
	shll	$2, %edi
LBB0_14:
	movl	%edi, 4(%rax)
	testl	%esi, %ecx
	jne	LBB0_16
## %bb.15:
	leal	(,%rdx,4), %ecx
	cmpl	$4, %edx
	movl	%ecx, %edi
	cmovll	%edx, %edi
	testl	%edx, %edx
	cmovel	%ecx, %edi
LBB0_16:
	movl	%edi, 8(%rax)
	movl	12(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_17
## %bb.18:
	leaq	4(%rax), %r10
	movq	%rax, %rsi
	addq	$8, %rsi
	movq	24(%rax), %rdi
	movl	16(%rax), %ebx
	xorl	%ecx, %ecx
	movq	_IGB_START_ITR@GOTPCREL(%rip), %r9
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, 4(%rax)
	incq	%rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r8
	je	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rax
	movl	%ebx, 16(%rax)
	cmpq	$0, 8(%rax)
	movq	%r10, %rdx
	cmoveq	%rsi, %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	testl	%edx, %edx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	$3, %edx
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r9), %edx
	movl	%edx, (%rax)
	jmp	LBB0_22
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_IGB_MAX_ITR_USECS,4,2          ## @IGB_MAX_ITR_USECS
	.comm	_IGB_MIN_ITR_USECS,4,2          ## @IGB_MIN_ITR_USECS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IGB_FLAG_QUEUE_PAIRS,4,2       ## @IGB_FLAG_QUEUE_PAIRS
	.comm	_IGB_FLAG_DMAC,4,2              ## @IGB_FLAG_DMAC
	.comm	_IGB_START_ITR,4,2              ## @IGB_START_ITR
	.no_dead_strip	_igb_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_set_coalesce
_igb_set_coalesce:                      ; @igb_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	w8, [x19]
Lloh0:
	adrp	x9, _IGB_MAX_ITR_USECS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IGB_MAX_ITR_USECS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	cmp	w8, w10
	b.gt	LBB0_8
; %bb.1:
Lloh3:
	adrp	x9, _IGB_MIN_ITR_USECS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IGB_MIN_ITR_USECS@GOTPAGEOFF]
	cmp	w8, #3
Lloh5:
	ldr	w11, [x9]
	ccmp	w8, w11, #0, gt
	cset	w9, lt
	cmp	w8, #2
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_8
; %bb.2:
	ldr	w9, [x19, #4]
	cmp	w9, w10
	b.gt	LBB0_8
; %bb.3:
	cmp	w9, #3
	ccmp	w9, w11, #0, gt
	cset	w10, lt
	cmp	w9, #2
	b.eq	LBB0_8
; %bb.4:
	cbnz	w10, LBB0_8
; %bb.5:
	ldr	w10, [x0]
Lloh6:
	adrp	x11, _IGB_FLAG_QUEUE_PAIRS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IGB_FLAG_QUEUE_PAIRS@GOTPAGEOFF]
	ldr	w12, [x11]
	and	w13, w12, w10
	cmp	w13, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_8
; %bb.6:
	cbz	w8, LBB0_10
; %bb.7:
	cmp	w8, #4
	b.ge	LBB0_12
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh11:
	adrp	x13, _IGB_FLAG_DMAC@GOTPAGE
Lloh12:
	ldr	x13, [x13, _IGB_FLAG_DMAC@GOTPAGEOFF]
Lloh13:
	ldr	w13, [x13]
	tst	w13, w10
	b.eq	LBB0_12
; %bb.11:
	bic	w10, w10, w13
	str	w10, [x0]
	ldr	w12, [x11]
LBB0_12:
	lsl	w8, w8, #2
LBB0_13:
	mov	x11, x0
	str	w8, [x11, #4]!
	cmp	w9, #4
	ccmp	w9, #0, #4, lt
	lsl	w13, w9, #2
	csel	w9, w9, w13, ne
	tst	w12, w10
	csel	w9, w8, w9, ne
	mov	x8, x0
	str	w9, [x8, #8]!
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.14:
	ldr	x10, [x0, #24]
	ldr	w12, [x0, #16]
	mov	w13, #1
Lloh14:
	adrp	x14, _IGB_START_ITR@GOTPAGE
Lloh15:
	ldr	x14, [x14, _IGB_START_ITR@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #0
	str	w13, [x15, #4]
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x10]
	str	w12, [x15, #16]
	ldr	x16, [x15, #8]
	cmp	x16, #0
	csel	x16, x8, x11, eq
	ldr	w16, [x16]
	str	w16, [x15]
	cmp	w16, #0
	ccmp	w16, #3, #0, ne
	b.gt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w16, [x14]
	str	w16, [x15]
	b	LBB0_15
LBB0_18:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IGB_MAX_ITR_USECS,4,2          ; @IGB_MAX_ITR_USECS
	.comm	_IGB_MIN_ITR_USECS,4,2          ; @IGB_MIN_ITR_USECS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IGB_FLAG_QUEUE_PAIRS,4,2       ; @IGB_FLAG_QUEUE_PAIRS
	.comm	_IGB_FLAG_DMAC,4,2              ; @IGB_FLAG_DMAC
	.comm	_IGB_START_ITR,4,2              ; @IGB_START_ITR
	.no_dead_strip	_igb_set_coalesce
.subsections_via_symbols
