	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_sset_count
_mlx4_en_get_sset_count:                ## @mlx4_en_get_sset_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	16(%rax), %edi
	callq	_hweight64
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.2:
	cmpl	$0, 16(%r14)
	jne	LBB0_4
## %bb.3:
	movq	_NUM_ALL_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	4(%r14), %ecx
	addl	(%r14), %ecx
	leal	(%rax,%rcx,2), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_MLX4_EN_NUM_SELF_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	testl	%edx, (%rcx)
	setne	%sil
	leal	(%rax,%rsi,2), %eax
	addl	$-2, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_ALL_STATS,4,2              ## @NUM_ALL_STATS
	.comm	_MLX4_EN_NUM_SELF_TEST,4,2      ## @MLX4_EN_NUM_SELF_TEST
	.comm	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK,4,2 ## @MLX4_DEV_CAP_FLAG_UC_LOOPBACK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mlx4_en_get_sset_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_get_sset_count
_mlx4_en_get_sset_count:                ; @mlx4_en_get_sset_count
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_hweight64
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _NUM_ALL_STATS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_ALL_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, w0, eq
	ldp	w9, w10, [x19]
	add	w9, w10, w9
	add	w0, w8, w9, lsl #1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _MLX4_EN_NUM_SELF_TEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_EN_NUM_SELF_TEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #-2
	csel	w9, w9, wzr, eq
	add	w0, w9, w8
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_ALL_STATS,4,2              ; @NUM_ALL_STATS
	.comm	_MLX4_EN_NUM_SELF_TEST,4,2      ; @MLX4_EN_NUM_SELF_TEST
	.comm	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK,4,2 ; @MLX4_DEV_CAP_FLAG_UC_LOOPBACK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mlx4_en_get_sset_count
.subsections_via_symbols
