	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_add_flow
_tc_add_flow:                           ## @tc_add_flow
	.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
	movq	%rdi, %r15
	xorl	%edx, %edx
	callq	_tc_find_flow
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_flow_cls_offload_flow_rule
	movq	%rax, %r12
	testq	%r13, %r13
	jne	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_tc_find_flow
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_tc_parse_flow_actions
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	_tc_flow_parsers@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	*(%rax,%rbx,8)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_9
LBB0_10:
	cmpl	$0, (%r13)
	je	LBB0_11
## %bb.12:
	movl	(%r14), %eax
	movl	%eax, 4(%r13)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_tc_flow_parsers,8,3            ## @tc_flow_parsers
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tc_add_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_add_flow
_tc_add_flow:                           ; @tc_add_flow
	.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
	mov	x20, x0
	mov	w2, #0
	bl	_tc_find_flow
	mov	x21, x0
	mov	x0, x19
	bl	_flow_cls_offload_flow_rule
	mov	x22, x0
	cbnz	x21, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_tc_find_flow
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_tc_parse_flow_actions
	cbnz	w0, LBB0_13
; %bb.3:
Lloh0:
	adrp	x22, _tc_flow_parsers@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tc_flow_parsers@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x21]
	b	LBB0_5
LBB0_8:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.9:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x21, #4]
	b	LBB0_13
LBB0_10:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_tc_flow_parsers,8,3            ; @tc_flow_parsers
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tc_add_flow
.subsections_via_symbols
