	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_domain_create           ## -- Begin function mlx5dr_domain_create
	.p2align	4, 0x90
_mlx5dr_domain_create:                  ## @mlx5dr_domain_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	_MLX5DR_DOMAIN_TYPE_FDB@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_13
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 32(%rax)
	movl	%ebx, (%rax)
	leaq	24(%rax), %rdi
	movl	$1, %esi
	callq	_refcount_set
	movq	%r15, %rdi
	addq	$20, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dr_domain_caps_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5dr_dbg
	jmp	LBB0_12
LBB0_4:
	movq	_DR_CHUNK_SIZE_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DR_CHUNK_SIZE_1024K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	callq	_min_t
	movl	%eax, 12(%r15)
	cmpl	$0, 4(%r15)
	je	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	callq	_dr_domain_init_resources
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r15, %rdi
	callq	_mlx5dr_err
LBB0_11:
	movq	%r15, %rdi
	callq	_dr_domain_caps_uninit
LBB0_12:
	movq	%r15, %rdi
	callq	_kfree
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_dr_domain_init_cache
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5dr_err
	movq	%r15, %rdi
	callq	_dr_domain_uninit_resources
	jmp	LBB0_11
LBB0_15:
	xorl	%eax, %eax
	callq	_mlx5dr_crc32_init_table
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5DR_DOMAIN_TYPE_FDB,4,2     ## @MLX5DR_DOMAIN_TYPE_FDB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed init domain, no caps\n"

	.comm	_DR_CHUNK_SIZE_4K,4,2           ## @DR_CHUNK_SIZE_4K
	.comm	_u32,4,2                        ## @u32
	.comm	_DR_CHUNK_SIZE_1024K,4,2        ## @DR_CHUNK_SIZE_1024K
L_.str.1:                               ## @.str.1
	.asciz	"SW steering is not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed init domain resources\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed initialize domain cache\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_domain_create           ; -- Begin function mlx5dr_domain_create
	.p2align	2
_mlx5dr_domain_create:                  ; @mlx5dr_domain_create
	.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
Lloh0:
	adrp	x8, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lo	LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.2:
	str	x20, [x19, #32]
	str	w21, [x19]
	add	x0, x19, #24
	mov	w1, #1
	bl	_refcount_set
	add	x0, x19, #20
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_dr_domain_caps_init
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
	b	LBB0_10
LBB0_4:
Lloh8:
	adrp	x8, _DR_CHUNK_SIZE_4K@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DR_CHUNK_SIZE_4K@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _u32@GOTPAGE
Lloh12:
	ldr	x9, [x9, _u32@GOTPAGEOFF]
	str	w8, [x19, #16]
Lloh13:
	ldr	w0, [x9]
Lloh14:
	adrp	x8, _DR_CHUNK_SIZE_1024K@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DR_CHUNK_SIZE_1024K@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	bl	_min_t
	str	w0, [x19, #12]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_dr_domain_init_resources
	cbz	w0, LBB0_13
; %bb.6:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_mlx5dr_err
LBB0_9:
	mov	x0, x19
	bl	_dr_domain_caps_uninit
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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_13:
	mov	x0, x19
	bl	_dr_domain_init_cache
	cbz	w0, LBB0_15
; %bb.14:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_err
	mov	x0, x19
	bl	_dr_domain_uninit_resources
	b	LBB0_9
LBB0_15:
	bl	_mlx5dr_crc32_init_table
	b	LBB0_12
	.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 AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5DR_DOMAIN_TYPE_FDB,4,2     ; @MLX5DR_DOMAIN_TYPE_FDB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed init domain, no caps\n"

	.comm	_DR_CHUNK_SIZE_4K,4,2           ; @DR_CHUNK_SIZE_4K
	.comm	_u32,4,2                        ; @u32
	.comm	_DR_CHUNK_SIZE_1024K,4,2        ; @DR_CHUNK_SIZE_1024K
l_.str.1:                               ; @.str.1
	.asciz	"SW steering is not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed init domain resources\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed initialize domain cache\n"

.subsections_via_symbols
