	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_get_saved_traces_objects ## -- Begin function mlx5_fw_tracer_get_saved_traces_objects
	.p2align	4, 0x90
_mlx5_fw_tracer_get_saved_traces_objects: ## @mlx5_fw_tracer_get_saved_traces_objects
	.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	16(%rdi), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rbx
	movq	(%r12,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SAVED_TRACES_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_devlink_fmsg_arr_pair_nest_start
	movq	%r13, %rcx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%rbx), %rax
	decq	%r14
	andq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	cmpq	%r14, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5_devlink_fmsg_fill_trace
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	_SAVED_TRACES_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	andq	%rax, %rbx
	cmpq	%r14, %rbx
	jne	LBB0_5
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devlink_fmsg_arr_pair_nest_end
LBB0_8:
	movl	%eax, %r13d
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMSG@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMSG,4,2                     ## @ENOMSG
	.comm	_SAVED_TRACES_NUM,4,2           ## @SAVED_TRACES_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dump fw traces"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_get_saved_traces_objects ; -- Begin function mlx5_fw_tracer_get_saved_traces_objects
	.p2align	2
_mlx5_fw_tracer_get_saved_traces_objects: ; @mlx5_fw_tracer_get_saved_traces_objects
	.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
	ldr	x22, [x0, #16]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x25, [x21]
	ldr	x26, [x22, x25, lsl #3]
Lloh0:
	adrp	x23, _SAVED_TRACES_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SAVED_TRACES_NUM@GOTPAGEOFF]
	ldrsw	x24, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devlink_fmsg_arr_pair_nest_start
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
	sub	x8, x25, #1
	sub	x9, x24, #1
	and	x24, x8, x9
	cmp	x26, #0
	csel	x25, xzr, x25, eq
	cmp	x25, x24
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x22, x25, lsl #3
	mov	x0, x20
	bl	_mlx5_devlink_fmsg_fill_trace
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, #1
	ldrsw	x9, [x23]
	sub	x9, x9, #1
	and	x25, x8, x9
	cmp	x25, x24
	b.ne	LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_devlink_fmsg_arr_pair_nest_end
LBB0_6:
	mov	x21, x0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _ENOMSG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMSG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMSG,4,2                     ; @ENOMSG
	.comm	_SAVED_TRACES_NUM,4,2           ; @SAVED_TRACES_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dump fw traces"

.subsections_via_symbols
