	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_sw_get_port_mib
_adm6996_sw_get_port_mib:               ## @adm6996_sw_get_port_mib
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_to_adm
	movq	%rax, %r12
	movl	(%rbx), %r13d
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_1
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	leaq	8(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %r14
	movq	_adm6996_mibs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	8(%rax,%r13), %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_ADM_OFFSET_PORT
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r16
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r13), %rbx
	movl	%r12d, %edi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	callq	_ADM_OFFSET_PORT
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_r16
	shll	$16, %eax
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	%eax, %r8d
	movslq	%r14d, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rdi
	movl	$8, %esi
	subl	%ebx, %esi
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13), %rcx
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	_adm6996_mibs@GOTPCREL(%rip), %rbx
	incq	%r12
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	%r14d, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM_NUM_PORTS,4,2              ## @ADM_NUM_PORTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %d MIB counters\n"

	.comm	_adm6996_mibs,8,3               ## @adm6996_mibs
L_.str.1:                               ## @.str.1
	.asciz	"%-12s: %u\n"

	.no_dead_strip	_adm6996_sw_get_port_mib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_sw_get_port_mib
_adm6996_sw_get_port_mib:               ; @adm6996_sw_get_port_mib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_to_adm
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _ADM_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADM_NUM_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x20, [x0], #8
	stp	x0, x19, [sp, #16]              ; 16-byte Folded Spill
	bl	_mutex_lock
	str	x22, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #8
	bl	_snprintf
	mov	x24, x0
Lloh5:
	adrp	x28, _adm6996_mibs@GOTPAGE
Lloh6:
	ldr	x28, [x28, _adm6996_mibs@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x19, #0
Lloh7:
	adrp	x25, l_.str.1@PAGE
Lloh8:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x8, x8, x23
	ldr	x26, [x8, #8]
	mov	x0, x22
	bl	_ADM_OFFSET_PORT
	add	x1, x0, x26
	mov	x0, x21
	bl	_r16
	mov	x26, x0
	ldr	x8, [x28]
	add	x8, x8, x23
	ldr	x27, [x8, #8]
	mov	x0, x22
	bl	_ADM_OFFSET_PORT
	add	x8, x27, x0
	mov	w27, #8
	add	x1, x8, #1
	mov	x0, x21
	bl	_r16
	add	w8, w26, w0, lsl #16
	sxtw	x26, w24
	add	x0, x20, x26
	sub	w1, w27, w24
	ldr	x9, [x28]
	ldr	x9, [x9, x23]
	stp	x9, x8, [sp]
	mov	x2, x25
	bl	_snprintf
	add	x24, x0, x26
	add	x19, x19, #1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x19, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_mutex_unlock
	mov	w0, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x20, [x8, #8]
	str	w24, [x8, #4]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %d MIB counters\n"

	.comm	_adm6996_mibs,8,3               ; @adm6996_mibs
l_.str.1:                               ; @.str.1
	.asciz	"%-12s: %u\n"

	.no_dead_strip	_adm6996_sw_get_port_mib
.subsections_via_symbols
