	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_query_cong_counters   ## -- Begin function mlx5_lag_query_cong_counters
	.p2align	4, 0x90
_mlx5_lag_query_cong_counters:          ## @mlx5_lag_query_cong_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_query_cong_statistics_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leal	(,%r14,4), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_lag_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_mlx5_lag_dev_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	___mlx5_lag_is_roce
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movups	(%rax), %xmm0
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movaps	%xmm0, (%rax)
	testl	%r12d, %r12d
	jg	LBB0_6
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r12, %rdi
	movl	$1, %r12d
LBB0_6:
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx5_cmd_query_cong_counter
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r14,8), %rdi
	addq	%r15, %rdi
	callq	_be64_to_cpup
	addl	%eax, (%r13,%r14,4)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx5_cmd_query_cong_counter
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_8
LBB0_15:
	movq	_lag_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_kvfree
	jmp	LBB0_16
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_query_cong_statistics_out,4,2  ## @query_cong_statistics_out
	.comm	_MLX5_MAX_PORTS,4,2             ## @MLX5_MAX_PORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lag_mutex,4,2                  ## @lag_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_query_cong_counters   ; -- Begin function mlx5_lag_query_cong_counters
	.p2align	2
_mlx5_lag_query_cong_counters:          ; @mlx5_lag_query_cong_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
	sub	sp, sp, #32
	stur	x3, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _query_cong_statistics_out@GOTPAGE
Lloh4:
	ldr	x8, [x8, _query_cong_statistics_out@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x23, x0
Lloh6:
	adrp	x27, _MLX5_MAX_PORTS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MLX5_MAX_PORTS@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x26, x9, x8
	mov	sp, x26
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	lsl	w2, w20, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
Lloh13:
	adrp	x0, _lag_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _lag_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x24
	bl	_mlx5_lag_dev_get
	cbz	x0, LBB0_5
; %bb.2:
	mov	x25, x0
	bl	___mlx5_lag_is_roce
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w27, [x27]
	ldr	x8, [x25]
	ldp	x24, x8, [x8]
	stp	x24, x8, [x26]
	cmp	w27, #1
	b.ge	LBB0_6
LBB0_4:
	mov	w24, #0
	b	LBB0_14
LBB0_5:
	str	x24, [x26]
	mov	w27, #1
LBB0_6:
	mov	x0, x24
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	_mlx5_cmd_query_cong_counter
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.7:
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	mov	x25, #0
	mov	w27, w27
	mov	w28, w20
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x28
	ldp	x21, x19, [x29, #-104]          ; 16-byte Folded Reload
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19], #8
	add	x0, x22, x8
	bl	_be64_to_cpup
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21], #4
	subs	x24, x24, #1
	b.ne	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	cmp	x25, x27
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26, x25, lsl #3]
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	_mlx5_cmd_query_cong_counter
	cbz	w0, LBB0_8
; %bb.13:
	mov	x24, x0
LBB0_14:
Lloh15:
	adrp	x0, _lag_mutex@GOTPAGE
Lloh16:
	ldr	x0, [x0, _lag_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x22
	bl	_kvfree
	b	LBB0_16
LBB0_15:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x24
	sub	sp, x29, #80
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_query_cong_statistics_out,4,2  ; @query_cong_statistics_out
	.comm	_MLX5_MAX_PORTS,4,2             ; @MLX5_MAX_PORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lag_mutex,4,2                  ; @lag_mutex
.subsections_via_symbols
