	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_create_mdev_resources    ## -- Begin function mlx5e_create_mdev_resources
	.p2align	4, 0x90
_mlx5e_create_mdev_resources:           ## @mlx5e_create_mdev_resources
	.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
	movq	%rdi, %rsi
	callq	_mlx5_core_alloc_pd
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	jmp	LBB0_10
LBB0_2:
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_alloc_transport_domain
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	jmp	LBB0_9
LBB0_4:
	movl	(%rbx), %esi
	leaq	16(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_mlx5e_create_mkey
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	jmp	LBB0_8
LBB0_6:
	leaq	20(%rbx), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mlx5_alloc_bfreg
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlx5_core_destroy_mkey
	movl	%r12d, %r14d
LBB0_8:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mlx5_core_dealloc_transport_domain
LBB0_9:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mlx5_core_dealloc_pd
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc pd failed, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"alloc td failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"create mkey failed, %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"alloc bfreg failed, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_create_mdev_resources    ; -- Begin function mlx5e_create_mdev_resources
	.p2align	2
_mlx5e_create_mdev_resources:           ; @mlx5e_create_mdev_resources
	.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
	mov	x1, x0
	bl	_mlx5_core_alloc_pd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_core_err
	b	LBB0_10
LBB0_2:
	add	x1, x19, #4
	mov	x0, x19
	bl	_mlx5_core_alloc_transport_domain
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_core_err
	b	LBB0_9
LBB0_4:
	mov	x21, x19
	ldr	w1, [x21], #16
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5e_create_mkey
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_core_err
	b	LBB0_8
LBB0_6:
	add	x1, x19, #20
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_mlx5_alloc_bfreg
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_core_err
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5_core_destroy_mkey
LBB0_8:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_mlx5_core_dealloc_transport_domain
LBB0_9:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_mlx5_core_dealloc_pd
LBB0_10:
	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
LBB0_11:
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
	bl	_mutex_init
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc pd failed, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"alloc td failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"create mkey failed, %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"alloc bfreg failed, %d\n"

.subsections_via_symbols
