	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mlx5_add_flow_rules
__mlx5_add_flow_rules:                  ## @_mlx5_add_flow_rules
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_get_steering
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_check_valid_spec
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:
	movl	%r15d, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_dest_is_valid
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_4
LBB0_6:
	movq	_FS_LOCK_GRANDPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nested_down_read_ref_node
	movq	%r12, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_build_match_list
	testl	%eax, %eax
	je	LBB0_7
## %bb.16:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_up_read_ref_node
LBB0_31:
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_32:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movb	$1, %r13b
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_build_match_list
	xorl	%r13d, %r13d
	testl	%eax, %eax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_22
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r13b
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_up_read_ref_node
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%rsp)
	movq	%r12, %rbx
	movq	%r12, %rdi
	leaq	-48(%rbp), %r12
	movq	%r12, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_try_add_to_existing_fg
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_free_match_list
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_PTR_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	$1, %r13b
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_FS_LOCK_GRANDPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nested_down_write_ref_node
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_PTR_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_atomic_read
	cmpl	%eax, -76(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.23:
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_alloc_auto_flow_group
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	callq	_ERR_CAST
	movq	%rax, %r15
	movq	%r12, %rdi
	jmp	LBB0_15
LBB0_13:
	testb	$1, %r13b
	jne	LBB0_32
## %bb.14:
	movq	%rbx, %rdi
LBB0_15:
	xorl	%esi, %esi
	callq	_up_write_ref_node
	jmp	LBB0_32
LBB0_22:
	movl	%eax, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	jmp	LBB0_31
LBB0_25:
	movq	_FS_LOCK_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nested_down_write_ref_node
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_create_auto_flow_group
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_30
## %bb.26:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_alloc_fte
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_30
LBB0_28:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_insert_fte
	testl	%eax, %eax
	je	LBB0_33
## %bb.29:
	movl	%eax, %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_kmem_cache_free
LBB0_30:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tree_put_node
	jmp	LBB0_31
LBB0_33:
	movq	_FS_LOCK_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nested_down_write_ref_node
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movq	%r12, %r9
	callq	_add_rule_fg
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_up_write_ref_node
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_tree_put_node
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tree_put_node
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FS_LOCK_GRANDPARENT,4,2        ## @FS_LOCK_GRANDPARENT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_FS_LOCK_PARENT,4,2             ## @FS_LOCK_PARENT
	.comm	_FS_LOCK_CHILD,4,2              ## @FS_LOCK_CHILD
	.no_dead_strip	__mlx5_add_flow_rules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mlx5_add_flow_rules
__mlx5_add_flow_rules:                  ; @_mlx5_add_flow_rules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_get_steering
	mov	x27, x0
	mov	x0, x22
	bl	_check_valid_spec
	cbz	w0, LBB0_9
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w24, w19
	mov	x25, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x25
	mov	x2, x23
	bl	_dest_is_valid
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #4
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _FS_LOCK_GRANDPARENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS_LOCK_GRANDPARENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nested_down_read_ref_node
	mov	x0, x23
	bl	_atomic_read
	mov	x25, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	bl	_build_match_list
	cbz	w0, LBB0_10
; %bb.6:
	mov	x26, x0
	mov	x0, x23
	bl	_up_read_ref_node
LBB0_7:
	mov	x0, x26
	bl	_ERR_PTR
	mov	x26, x0
LBB0_8:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_10:
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	w27, #1
Lloh6:
	adrp	x28, _ENOENT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ENOENT@GOTPAGEOFF]
Lloh8:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_atomic_read
	mov	x25, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	bl	_build_match_list
	mov	w27, #0
	cbnz	w0, LBB0_25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	tbz	w27, #0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_up_read_ref_node
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	bl	_try_add_to_existing_fg
	mov	x26, x0
	add	x0, sp, #8
	bl	_free_match_list
	mov	x0, x26
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	bl	_PTR_ERR
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	bl	_PTR_ERR
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	tbz	w27, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh10:
	adrp	x8, _FS_LOCK_GRANDPARENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FS_LOCK_GRANDPARENT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nested_down_write_ref_node
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	bl	_PTR_ERR
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_atomic_read
	cmp	w25, w0
	b.ne	LBB0_11
; %bb.21:
	mov	x0, x23
	mov	x1, x22
	bl	_alloc_auto_flow_group
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.22:
	mov	x0, x25
	bl	_ERR_CAST
	mov	x26, x0
	b	LBB0_24
LBB0_23:
	tbnz	w27, #0, LBB0_8
LBB0_24:
	mov	x0, x23
	mov	w1, #0
	bl	_up_write_ref_node
	b	LBB0_8
LBB0_25:
	mov	x26, x0
	mov	x0, x23
	mov	w1, #0
	bl	_up_write_ref_node
	b	LBB0_7
LBB0_26:
Lloh13:
	adrp	x8, _FS_LOCK_PARENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FS_LOCK_PARENT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_nested_down_write_ref_node
	mov	x0, x23
	mov	w1, #0
	bl	_up_write_ref_node
	mov	x0, x23
	mov	x1, x25
	bl	_create_auto_flow_group
	mov	x26, x0
	cbnz	w0, LBB0_31
; %bb.27:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_alloc_fte
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_29
; %bb.28:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x26, x0
	b	LBB0_31
LBB0_29:
	mov	x0, x25
	mov	x1, x23
	bl	_insert_fte
	cbz	w0, LBB0_32
; %bb.30:
	mov	x26, x0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x23
	bl	_kmem_cache_free
LBB0_31:
	mov	x0, x25
	mov	w1, #0
	bl	_up_write_ref_node
	mov	x0, x25
	mov	w1, #0
	bl	_tree_put_node
	b	LBB0_7
LBB0_32:
Lloh16:
	adrp	x8, _FS_LOCK_CHILD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FS_LOCK_CHILD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nested_down_write_ref_node
	mov	x0, x25
	mov	w1, #0
	bl	_up_write_ref_node
	mov	x0, x25
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	bl	_add_rule_fg
	mov	x26, x0
	mov	x0, x23
	mov	w1, #0
	bl	_up_write_ref_node
	mov	x0, x23
	mov	w1, #0
	bl	_tree_put_node
	mov	x0, x25
	mov	w1, #0
	bl	_tree_put_node
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FS_LOCK_GRANDPARENT,4,2        ; @FS_LOCK_GRANDPARENT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_FS_LOCK_PARENT,4,2             ; @FS_LOCK_PARENT
	.comm	_FS_LOCK_CHILD,4,2              ; @FS_LOCK_CHILD
	.no_dead_strip	__mlx5_add_flow_rules
.subsections_via_symbols
