	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_mdev_init
_mlx5_mdev_init:                        ## @mlx5_mdev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_profile@GOTPCREL(%rip), %rax
	movslq	%esi, %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 56(%rdi)
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_spin_lock_init
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	leaq	20(%rbx), %r14
	leaq	28(%rbx), %r15
	leaq	32(%rbx), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	leaq	12(%rbx), %rdi
	callq	_mutex_init
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%rbx), %rdi
	callq	_spin_lock_init
	movl	44(%rbx), %edi
	callq	_dev_name
	movq	_mlx5_debugfs_root@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_debugfs_create_dir
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mlx5_health_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_mlx5_pagealloc_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mlx5_health_cleanup
LBB0_6:
	movl	(%rbx), %edi
	callq	_debugfs_remove
	jmp	LBB0_7
LBB0_1:
	movl	44(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_profile,8,3                    ## @profile
	.comm	_mlx5_debugfs_root,4,2          ## @mlx5_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx5_core: error, Cannot create debugfs dir, aborting\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5_mdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_mdev_init
_mlx5_mdev_init:                        ; @mlx5_mdev_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
Lloh0:
	adrp	x8, _profile@GOTPAGE
Lloh1:
	ldr	x8, [x8, _profile@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw #2
	str	x8, [x0, #56]
	add	x0, x0, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #48
	bl	_mutex_init
	add	x20, x19, #20
	add	x21, x19, #28
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #24
	bl	_mutex_init
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_mutex_init
	add	x0, x19, #12
	bl	_mutex_init
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
	add	x0, x19, #4
	bl	_spin_lock_init
	ldr	w0, [x19, #44]
	bl	_dev_name
Lloh3:
	adrp	x8, _mlx5_debugfs_root@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlx5_debugfs_root@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_debugfs_create_dir
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mlx5_health_init
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mlx5_pagealloc_init
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mlx5_health_cleanup
LBB0_4:
	ldr	w0, [x19]
	bl	_debugfs_remove
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #44]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_profile,8,3                    ; @profile
	.comm	_mlx5_debugfs_root,4,2          ; @mlx5_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx5_core: error, Cannot create debugfs dir, aborting\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5_mdev_init
.subsections_via_symbols
