	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_get_stat_mask
_efx_ef10_get_stat_mask:                ## @efx_ef10_get_stat_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_efx_ef10_raw_stat_mask
	movq	%rax, %r15
	movl	(%r12), %eax
	movq	_MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_1
## %bb.2:
	movq	_EF10_STAT_rx_unicast@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	$-1, %rdx
	shlq	%cl, %rdx
	movq	$-1, %rax
	orq	%rdx, %r15
	movq	_EF10_STAT_V1_COUNT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	notq	%rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	(%rbx), %rcx
	movq	_MC_CMD_MAC_NSTATS_V2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_4
## %bb.5:
	movq	_EF10_FEC_STAT_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	orq	%rax, %rbx
	movq	_MC_CMD_MAC_NSTATS_V3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_9
## %bb.7:
	movl	4(%r12), %eax
	movq	_MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_9
## %bb.8:
	movq	_EF10_CTPIO_STAT_MASK@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
LBB0_9:
	movq	_EF10_STAT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BITS_TO_LONGS
	xorl	%edi, %edi
	cmpl	$3, %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	%r15d, %eax
	movq	%rax, (%r14)
	shrq	$32, %r15
	movq	%r15, 8(%r14)
	movl	%ebx, %eax
	movq	%rax, 16(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN,4,2 ## @MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN
	.comm	_EF10_STAT_rx_unicast,8,3       ## @EF10_STAT_rx_unicast
	.comm	_EF10_STAT_V1_COUNT,4,2         ## @EF10_STAT_V1_COUNT
	.comm	_MC_CMD_MAC_NSTATS_V2,8,3       ## @MC_CMD_MAC_NSTATS_V2
	.comm	_EF10_FEC_STAT_MASK,8,3         ## @EF10_FEC_STAT_MASK
	.comm	_MC_CMD_MAC_NSTATS_V3,8,3       ## @MC_CMD_MAC_NSTATS_V3
	.comm	_MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN,4,2 ## @MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN
	.comm	_EF10_CTPIO_STAT_MASK,8,3       ## @EF10_CTPIO_STAT_MASK
	.comm	_EF10_STAT_COUNT,4,2            ## @EF10_STAT_COUNT
	.no_dead_strip	_efx_ef10_get_stat_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_get_stat_mask
_efx_ef10_get_stat_mask:                ; @efx_ef10_get_stat_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	bl	_efx_ef10_raw_stat_mask
	mov	x20, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EF10_STAT_rx_unicast@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EF10_STAT_rx_unicast@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x9, #-1
	lsl	x8, x9, x8
	orr	x20, x8, x20
Lloh6:
	adrp	x8, _EF10_STAT_V1_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EF10_STAT_V1_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x9, x8
	mvn	x8, x8
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh9:
	adrp	x9, _MC_CMD_MAC_NSTATS_V2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MC_CMD_MAC_NSTATS_V2@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x11, _EF10_FEC_STAT_MASK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _EF10_FEC_STAT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x9
	csel	x9, xzr, x11, lt
	orr	x21, x9, x8
Lloh15:
	adrp	x8, _MC_CMD_MAC_NSTATS_V3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MC_CMD_MAC_NSTATS_V3@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x10, x8
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x22, #4]
Lloh18:
	adrp	x9, _MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _EF10_CTPIO_STAT_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EF10_CTPIO_STAT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	orr	x21, x8, x21
LBB0_6:
Lloh24:
	adrp	x8, _EF10_STAT_COUNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EF10_STAT_COUNT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BITS_TO_LONGS
	cmp	w0, #3
	cset	w0, ne
	bl	_BUILD_BUG_ON
	and	x8, x20, #0xffffffff
	lsr	x9, x20, #32
	stp	x8, x9, [x19]
	and	x8, x21, #0xffffffff
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN,4,2 ; @MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN
	.comm	_EF10_STAT_rx_unicast,8,3       ; @EF10_STAT_rx_unicast
	.comm	_EF10_STAT_V1_COUNT,4,2         ; @EF10_STAT_V1_COUNT
	.comm	_MC_CMD_MAC_NSTATS_V2,8,3       ; @MC_CMD_MAC_NSTATS_V2
	.comm	_EF10_FEC_STAT_MASK,8,3         ; @EF10_FEC_STAT_MASK
	.comm	_MC_CMD_MAC_NSTATS_V3,8,3       ; @MC_CMD_MAC_NSTATS_V3
	.comm	_MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN,4,2 ; @MC_CMD_GET_CAPABILITIES_V4_OUT_CTPIO_LBN
	.comm	_EF10_CTPIO_STAT_MASK,8,3       ; @EF10_CTPIO_STAT_MASK
	.comm	_EF10_STAT_COUNT,4,2            ; @EF10_STAT_COUNT
	.no_dead_strip	_efx_ef10_get_stat_mask
.subsections_via_symbols
