	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_init            ## -- Begin function mlx5_fw_tracer_init
	.p2align	4, 0x90
_mlx5_fw_tracer_init:                   ## @mlx5_fw_tracer_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	24(%rbx), %r15
	cmpl	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_queue_work
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_core_alloc_pd
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movl	%r12d, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_create_mkey
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_mlx5_core_dealloc_pd
	movl	%r12d, %r14d
	jmp	LBB0_8
LBB0_7:
	leaq	4(%rbx), %r12
	movq	_fw_tracer_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEVICE_TRACER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_MLX5_NB_INIT
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlx5_eq_notifier_register
	movq	%rbx, %rdi
	callq	_mlx5_fw_tracer_start
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FWTracer: Failed to allocate PD %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"FWTracer: Failed to create mkey %d\n"

	.comm	_fw_tracer_event,4,2            ## @fw_tracer_event
	.comm	_DEVICE_TRACER,4,2              ## @DEVICE_TRACER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fw_tracer_init            ; -- Begin function mlx5_fw_tracer_init
	.p2align	2
_mlx5_fw_tracer_init:                   ; @mlx5_fw_tracer_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_8
LBB0_2:
	ldr	x20, [x19, #24]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	bl	_queue_work
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_core_alloc_pd
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_core_warn
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_mlx5_fw_tracer_create_mkey
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_core_warn
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mlx5_core_dealloc_pd
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x21, x19, #4
Lloh4:
	adrp	x8, _fw_tracer_event@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fw_tracer_event@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _DEVICE_TRACER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEVICE_TRACER@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_MLX5_NB_INIT
	mov	x0, x20
	mov	x1, x21
	bl	_mlx5_eq_notifier_register
	mov	x0, x19
	bl	_mlx5_fw_tracer_start
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FWTracer: Failed to allocate PD %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"FWTracer: Failed to create mkey %d\n"

	.comm	_fw_tracer_event,4,2            ; @fw_tracer_event
	.comm	_DEVICE_TRACER,4,2              ; @DEVICE_TRACER
.subsections_via_symbols
