	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_flow_detach
_mlx4_en_flow_detach:                   ## @mlx4_en_flow_detach
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r14), %rbx
	movq	_MAX_NUM_OF_FS_RULES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_1
## %bb.3:
	movq	8(%r15), %r13
	shlq	$4, %rbx
	movq	8(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	leaq	(%rbx,%r13), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_mlx4_flow_detach
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	(%r14), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_err
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	leaq	(%rbx,%r13), %r14
	leaq	(%rbx,%r13), %rdi
	addq	$4, %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_list_del
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_OF_FS_RULES,8,3        ## @MAX_NUM_OF_FS_RULES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to detach network rule at location %d. registration id = 0x%llx\n"

	.no_dead_strip	_mlx4_en_flow_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_flow_detach
_mlx4_en_flow_detach:                   ; @mlx4_en_flow_detach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _MAX_NUM_OF_FS_RULES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NUM_OF_FS_RULES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x24, [x0, #8]
	add	x23, x24, x22, lsl #4
	ldr	x1, [x23, #8]!
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_mlx4_flow_detach
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x2, [x19]
	ldr	x3, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_en_err
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	xzr, [x23]
	add	x19, x24, x22, lsl #4
	add	x0, x19, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_list_del
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_OF_FS_RULES,8,3        ; @MAX_NUM_OF_FS_RULES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to detach network rule at location %d. registration id = 0x%llx\n"

	.no_dead_strip	_mlx4_en_flow_detach
.subsections_via_symbols
