	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_tx_reporter_diagnose
_mlx5e_tx_reporter_diagnose:            ## @mlx5e_tx_reporter_diagnose
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_devlink_health_reporter_priv
	movq	%rax, %r12
	movq	32(%rax), %rax
	movq	(%rax), %r15
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$24, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%r15), %rdi
	callq	_mlx5_wq_cyc_get_size
	movl	%eax, %r13d
	movq	_MLX5_SEND_WQE_BB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5e_reporter_named_obj_nest_start
	movq	%rbx, %rdi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mlx5e_reporter_named_obj_nest_start
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_devlink_fmsg_u64_pair_put
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	callq	_devlink_fmsg_u32_pair_put
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.6:
	movq	%r15, %rdi
	callq	_mlx5e_reporter_cq_common_diagnose
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:
	callq	_mlx5e_reporter_named_obj_nest_end
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	callq	_mlx5e_reporter_named_obj_nest_end
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	callq	_devlink_fmsg_arr_pair_nest_start
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.10:
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.11:
	movl	12(%r12), %eax
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_18
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r12), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%rdi, %r13
	movl	%r14d, %edx
	callq	_mlx5e_tx_reporter_build_diagnose_output
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%r14
	movslq	12(%r12), %rax
	addq	$8, %r15
	cmpq	%rax, %r14
	movq	%r13, %rdi
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	8(%r12), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	callq	_devlink_fmsg_arr_pair_nest_end
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_STATE_OPENED,4,2         ## @MLX5E_STATE_OPENED
	.comm	_MLX5_SEND_WQE_BB,4,2           ## @MLX5_SEND_WQE_BB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Common Config"

L_.str.1:                               ## @.str.1
	.asciz	"SQ"

L_.str.2:                               ## @.str.2
	.asciz	"stride size"

L_.str.3:                               ## @.str.3
	.asciz	"size"

L_.str.4:                               ## @.str.4
	.asciz	"SQs"

	.no_dead_strip	_mlx5e_tx_reporter_diagnose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_tx_reporter_diagnose
_mlx5e_tx_reporter_diagnose:            ; @mlx5e_tx_reporter_diagnose
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	bl	_devlink_health_reporter_priv
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _MLX5E_STATE_OPENED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_STATE_OPENED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.1:
	add	x0, x21, #4
	bl	_mlx5_wq_cyc_get_size
	mov	x23, x0
Lloh3:
	adrp	x8, _MLX5_SEND_WQE_BB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_SEND_WQE_BB@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5e_reporter_named_obj_nest_start
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx5e_reporter_named_obj_nest_start
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_devlink_fmsg_u64_pair_put
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_devlink_fmsg_u32_pair_put
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5e_reporter_cq_common_diagnose
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_mlx5e_reporter_named_obj_nest_end
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_mlx5e_reporter_named_obj_nest_end
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.8:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devlink_fmsg_arr_pair_nest_start
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.10:
	mov	x23, #0
	ldr	w8, [x19, #12]
	b	LBB0_14
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_19
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x24, #0
	mov	x21, #0
	ldr	x8, [x19, #16]
	ldr	x25, [x8, x23, lsl #3]
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5e_tx_reporter_build_diagnose_output
	cbnz	w0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x21, x21, #1
	ldrsw	x8, [x19, #12]
	add	x24, x24, #8
	cmp	x21, x8
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x19, #8]
	b	LBB0_13
LBB0_19:
	mov	x0, x20
	bl	_devlink_fmsg_arr_pair_nest_end
LBB0_20:
	mov	x22, x0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_STATE_OPENED,4,2         ; @MLX5E_STATE_OPENED
	.comm	_MLX5_SEND_WQE_BB,4,2           ; @MLX5_SEND_WQE_BB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Common Config"

l_.str.1:                               ; @.str.1
	.asciz	"SQ"

l_.str.2:                               ; @.str.2
	.asciz	"stride size"

l_.str.3:                               ; @.str.3
	.asciz	"size"

l_.str.4:                               ; @.str.4
	.asciz	"SQs"

	.no_dead_strip	_mlx5e_tx_reporter_diagnose
.subsections_via_symbols
