	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_hw_stats
_alloc_hw_stats:                        ## @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	%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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_cntr_names_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_cntr_names_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_9:
	movq	_cntr_names_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:
	movq	_port_cntr_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_num_port_cntrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	callq	_dd_from_ibdev
	movq	%rax, %r12
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	movq	_num_driver_cntrs@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_num_dev_cntrs@GOTPCREL(%rip), %rbx
	movq	_dev_cntr_names@GOTPCREL(%rip), %r13
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_init_cntr_names
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	movq	_driver_cntr_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movslq	(%rbx), %rdi
	addq	%rdx, %rdi
	movl	%esi, (%rcx,%rdi,4)
	incq	%rdx
	movslq	(%r14), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_4
LBB0_5:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	_num_port_cntrs@GOTPCREL(%rip), %rcx
	movq	_port_cntr_names@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	callq	_init_cntr_names
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	(%r13), %rdi
	callq	_kfree
	movq	$0, (%r13)
LBB0_7:
	movq	_cntr_names_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_dev_cntr_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_num_dev_cntrs@GOTPCREL(%rip), %rax
	movq	_num_driver_cntrs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
LBB0_12:
	movq	_RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdma_alloc_hw_stats_struct     ## TAILCALL
LBB0_8:
	movq	_cntr_names_initialized@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_cntr_names_lock,4,2            ## @cntr_names_lock
	.comm	_cntr_names_initialized,4,2     ## @cntr_names_initialized
	.comm	_num_driver_cntrs,4,2           ## @num_driver_cntrs
	.comm	_num_dev_cntrs,4,2              ## @num_dev_cntrs
	.comm	_dev_cntr_names,8,3             ## @dev_cntr_names
	.comm	_driver_cntr_names,8,3          ## @driver_cntr_names
	.comm	_num_port_cntrs,4,2             ## @num_port_cntrs
	.comm	_port_cntr_names,8,3            ## @port_cntr_names
	.comm	_RDMA_HW_STATS_DEFAULT_LIFESPAN,4,2 ## @RDMA_HW_STATS_DEFAULT_LIFESPAN
	.no_dead_strip	_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 alloc_hw_stats
_alloc_hw_stats:                        ; @alloc_hw_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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _cntr_names_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cntr_names_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x23, _cntr_names_initialized@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cntr_names_initialized@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
LBB0_1:
Lloh4:
	adrp	x0, _cntr_names_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _cntr_names_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	cbz	w19, LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _port_cntr_names@GOTPAGE
Lloh7:
	ldr	x8, [x8, _port_cntr_names@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x8, _num_port_cntrs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _num_port_cntrs@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	bl	_dd_from_ibdev
	mov	x21, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x21, #8]
Lloh12:
	adrp	x24, _num_driver_cntrs@GOTPAGE
Lloh13:
	ldr	x24, [x24, _num_driver_cntrs@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh14:
	adrp	x22, _num_dev_cntrs@GOTPAGE
Lloh15:
	ldr	x22, [x22, _num_dev_cntrs@GOTPAGEOFF]
Lloh16:
	adrp	x20, _dev_cntr_names@GOTPAGE
Lloh17:
	ldr	x20, [x20, _dev_cntr_names@GOTPAGEOFF]
	mov	x3, x22
	mov	x4, x20
	bl	_init_cntr_names
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
Lloh18:
	adrp	x9, _driver_cntr_names@GOTPAGE
Lloh19:
	ldr	x9, [x9, _driver_cntr_names@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x10, [x20]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8, lsl #2]
	ldrsw	x12, [x22]
	add	x12, x8, x12
	str	w11, [x10, x12, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x24]
	cmp	x8, x11
	b.lt	LBB0_6
LBB0_7:
	ldp	w1, w0, [x21]
Lloh21:
	adrp	x3, _num_port_cntrs@GOTPAGE
Lloh22:
	ldr	x3, [x3, _num_port_cntrs@GOTPAGEOFF]
Lloh23:
	adrp	x4, _port_cntr_names@GOTPAGE
Lloh24:
	ldr	x4, [x4, _port_cntr_names@GOTPAGEOFF]
	mov	w2, #0
	bl	_init_cntr_names
	cbz	w0, LBB0_12
; %bb.8:
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
LBB0_9:
Lloh25:
	adrp	x0, _cntr_names_lock@GOTPAGE
Lloh26:
	ldr	x0, [x0, _cntr_names_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, #0
	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
LBB0_10:
Lloh27:
	adrp	x8, _dev_cntr_names@GOTPAGE
Lloh28:
	ldr	x8, [x8, _dev_cntr_names@GOTPAGEOFF]
Lloh29:
	adrp	x9, _num_dev_cntrs@GOTPAGE
Lloh30:
	ldr	x9, [x9, _num_dev_cntrs@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _num_driver_cntrs@GOTPAGE
Lloh34:
	ldr	x9, [x9, _num_driver_cntrs@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	add	w1, w9, w8
LBB0_11:
Lloh36:
	adrp	x8, _RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RDMA_HW_STATS_DEFAULT_LIFESPAN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	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	_rdma_alloc_hw_stats_struct
LBB0_12:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_cntr_names_lock,4,2            ; @cntr_names_lock
	.comm	_cntr_names_initialized,4,2     ; @cntr_names_initialized
	.comm	_num_driver_cntrs,4,2           ; @num_driver_cntrs
	.comm	_num_dev_cntrs,4,2              ; @num_dev_cntrs
	.comm	_dev_cntr_names,8,3             ; @dev_cntr_names
	.comm	_driver_cntr_names,8,3          ; @driver_cntr_names
	.comm	_num_port_cntrs,4,2             ; @num_port_cntrs
	.comm	_port_cntr_names,8,3            ; @port_cntr_names
	.comm	_RDMA_HW_STATS_DEFAULT_LIFESPAN,4,2 ; @RDMA_HW_STATS_DEFAULT_LIFESPAN
	.no_dead_strip	_alloc_hw_stats
.subsections_via_symbols
