	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_raw_fs_rule_add        ## -- Begin function mlx5_ib_raw_fs_rule_add
	.p2align	4, 0x90
_mlx5_ib_raw_fs_rule_add:               ## @mlx5_ib_raw_fs_rule_add
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	(%rsi), %rax
	movq	_MLX5_IB_FLOW_TYPE_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	%rsi, %r12
	movq	8(%rsi), %rax
	movq	_MLX5_IB_FLOW_LAST_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_5
## %bb.6:
	movq	%r9, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %edi
	movl	$16, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_raw_fs_is_multicast
	movq	%r14, %rbx
	movl	%eax, %r14d
	movq	(%r15), %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	__get_flow_table
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movq	_MLX5_FLOW_DESTINATION_TYPE_TIR@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, (%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPCREL(%rip), %rcx
	movl	(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rsi
	movq	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:
	movq	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_13:
	movq	_MLX5_FLOW_DESTINATION_TYPE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_15:
	movq	_MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.17:
	movq	_MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%edx, 28(%r14)
	movl	$2, %eax
	jmp	LBB0_18
LBB0_16:
	movl	$1, %eax
LBB0_18:
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	callq	__create_raw_flow_rule
	addq	$32, %rsp
	movq	%r14, %r13
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_put_flow_table
LBB0_20:
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %edi
	jmp	LBB0_3
LBB0_21:
	movq	(%r15), %rdi
	callq	_mutex_unlock
	leaq	16(%r12), %rdi
	callq	_atomic_inc
	movq	%r12, (%r14)
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_IB_FLOW_TYPE_NORMAL,8,3   ## @MLX5_IB_FLOW_TYPE_NORMAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX5_IB_FLOW_LAST_PRIO,8,3     ## @MLX5_IB_FLOW_LAST_PRIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MLX5_FLOW_DESTINATION_TYPE_TIR,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_TIR
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM
	.comm	_MLX5_FLOW_DESTINATION_TYPE_PORT,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_PORT
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_ALLOW
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_MLX5_FLOW_DESTINATION_TYPE_COUNTER,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_COUNTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_raw_fs_rule_add        ; -- Begin function mlx5_ib_raw_fs_rule_add
	.p2align	2
_mlx5_ib_raw_fs_rule_add:               ; @mlx5_ib_raw_fs_rule_add
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MLX5_IB_FLOW_TYPE_NORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_IB_FLOW_TYPE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _MLX5_IB_FLOW_LAST_PRIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_IB_FLOW_LAST_PRIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.2:
	mov	x28, x7
	mov	x22, x6
	mov	x23, x5
	mov	x26, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x0
	ldr	w8, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #2
	mov	w1, #16
	bl	_kcalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x23
	bl	_raw_fs_is_multicast
	mov	x27, x0
	ldr	x0, [x19]
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x27
	bl	__get_flow_table
	mov	x27, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x27
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_20
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
Lloh13:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_TIR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_TIR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	stp	w9, w28, [x20]
	b	LBB0_13
LBB0_11:
Lloh16:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
Lloh19:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20]
	str	w28, [x20, #8]
LBB0_13:
Lloh22:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_PORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_PORT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh27:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
Lloh29:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
Lloh32:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	w26, [x20, #28]
	mov	w8, #2
	b	LBB0_18
LBB0_17:
	mov	w8, #1
LBB0_18:
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x27
	mov	x2, x20
	mov	x3, x21
	mov	x4, x25
	mov	x5, x24
	mov	x6, x23
	mov	x7, x22
	bl	__create_raw_flow_rule
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	mov	x1, x27
	mov	w2, #0
	bl	_put_flow_table
LBB0_20:
	ldr	x0, [x19]
	bl	_mutex_unlock
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	b	LBB0_8
LBB0_21:
	ldr	x0, [x19]
	bl	_mutex_unlock
	add	x0, x21, #16
	bl	_atomic_inc
	str	x21, [x22]
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_IB_FLOW_TYPE_NORMAL,8,3   ; @MLX5_IB_FLOW_TYPE_NORMAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX5_IB_FLOW_LAST_PRIO,8,3     ; @MLX5_IB_FLOW_LAST_PRIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MLX5_FLOW_DESTINATION_TYPE_TIR,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_TIR
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE
	.comm	_MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM
	.comm	_MLX5_FLOW_DESTINATION_TYPE_PORT,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_PORT
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_ALLOW
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_MLX5_FLOW_DESTINATION_TYPE_COUNTER,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_COUNTER
.subsections_via_symbols
