	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_v9_templates
_generate_v9_templates:                 ## @generate_v9_templates
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	__netflow_v9_record_ipv4_tcp@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	__NETFLOW_V9_TEMPLATE_SIZE
	movl	%eax, %ebx
	movq	__netflow_v9_record_ipv6_tcp@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	__NETFLOW_V9_TEMPLATE_SIZE
	movl	%eax, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	addl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addl	%r12d, %ebx
	addl	$4, %ebx
	movq	_M_NETFLOW_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	addl	$7, %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	andl	$-4, %eax
	subl	%eax, %ebx
	movl	$4, %eax
	subl	%ebx, %eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	movq	%r13, (%rcx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	addl	$4, %edi
	movl	$1, (%rdx)
	movq	$0, (%r13)
	callq	_htons
	movq	%rax, 8(%r13)
	movq	_NETFLOW_V9_MAX_RESERVED_FLOWSET@GOTPCREL(%rip), %rcx
	movq	_NETFLOW_V9_FLOW_V4_L4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%rcx), %edi
	callq	_htons
	movq	%rax, 16(%r13)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addq	$32, %r13
	movq	(%r15), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	testl	%edi, %edi
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_htons
	movq	%rax, (%r13)
	movq	(%r15), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_htons
	movq	%rax, 8(%r13)
	addq	$16, %r13
	movq	(%r15), %rax
	movl	8(%rax,%rbx,8), %edi
	incq	%rbx
	testl	%edi, %edi
	jne	LBB0_1
LBB0_3:
	movl	%ebx, %edi
	callq	_htons
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movq	_NETFLOW_V9_FLOW_V6_L4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NETFLOW_V9_MAX_RESERVED_FLOWSET@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	callq	_htons
	movq	%rax, (%r13)
	movq	(%r14), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:
	leaq	24(%r13), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_htons
	movq	%rax, -8(%rbx)
	movq	(%r14), %rax
	movl	4(%rax,%r12,8), %edi
	callq	_htons
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movl	8(%rax,%r12,8), %edi
	incq	%r12
	addq	$16, %rbx
	testl	%edi, %edi
	jne	LBB0_5
LBB0_6:
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, 8(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	$2, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__netflow_v9_record_ipv4_tcp,8,3 ## @_netflow_v9_record_ipv4_tcp
	.comm	__netflow_v9_record_ipv6_tcp,8,3 ## @_netflow_v9_record_ipv6_tcp
	.comm	_M_NETFLOW_GENERAL,4,2          ## @M_NETFLOW_GENERAL
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_NETFLOW_V9_MAX_RESERVED_FLOWSET,4,2 ## @NETFLOW_V9_MAX_RESERVED_FLOWSET
	.comm	_NETFLOW_V9_FLOW_V4_L4,4,2      ## @NETFLOW_V9_FLOW_V4_L4
	.comm	_NETFLOW_V9_FLOW_V6_L4,4,2      ## @NETFLOW_V9_FLOW_V6_L4
	.no_dead_strip	_generate_v9_templates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_v9_templates
_generate_v9_templates:                 ; @generate_v9_templates
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, __netflow_v9_record_ipv4_tcp@GOTPAGE
Lloh1:
	ldr	x24, [x24, __netflow_v9_record_ipv4_tcp@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	__NETFLOW_V9_TEMPLATE_SIZE
	mov	x20, x0
Lloh2:
	adrp	x22, __netflow_v9_record_ipv6_tcp@GOTPAGE
Lloh3:
	ldr	x22, [x22, __netflow_v9_record_ipv6_tcp@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	__NETFLOW_V9_TEMPLATE_SIZE
	add	w8, w20, w0
	add	w21, w8, #4
Lloh4:
	adrp	x8, _M_NETFLOW_GENERAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NETFLOW_GENERAL@GOTPAGEOFF]
Lloh6:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	ldr	x8, [x19, #16]
	str	x0, [x8]
	and	w8, w21, #0x3
	negs	w9, w21
	and	w9, w9, #0x3
	csneg	w8, w8, w9, mi
	mov	w9, #4
	sub	w9, w9, w8
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	add	w0, w8, w21
	mov	w8, #1
	str	w8, [x19]
	str	xzr, [x20]
	bl	_htons
Lloh13:
	adrp	x25, _NETFLOW_V9_MAX_RESERVED_FLOWSET@GOTPAGE
Lloh14:
	ldr	x25, [x25, _NETFLOW_V9_MAX_RESERVED_FLOWSET@GOTPAGEOFF]
	str	x0, [x20, #8]
	ldr	w8, [x25]
Lloh15:
	adrp	x9, _NETFLOW_V9_FLOW_V4_L4@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETFLOW_V9_FLOW_V4_L4@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_htons
	str	x0, [x20, #16]
	add	x23, x20, #32
	ldr	x8, [x24]
	ldr	w0, [x8]
	cbz	w0, LBB0_4
; %bb.1:
	mov	w21, #0
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_htons
	str	x0, [x23]
	ldr	x8, [x24]
	add	x8, x8, x26
	ldr	w0, [x8, #4]
	bl	_htons
	add	x8, x23, #16
	str	x0, [x23, #8]
	ldr	x9, [x24]
	add	x9, x9, x26
	ldr	w0, [x9, #8]
	add	x26, x26, #8
	add	w21, w21, #1
	mov	x23, x8
	cbnz	w0, LBB0_2
; %bb.3:
	mov	x23, x8
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	bl	_htons
	str	x0, [x20, #24]
	ldr	w8, [x25]
Lloh18:
	adrp	x9, _NETFLOW_V9_FLOW_V6_L4@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETFLOW_V9_FLOW_V6_L4@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_htons
	str	x0, [x23]
	ldr	x8, [x22]
	ldr	w0, [x8]
	cbz	w0, LBB0_8
; %bb.6:
	mov	w20, #0
	mov	x21, #0
	add	x24, x23, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_htons
	stur	x0, [x24, #-8]
	ldr	x8, [x22]
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	bl	_htons
	str	x0, [x24], #16
	ldr	x8, [x22]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	add	x21, x21, #8
	add	w20, w20, #1
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	bl	_htons
	str	x0, [x23, #8]
	ldr	x8, [x19, #8]
	mov	w9, #2
	str	w9, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	__netflow_v9_record_ipv4_tcp,8,3 ; @_netflow_v9_record_ipv4_tcp
	.comm	__netflow_v9_record_ipv6_tcp,8,3 ; @_netflow_v9_record_ipv6_tcp
	.comm	_M_NETFLOW_GENERAL,4,2          ; @M_NETFLOW_GENERAL
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_NETFLOW_V9_MAX_RESERVED_FLOWSET,4,2 ; @NETFLOW_V9_MAX_RESERVED_FLOWSET
	.comm	_NETFLOW_V9_FLOW_V4_L4,4,2      ; @NETFLOW_V9_FLOW_V4_L4
	.comm	_NETFLOW_V9_FLOW_V6_L4,4,2      ; @NETFLOW_V9_FLOW_V6_L4
	.no_dead_strip	_generate_v9_templates
.subsections_via_symbols
