	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ag71xx_debugfs_update_napi_stats ## -- Begin function ag71xx_debugfs_update_napi_stats
	.p2align	4, 0x90
_ag71xx_debugfs_update_napi_stats:      ## @ag71xx_debugfs_update_napi_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	incl	40(%rdi)
	addl	%esi, (%rdi)
	movq	_AG71XX_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	32(%rdi), %rax
	movslq	%esi, %rcx
	incl	(%rax,%rcx,4)
LBB0_3:
	cmpl	%esi, 4(%rdi)
	jge	LBB0_5
## %bb.4:
	movl	%esi, 4(%rdi)
LBB0_5:
	testl	%edx, %edx
	je	LBB0_10
## %bb.6:
	incl	24(%rdi)
	addl	%edx, 8(%rdi)
	movq	_AG71XX_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_8
## %bb.7:
	movq	16(%rdi), %rax
	movslq	%edx, %rcx
	incl	(%rax,%rcx,4)
LBB0_8:
	cmpl	%edx, 12(%rdi)
	jge	LBB0_10
## %bb.9:
	movl	%edx, 12(%rdi)
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AG71XX_NAPI_WEIGHT,4,2         ## @AG71XX_NAPI_WEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ag71xx_debugfs_update_napi_stats ; -- Begin function ag71xx_debugfs_update_napi_stats
	.p2align	2
_ag71xx_debugfs_update_napi_stats:      ; @ag71xx_debugfs_update_napi_stats
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _AG71XX_NAPI_WEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AG71XX_NAPI_WEIGHT@GOTPAGEOFF]
	cbz	w1, LBB0_5
; %bb.1:
	ldr	w9, [x0, #40]
	add	w9, w9, #1
	str	w9, [x0, #40]
	ldr	w9, [x0]
	add	w9, w9, w1
	str	w9, [x0]
	ldr	w9, [x8]
	cmp	w9, w1
	b.lt	LBB0_3
; %bb.2:
	ldr	x9, [x0, #32]
	sbfiz	x10, x1, #2, #32
	ldr	w11, [x9, x10]
	add	w11, w11, #1
	str	w11, [x9, x10]
LBB0_3:
	ldr	w9, [x0, #4]
	cmp	w9, w1
	b.ge	LBB0_5
; %bb.4:
	str	w1, [x0, #4]
LBB0_5:
	cbz	w2, LBB0_10
; %bb.6:
	ldr	w9, [x0, #24]
	add	w9, w9, #1
	str	w9, [x0, #24]
	ldr	w9, [x0, #8]
	add	w9, w9, w2
	str	w9, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, w2
	b.lt	LBB0_8
; %bb.7:
	ldr	x8, [x0, #16]
	sbfiz	x9, x2, #2, #32
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_8:
	ldr	w8, [x0, #12]
	cmp	w8, w2
	b.ge	LBB0_10
; %bb.9:
	str	w2, [x0, #12]
LBB0_10:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AG71XX_NAPI_WEIGHT,4,2         ; @AG71XX_NAPI_WEIGHT
.subsections_via_symbols
