	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_create          ## -- Begin function mlx5_fw_tracer_create
	.p2align	4, 0x90
_mlx5_fw_tracer_create:                 ## @mlx5_fw_tracer_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_tracer_registers@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_MCAM_REG
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, 8(%rbx)
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	movq	_mlx5_fw_tracer_ownership_change@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	20(%rbx), %rdi
	movq	_mlx5_tracer_read_strings_db@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_mlx5_fw_tracer_handle_traces@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	callq	_mlx5_query_mtrc_caps
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_10:
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_create_log_buf
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_allocate_strings_db
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_destroy_log_buf
LBB0_14:
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	callq	_destroy_workqueue
LBB0_15:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %edi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_init_saved_traces_array
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_tracer_registers,4,2           ## @tracer_registers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FWTracer: Tracer capability not present\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"mlx5_fw_tracer"

	.comm	_mlx5_fw_tracer_ownership_change,4,2 ## @mlx5_fw_tracer_ownership_change
	.comm	_mlx5_tracer_read_strings_db,4,2 ## @mlx5_tracer_read_strings_db
	.comm	_mlx5_fw_tracer_handle_traces,4,2 ## @mlx5_fw_tracer_handle_traces
L_.str.2:                               ## @.str.2
	.asciz	"FWTracer: Failed to query capabilities %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"FWTracer: Create log buffer failed %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"FWTracer: Allocate strings database failed %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"FWTracer: Tracer created\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_create          ; -- Begin function mlx5_fw_tracer_create
	.p2align	2
_mlx5_fw_tracer_create:                 ; @mlx5_fw_tracer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _tracer_registers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tracer_registers@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_MCAM_REG
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.3:
	str	x20, [x19, #8]
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
Lloh8:
	adrp	x8, _mlx5_fw_tracer_ownership_change@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mlx5_fw_tracer_ownership_change@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #20
Lloh11:
	adrp	x8, _mlx5_tracer_read_strings_db@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mlx5_tracer_read_strings_db@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #16
Lloh14:
	adrp	x8, _mlx5_fw_tracer_handle_traces@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mlx5_fw_tracer_handle_traces@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_mlx5_query_mtrc_caps
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mlx5_core_dbg
	b	LBB0_13
LBB0_5:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_core_dbg
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_mlx5_fw_tracer_create_log_buf
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_core_warn
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_mlx5_fw_tracer_allocate_strings_db
	cbz	w0, LBB0_16
; %bb.12:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_core_warn
	mov	x0, x19
	bl	_mlx5_fw_tracer_destroy_log_buf
LBB0_13:
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_destroy_workqueue
LBB0_14:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
LBB0_15:
	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
	add	sp, sp, #64
	b	_ERR_PTR
LBB0_16:
	mov	x0, x19
	bl	_mlx5_fw_tracer_init_saved_traces_array
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_mlx5_core_dbg
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_tracer_registers,4,2           ; @tracer_registers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FWTracer: Tracer capability not present\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"mlx5_fw_tracer"

	.comm	_mlx5_fw_tracer_ownership_change,4,2 ; @mlx5_fw_tracer_ownership_change
	.comm	_mlx5_tracer_read_strings_db,4,2 ; @mlx5_tracer_read_strings_db
	.comm	_mlx5_fw_tracer_handle_traces,4,2 ; @mlx5_fw_tracer_handle_traces
l_.str.2:                               ; @.str.2
	.asciz	"FWTracer: Failed to query capabilities %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"FWTracer: Create log buffer failed %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"FWTracer: Allocate strings database failed %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"FWTracer: Tracer created\n"

.subsections_via_symbols
