	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_get_stack_usage
_nfp_bpf_get_stack_usage:               ## @nfp_bpf_get_stack_usage
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nfp_prog_first_meta
	movq	%rax, %r13
	movq	_MAX_CALL_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rcx,%rax,8)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movw	%r14w, (%rcx,%rax,2)
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	leaq	(%rcx,%rax), %rdx
	incq	%rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nfp_bpf_goto_meta
	movq	%rax, %r13
	incq	%r12
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_3 Depth 3
	movzwl	(%r13), %r14d
	movq	(%r15), %rax
	movzwl	(%rax,%r14,2), %edi
	movl	%r12d, %r12d
	movq	_STACK_FRAME_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_round_up
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movw	%ax, (%rcx,%r12,2)
	movzwl	%ax, %eax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	addl	%eax, %esi
	movl	%ebx, %edi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_max
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_3 Depth 3
	movq	%r15, %rdi
	callq	_nfp_prog_last_meta
	cmpq	%rax, %r13
	je	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpw	%r14w, (%r13)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=3
	movq	%r13, %rdi
	callq	_is_mbpf_pseudo_call
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_nfp_meta_next
	movq	%rax, %rbx
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=3
	movq	%r15, %rdi
	callq	_nfp_prog_last_meta
	movq	%rbx, %r13
	cmpq	%rax, %rbx
	jne	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rax
	subq	$1, %rax
	jb	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movzwl	(%rcx,%rdx,2), %ecx
	subl	%ecx, -52(%rbp)                 ## 4-byte Folded Spill
	decl	%edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %r13
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movzwl	(%rcx,%rdx,2), %r14d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_11
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CALL_FRAMES,4,2            ## @MAX_CALL_FRAMES
	.comm	_STACK_FRAME_ALIGN,4,2          ## @STACK_FRAME_ALIGN
	.no_dead_strip	_nfp_bpf_get_stack_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_get_stack_usage
_nfp_bpf_get_stack_usage:               ; @nfp_bpf_get_stack_usage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_nfp_prog_first_meta
	mov	x20, x0
Lloh3:
	adrp	x8, _MAX_CALL_FRAMES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CALL_FRAMES@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	lsl	x8, x12, #1
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x3fffffff0
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x27, x8, x12
	mov	sp, x27
	mov	x23, #0
	mov	w22, #0
	mov	w24, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x23, [x25, w28, uxtw #3]
	strh	w21, [x27, w28, uxtw #1]
	ldp	x9, x8, [x20, #8]
	add	x8, x8, x9
	add	x2, x8, #1
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_bpf_goto_meta
	mov	x20, x0
	add	x23, x28, #1
	ldur	w24, [x29, #-92]                ; 4-byte Folded Reload
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;       Child Loop BB0_4 Depth 3
	ldrh	w21, [x20]
	ldr	x8, [x19]
	ldrh	w0, [x8, w21, uxtw #1]
	and	x28, x23, #0xffffffff
Lloh12:
	adrp	x8, _STACK_FRAME_ALIGN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STACK_FRAME_ALIGN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_round_up
	strh	w0, [x26, w23, uxtw #1]
	add	w22, w22, w0
	mov	x0, x24
	mov	x1, x22
	bl	_max
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x0, x19
	bl	_nfp_prog_last_meta
	cmp	x20, x0
	b.eq	LBB0_7
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrh	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=3
	mov	x0, x20
	bl	_is_mbpf_pseudo_call
	mov	x24, x0
	mov	x0, x20
	bl	_nfp_meta_next
	mov	x23, x0
	cbnz	w24, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=3
	mov	x0, x19
	bl	_nfp_prog_last_meta
	mov	x20, x23
	cmp	x23, x0
	b.ne	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=2
	cbz	x28, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=2
	ldrh	w8, [x26, x28, lsl #1]
	sub	w22, w22, w8
	sub	w8, w28, #1
	ldr	x20, [x25, w8, uxtw #3]
	ldrh	w21, [x27, w8, uxtw #1]
	sub	x28, x28, #1
	b	LBB0_3
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	ldur	w0, [x29, #-92]                 ; 4-byte Folded Reload
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CALL_FRAMES,4,2            ; @MAX_CALL_FRAMES
	.comm	_STACK_FRAME_ALIGN,4,2          ; @STACK_FRAME_ALIGN
	.no_dead_strip	_nfp_bpf_get_stack_usage
.subsections_via_symbols
