	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_get_port_stats
_adm6996_get_port_stats:                ## @adm6996_get_port_stats
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_to_adm
	movq	%rax, %r15
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_ADM6996_MIB_TXB_ID@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r13,8), %rbx
	movl	%r12d, %edi
	callq	_ADM_OFFSET_PORT
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movl	%r12d, %edi
	callq	_ADM_OFFSET_PORT
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_r16
	shll	$16, %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%r14)
	movq	_ADM6996_MIB_RXB_ID@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rbx
	movl	%r12d, %edi
	callq	_ADM_OFFSET_PORT
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r16
	movl	%eax, %r13d
	movq	_adm6996_mibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rbx
	movl	%r12d, %edi
	callq	_ADM_OFFSET_PORT
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_r16
	shll	$16, %eax
	addl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$24, %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
	.comm	_ADM6996_MIB_TXB_ID,4,2         ## @ADM6996_MIB_TXB_ID
	.comm	_adm6996_mibs,8,3               ## @adm6996_mibs
	.comm	_ADM6996_MIB_RXB_ID,4,2         ## @ADM6996_MIB_RXB_ID
	.no_dead_strip	_adm6996_get_port_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_get_port_stats
_adm6996_get_port_stats:                ; @adm6996_get_port_stats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	bl	_to_adm
Lloh0:
	adrp	x8, _ADM_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADM_NUM_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_mutex_lock
Lloh3:
	adrp	x8, _ADM6996_MIB_TXB_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM6996_MIB_TXB_ID@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
Lloh6:
	adrp	x23, _adm6996_mibs@GOTPAGE
Lloh7:
	ldr	x23, [x23, _adm6996_mibs@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x24, x8, #3
	ldr	x22, [x9, x24]
	mov	x0, x21
	bl	_ADM_OFFSET_PORT
	add	x1, x0, x22
	mov	x0, x20
	bl	_r16
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x24, [x8, x24]
	mov	x0, x21
	bl	_ADM_OFFSET_PORT
	add	x8, x24, x0
	add	x1, x8, #1
	mov	x0, x20
	bl	_r16
	add	w8, w22, w0, lsl #16
Lloh8:
	adrp	x9, _ADM6996_MIB_RXB_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADM6996_MIB_RXB_ID@GOTPAGEOFF]
	str	w8, [x19]
Lloh10:
	ldrsw	x8, [x9]
	ldr	x9, [x23]
	lsl	x24, x8, #3
	ldr	x22, [x9, x24]
	mov	x0, x21
	bl	_ADM_OFFSET_PORT
	add	x1, x0, x22
	mov	x0, x20
	bl	_r16
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x23, [x8, x24]
	mov	x0, x21
	bl	_ADM_OFFSET_PORT
	add	x8, x23, x0
	add	x1, x8, #1
	mov	x0, x20
	bl	_r16
	add	w8, w22, w0, lsl #16
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADM6996_MIB_TXB_ID,4,2         ; @ADM6996_MIB_TXB_ID
	.comm	_adm6996_mibs,8,3               ; @adm6996_mibs
	.comm	_ADM6996_MIB_RXB_ID,4,2         ; @ADM6996_MIB_RXB_ID
	.no_dead_strip	_adm6996_get_port_stats
.subsections_via_symbols
