	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_alloc_hw_stats
_mlx5_ib_alloc_hw_stats:                ## @mlx5_ib_alloc_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_to_mdev
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_is_mdev_switchdev_mode
	testl	%eax, %eax
	setne	%al
	testq	%rbx, %rbx
	setne	%cl
	cmpb	%al, %cl
	je	LBB0_1
## %bb.2:
	decq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_counters
	movl	24(%rax), %edi
	movq	8(%rax), %rsi
	addq	16(%rax), %rsi
	addq	(%rax), %rsi
	movq	_RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rdma_alloc_hw_stats_struct     ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_HW_STATS_DEFAULT_LIFESPAN,4,2 ## @RDMA_HW_STATS_DEFAULT_LIFESPAN
	.no_dead_strip	_mlx5_ib_alloc_hw_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_alloc_hw_stats
_mlx5_ib_alloc_hw_stats:                ; @mlx5_ib_alloc_hw_stats
	.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	x19, x1
	bl	_to_mdev
	mov	x20, x0
	ldr	w0, [x0]
	bl	_is_mdev_switchdev_mode
	cmp	w0, #0
	cset	w8, ne
	cmp	x19, #0
	cset	w9, ne
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.1:
	sub	x1, x19, #1
	mov	x0, x20
	bl	_get_counters
	ldr	w8, [x0, #24]
	ldp	x10, x9, [x0, #8]
	ldr	x11, [x0]
	add	x9, x10, x9
	add	x1, x9, x11
Lloh0:
	adrp	x9, _RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rdma_alloc_hw_stats_struct
LBB0_2:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_HW_STATS_DEFAULT_LIFESPAN,4,2 ; @RDMA_HW_STATS_DEFAULT_LIFESPAN
	.no_dead_strip	_mlx5_ib_alloc_hw_stats
.subsections_via_symbols
