	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlx5_create_flow_table
___mlx5_create_flow_table:              ## @__mlx5_create_flow_table
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	addq	$4, %rdi
	callq	_find_root
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	24(%r14), %esi
	movq	%r13, %rdi
	callq	_find_prio
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r15
	cmpq	(%rax), %r15
	jge	LBB0_6
## %bb.7:
	addq	8(%rax), %r15
	movq	%r15, (%r14)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	callq	_roundup_pow_of_two
	movl	%eax, %edx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_20
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_8:
	xorl	%edx, %edx
LBB0_10:
	movl	20(%r12), %ecx
	movl	8(%r14), %r9d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_alloc_flow_table
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_12:
	movq	_del_hw_flow_table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_del_sw_flow_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tree_init_node
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
	callq	_ilog2
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_13:
	xorl	%r14d, %r14d
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_find_next_chained_ft
	movl	(%r13), %ecx
	movl	%ecx, 4(%r15)
	movq	8(%r12), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movl	16(%r12), %edi
	movq	%r15, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_connect_flow_table
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
LBB0_18:
	movq	%r15, %rdi
	callq	_kfree
LBB0_19:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %edi
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_21:
	movl	$1, (%r15)
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_down_write_ref_node
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tree_add_node
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_list_add_flow_table
	incl	20(%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_trace_mlx5_fs_add_ft
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx5: flow steering failed to find root of namespace\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_del_hw_flow_table,4,2          ## @del_hw_flow_table
	.comm	_del_sw_flow_table,4,2          ## @del_sw_flow_table
	.no_dead_strip	___mlx5_create_flow_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlx5_create_flow_table
___mlx5_create_flow_table:              ; @__mlx5_create_flow_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	add	x0, x0, #4
	bl	_find_root
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w1, [x24, #24]
	mov	x0, x22
	bl	_find_prio
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x24]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.3:
	ldr	x9, [x20, #8]
	add	x25, x9, x8
	str	x25, [x24]
	ldr	x0, [x24, #16]
	cbz	x0, LBB0_9
; %bb.4:
	bl	_roundup_pow_of_two
	mov	x2, x0
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_9:
	mov	w2, #0
LBB0_10:
	ldr	w3, [x19, #20]
	ldr	w5, [x24, #8]
	mov	x0, x25
	mov	x1, x23
	mov	x4, x21
	bl	_alloc_flow_table
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_19
LBB0_12:
Lloh9:
	adrp	x8, _del_hw_flow_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _del_hw_flow_table@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _del_sw_flow_table@GOTPAGE
Lloh13:
	ldr	x8, [x8, _del_sw_flow_table@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_tree_init_node
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_ilog2
	mov	x23, x0
	b	LBB0_15
LBB0_14:
	mov	w23, #0
LBB0_15:
	mov	x0, x20
	bl	_find_next_chained_ft
	mov	x3, x0
	ldr	w8, [x22]
	str	w8, [x21, #4]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	w0, [x19, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_connect_flow_table
	cbz	w0, LBB0_21
; %bb.17:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_18:
	mov	x0, x21
	bl	_kfree
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_21:
	mov	w8, #1
	str	w8, [x21]
	add	x22, x20, #16
	mov	x0, x22
	mov	w1, #0
	bl	_down_write_ref_node
	mov	x0, x21
	mov	x1, x22
	bl	_tree_add_node
	mov	x0, x21
	mov	x1, x20
	bl	_list_add_flow_table
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	mov	x0, x22
	mov	w1, #0
	bl	_up_write_ref_node
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	bl	_trace_mlx5_fs_add_ft
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx5: flow steering failed to find root of namespace\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_del_hw_flow_table,4,2          ; @del_hw_flow_table
	.comm	_del_sw_flow_table,4,2          ; @del_sw_flow_table
	.no_dead_strip	___mlx5_create_flow_table
.subsections_via_symbols
