	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sunvnet_port_add_txq_common    ## -- Begin function sunvnet_port_add_txq_common
	.p2align	4, 0x90
_sunvnet_port_add_txq_common:           ## @sunvnet_port_add_txq_common
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r8
	movq	_VNET_MAX_TXQS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	(%r8), %r10
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movl	%r11d, %eax
	cmpq	%rsi, %r9
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rdx
	movl	%esi, %r11d
	cmpq	(%r10,%rdx,8), %rcx
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r11d
	jmp	LBB0_6
LBB0_1:
	xorl	%r11d, %r11d
	jmp	LBB0_8
LBB0_7:
	movl	%esi, %r11d
LBB0_8:
	incl	8(%r8)
	movslq	%r11d, %rax
	incq	(%r10,%rax,8)
	movl	%eax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNET_MAX_TXQS,4,2              ## @VNET_MAX_TXQS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sunvnet_port_add_txq_common    ; -- Begin function sunvnet_port_add_txq_common
	.p2align	2
_sunvnet_port_add_txq_common:           ; @sunvnet_port_add_txq_common
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _VNET_MAX_TXQS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VNET_MAX_TXQS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	ldr	x9, [x8]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x12, #0
	mov	w11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, x12, lsl #3]
	cbz	x13, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x14, [x9, w11, sxtw #3]
	cmp	x13, x14
	csel	w11, w12, w11, lt
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w11, #0
	b	LBB0_6
LBB0_5:
	mov	x11, x12
LBB0_6:
	ldr	w10, [x8, #8]
	add	w10, w10, #1
	str	w10, [x8, #8]
	sbfiz	x8, x11, #3, #32
	ldr	x10, [x9, x8]
	add	x10, x10, #1
	str	x10, [x9, x8]
	str	w11, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VNET_MAX_TXQS,4,2              ; @VNET_MAX_TXQS
.subsections_via_symbols
