	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_sgmac_get_drop_cnt
_xgene_sgmac_get_drop_cnt:              ## @xgene_sgmac_get_drop_cnt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_XGENE_ENET1@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movq	_ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPCREL(%rip), %rax
	movslq	8(%r12), %rcx
	movq	_OFFSET_4@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	imulq	%rcx, %rsi
	addq	(%rax), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_3:
	movq	%r12, %rdi
	callq	_xgene_enet_rd_mcx_csr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ICM_DROP_COUNT
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_ECM_DROP_COUNT
	movq	%rax, (%r14)
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.5:
	movq	_ECM_CONFIG0_REG_0_ADDR@GOTPCREL(%rip), %rax
	movslq	8(%r12), %rcx
	movq	_OFFSET_4@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	imulq	%rcx, %rsi
	addq	(%rax), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_XG_MCX_ECM_CONFIG0_REG_0_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_6:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgene_enet_rd_mcx_csr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_ENET1,8,3                ## @XGENE_ENET1
	.comm	_XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR,8,3 ## @XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR
	.comm	_ICM_ECM_DROP_COUNT_REG0_ADDR,8,3 ## @ICM_ECM_DROP_COUNT_REG0_ADDR
	.comm	_OFFSET_4,4,2                   ## @OFFSET_4
	.comm	_XG_MCX_ECM_CONFIG0_REG_0_ADDR,8,3 ## @XG_MCX_ECM_CONFIG0_REG_0_ADDR
	.comm	_ECM_CONFIG0_REG_0_ADDR,8,3     ## @ECM_CONFIG0_REG_0_ADDR
	.no_dead_strip	_xgene_sgmac_get_drop_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_sgmac_get_drop_cnt
_xgene_sgmac_get_drop_cnt:              ; @xgene_sgmac_get_drop_cnt
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _XGENE_ENET1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XGENE_ENET1@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh2:
	adrp	x23, _OFFSET_4@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OFFSET_4@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #8]
	ldrsw	x10, [x23]
	madd	x1, x10, x9, x8
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
LBB0_3:
	mov	x0, x19
	bl	_xgene_enet_rd_mcx_csr
	mov	x22, x0
	bl	_ICM_DROP_COUNT
	str	x0, [x21]
	mov	x0, x22
	bl	_ECM_DROP_COUNT
	str	x0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _ECM_CONFIG0_REG_0_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ECM_CONFIG0_REG_0_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #8]
	ldrsw	x10, [x23]
	madd	x1, x10, x9, x8
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _XG_MCX_ECM_CONFIG0_REG_0_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XG_MCX_ECM_CONFIG0_REG_0_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
LBB0_6:
	mov	x0, x19
	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
	b	_xgene_enet_rd_mcx_csr
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_ENET1,8,3                ; @XGENE_ENET1
	.comm	_XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR,8,3 ; @XG_MCX_ICM_ECM_DROP_COUNT_REG0_ADDR
	.comm	_ICM_ECM_DROP_COUNT_REG0_ADDR,8,3 ; @ICM_ECM_DROP_COUNT_REG0_ADDR
	.comm	_OFFSET_4,4,2                   ; @OFFSET_4
	.comm	_XG_MCX_ECM_CONFIG0_REG_0_ADDR,8,3 ; @XG_MCX_ECM_CONFIG0_REG_0_ADDR
	.comm	_ECM_CONFIG0_REG_0_ADDR,8,3     ; @ECM_CONFIG0_REG_0_ADDR
	.no_dead_strip	_xgene_sgmac_get_drop_cnt
.subsections_via_symbols
