	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_port_cntr                ## -- Begin function write_port_cntr
	.p2align	4, 0x90
_write_port_cntr:                       ## @write_port_cntr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r9d
	movl	%edx, %r8d
	movq	%rdi, %rcx
	movq	_C_RCV_HDR_OVF_FIRST@GOTPCREL(%rip), %rax
	movq	(%rdi), %rdi
	movl	(%rdi), %edx
	addl	(%rax), %edx
	cmpl	%esi, %edx
	jg	LBB0_3
## %bb.1:
	movq	_C_RCV_HDR_OVF_LAST@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_CNTR_INVALID_VL@GOTPCREL(%rip), %r10
	movq	_port_cntrs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	movslq	%esi, %rsi
	movslq	(%r11,%rsi,4), %rax
	shlq	$2, %rax
	addq	8(%rcx), %rax
	xorl	%edx, %edx
	cmpl	%r8d, (%r10)
	leaq	(%r11,%rsi,4), %rsi
	cmovnel	%r8d, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rdx
	popq	%rbp
	jmp	_write_dev_port_cntr            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_port_cntrs,8,3                 ## @port_cntrs
	.comm	_CNTR_INVALID_VL,4,2            ## @CNTR_INVALID_VL
	.comm	_C_RCV_HDR_OVF_FIRST,4,2        ## @C_RCV_HDR_OVF_FIRST
	.comm	_C_RCV_HDR_OVF_LAST,4,2         ## @C_RCV_HDR_OVF_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_port_cntr                ; -- Begin function write_port_cntr
	.p2align	2
_write_port_cntr:                       ; @write_port_cntr
	.cfi_startproc
; %bb.0:
	mov	x5, x3
	mov	x3, x0
Lloh0:
	adrp	x8, _C_RCV_HDR_OVF_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_RCV_HDR_OVF_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x0]
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _C_RCV_HDR_OVF_LAST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _C_RCV_HDR_OVF_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w9, w8
	cmp	w8, w1
	ccmp	w10, w1, #8, le
	b.ge	LBB0_2
; %bb.1:
	mov	x4, x2
Lloh6:
	adrp	x8, _CNTR_INVALID_VL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNTR_INVALID_VL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x3, #8]
Lloh9:
	adrp	x10, _port_cntrs@GOTPAGE
Lloh10:
	ldr	x10, [x10, _port_cntrs@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x1, x10, w1, sxtw #2
	ldrsw	x10, [x1]
	add	x9, x9, x10, lsl #2
	cmp	w8, w2
	csel	w8, wzr, w2, eq
	add	x2, x9, w8, sxtw #2
	b	_write_dev_port_cntr
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_port_cntrs,8,3                 ; @port_cntrs
	.comm	_CNTR_INVALID_VL,4,2            ; @CNTR_INVALID_VL
	.comm	_C_RCV_HDR_OVF_FIRST,4,2        ; @C_RCV_HDR_OVF_FIRST
	.comm	_C_RCV_HDR_OVF_LAST,4,2         ; @C_RCV_HDR_OVF_LAST
.subsections_via_symbols
