	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_fill_diag_counters
_mlx4_ib_fill_diag_counters:            ## @mlx4_ib_fill_diag_counters
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_diag_basic@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,4), %rax
	movq	%rax, (%r14,%rbx,2)
	movq	(%r15), %rdi
	movl	8(%rdi,%rbx,4), %eax
	movl	%eax, (%r13,%rbx)
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
LBB0_5:
	movq	(%rbx), %rax
	movq	_MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.6:
	movq	_diag_ext@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,4), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,8), %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rax
	movq	%rax, (%r13,%r14,8)
	movq	(%r15), %rdi
	movl	8(%rdi,%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_8
## %bb.9:
	addl	%r14d, %r12d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	_diag_device_only@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	movslq	%r12d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r14
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13), %rax
	movq	%rax, (%r14,%rbx,8)
	movq	(%r15), %rdi
	movl	8(%rdi,%r13), %eax
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_diag_basic,8,3                 ## @diag_basic
	.comm	_MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT,4,2 ## @MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT
	.comm	_diag_ext,8,3                   ## @diag_ext
	.comm	_diag_device_only,8,3           ## @diag_device_only
	.no_dead_strip	_mlx4_ib_fill_diag_counters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_fill_diag_counters
_mlx4_ib_fill_diag_counters:            ; @mlx4_ib_fill_diag_counters
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _diag_basic@GOTPAGE
Lloh1:
	ldr	x24, [x24, _diag_basic@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x25]
	str	x8, [x20, x23, lsl #3]
	ldr	x0, [x24]
	add	x8, x0, x25
	ldr	w8, [x8, #8]
	str	w8, [x19, x23, lsl #2]
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x25, x25, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
Lloh5:
	adrp	x22, _diag_ext@GOTPAGE
Lloh6:
	ldr	x22, [x22, _diag_ext@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x26, #0
	mov	x24, #0
	mov	w25, w23
	add	x27, x19, w23, uxtw #2
	add	x23, x20, w23, uxtw #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x26]
	str	x8, [x23, x24, lsl #3]
	ldr	x0, [x22]
	add	x8, x0, x26
	ldr	w8, [x8, #8]
	str	w8, [x27, x24, lsl #2]
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x26, x26, #16
	cmp	x24, w0, sxtw
	b.lt	LBB0_7
; %bb.8:
	add	w23, w25, w24
LBB0_9:
	cbnz	w21, LBB0_13
; %bb.10:
Lloh7:
	adrp	x21, _diag_device_only@GOTPAGE
Lloh8:
	ldr	x21, [x21, _diag_device_only@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x22, #0
	mov	x24, #0
	add	x20, x20, w23, sxtw #3
	add	x19, x19, w23, sxtw #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	str	x8, [x20, x24, lsl #3]
	ldr	x0, [x21]
	add	x8, x0, x22
	ldr	w8, [x8, #8]
	str	w8, [x19, x24, lsl #2]
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x24, w0, sxtw
	b.lt	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_diag_basic,8,3                 ; @diag_basic
	.comm	_MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT,4,2 ; @MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT
	.comm	_diag_ext,8,3                   ; @diag_ext
	.comm	_diag_device_only,8,3           ; @diag_device_only
	.no_dead_strip	_mlx4_ib_fill_diag_counters
.subsections_via_symbols
