	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_add_flow_rules            ## -- Begin function mlx5_add_flow_rules
	.p2align	4, 0x90
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_find_root
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%r13), %r12
	movl	8(%rbx), %esi
	callq	_fs_get_obj
	movq	(%r13), %rax
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_fwd_next_prio_supported
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	__mlx5_add_flow_rules
	movq	%rax, %rbx
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO@GOTPCREL(%rip), %r14
	cmpq	(%r14), %r12
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	leaq	4(%r15), %rsi
	callq	_list_add
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_14:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mutex_lock
	callq	_find_next_chained_ft
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	leaq	-80(%rbp), %r15
	movl	$1, %r14d
	jmp	LBB0_9
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO,8,3 ## @MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,8,3 ## @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_add_flow_rules            ; -- Begin function mlx5_add_flow_rules
	.p2align	2
_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	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x0, x0, #8
	bl	_find_root
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	x27, [x21]
	ldr	w1, [x23, #8]
	bl	_fs_get_obj
	ldr	x8, [x21]
Lloh0:
	adrp	x26, _MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x23
	bl	_fwd_next_prio_supported
	cbz	w0, LBB0_14
; %bb.2:
	cbz	w24, LBB0_11
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x25
	mov	x4, x24
	bl	__mlx5_add_flow_rules
	mov	x21, x0
	ldr	x8, [x26]
	cmp	x27, x8
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, x8, #8
	bl	_list_empty
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, x8, #8
	add	x1, x20, #4
	bl	_list_add
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x26]
	ldr	x9, [x21]
	ldr	x9, [x9]
	str	x8, [x9]
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x21
	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_11:
	mov	x0, x19
	bl	_mutex_lock
	bl	_find_next_chained_ft
	cbz	x0, LBB0_13
; %bb.12:
	mov	x20, x0
Lloh4:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x0, [sp]
Lloh7:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x25, sp
	mov	w24, #1
	b	LBB0_5
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_14:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO,8,3 ; @MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,8,3 ; @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
.subsections_via_symbols
