	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_set_coalesce
_virtnet_set_coalesce:                  ## @virtnet_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$1, -48(%rbp)
	movq	_ETHTOOL_SCOALESCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	callq	_netdev_priv
	movl	4(%rbx), %r12d
	cmpl	$2, %r12d
	jge	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	%r12d, -44(%rbp)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r14), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_21
## %bb.7:
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r15)
	je	LBB0_8
## %bb.22:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_21
## %bb.9:
	cmpl	$8, %edx
	jae	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_11:
	movl	%edx, %esi
	andl	$-8, %esi
	movd	%r12d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %eax
	andl	$7, %eax
	cmpq	$56, %rbx
	jae	LBB0_13
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_13:
	andq	$-8, %rdi
	xorl	%ebx, %ebx
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rbx,4)
	movdqu	%xmm0, 16(%rcx,%rbx,4)
	movdqu	%xmm0, 32(%rcx,%rbx,4)
	movdqu	%xmm0, 48(%rcx,%rbx,4)
	movdqu	%xmm0, 64(%rcx,%rbx,4)
	movdqu	%xmm0, 80(%rcx,%rbx,4)
	movdqu	%xmm0, 96(%rcx,%rbx,4)
	movdqu	%xmm0, 112(%rcx,%rbx,4)
	movdqu	%xmm0, 128(%rcx,%rbx,4)
	movdqu	%xmm0, 144(%rcx,%rbx,4)
	movdqu	%xmm0, 160(%rcx,%rbx,4)
	movdqu	%xmm0, 176(%rcx,%rbx,4)
	movdqu	%xmm0, 192(%rcx,%rbx,4)
	movdqu	%xmm0, 208(%rcx,%rbx,4)
	movdqu	%xmm0, 224(%rcx,%rbx,4)
	movdqu	%xmm0, 240(%rcx,%rbx,4)
	addq	$64, %rbx
	addq	$-8, %rdi
	jne	LBB0_14
LBB0_15:
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	(%rcx,%rbx,4), %rdi
	addq	$16, %rdi
	shlq	$5, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_17
LBB0_18:
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	je	LBB0_21
LBB0_19:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_SCOALESCE,4,2          ## @ETHTOOL_SCOALESCE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_virtnet_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_set_coalesce
_virtnet_set_coalesce:                  ; @virtnet_set_coalesce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ETHTOOL_SCOALESCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_SCOALESCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [sp]
	str	w8, [sp, #8]
	bl	_netdev_priv
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.ge	LBB0_2
; %bb.1:
	mov	x20, x0
	str	w8, [sp, #4]
Lloh3:
	adrp	x9, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w22, wzr, w9, eq
	mov	x1, sp
	mov	x0, x21
	mov	w2, #12
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	cmp	w22, w9
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_4
LBB0_7:
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _IFF_UP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IFF_UP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.10:
	cmp	w9, #16
	b.hs	LBB0_12
; %bb.11:
	mov	x10, #0
	b	LBB0_15
LBB0_12:
	and	x10, x9, #0xfffffff0
	dup.4s	v0, w22
	add	x11, x8, #32
	mov	x12, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_15:
	add	x8, x8, x10, lsl #2
	sub	x9, x9, x10
	mov	w0, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w22, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_16
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_SCOALESCE,4,2          ; @ETHTOOL_SCOALESCE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_virtnet_set_coalesce
.subsections_via_symbols
