	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fw_tracer_save_trace
_mlx5_fw_tracer_save_trace:             ## @mlx5_fw_tracer_save_trace
	.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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	movl	%r15d, 12(%rcx,%rax)
	movl	%r13d, (%rcx,%rax)
	movl	%r12d, 8(%rcx,%rax)
	movl	4(%rcx,%rax), %edi
	movq	_TRACE_STR_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strscpy_pad
	movq	(%rbx), %rax
	incq	%rax
	movq	_SAVED_TRACES_NUM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, (%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE_STR_MSG,4,2              ## @TRACE_STR_MSG
	.comm	_SAVED_TRACES_NUM,4,2           ## @SAVED_TRACES_NUM
	.no_dead_strip	_mlx5_fw_tracer_save_trace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fw_tracer_save_trace
_mlx5_fw_tracer_save_trace:             ; @mlx5_fw_tracer_save_trace
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x24, x0, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [x23, #16]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	str	w21, [x8]
	stp	w20, w22, [x8, #8]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x8, _TRACE_STR_MSG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE_STR_MSG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_strscpy_pad
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _SAVED_TRACES_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SAVED_TRACES_NUM@GOTPAGEOFF]
	add	x8, x8, #1
Lloh5:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x23]
	mov	x0, x24
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE_STR_MSG,4,2              ; @TRACE_STR_MSG
	.comm	_SAVED_TRACES_NUM,4,2           ; @SAVED_TRACES_NUM
	.no_dead_strip	_mlx5_fw_tracer_save_trace
.subsections_via_symbols
