	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpf_to_bpf_call
_bpf_to_bpf_call:                       ## @bpf_to_bpf_call
	.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, %rbx
	movl	8(%rdi), %edi
	movq	_STACK_FRAME_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_round_up
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_stack_imm
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ur_load_imm_any
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_stack_reg
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_stack_reg
	movq	_ALU_OP_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r12d, %r8d
	callq	_emit_alu
	movq	%rbx, %rdi
	callq	_stack_reg
	movq	_NFP_CSR_ACT_LM_ADDR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_emit_csr_wr
LBB0_2:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %r12
	movq	%rbx, %rdi
	callq	_nfp_prog_current_offset
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	addq	$3, %r13
	movq	_BR_UNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BR_OFF_RELO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RELO_BR_GO_CALL_PUSH_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_emit_br_relo
	movq	%rbx, %rdi
	callq	_nfp_prog_current_offset
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_imm_b
	movq	_RELO_IMMED_REL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_wrp_immed_relo
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ELOOP@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	addq	$2, %r13
	movq	_BR_UNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_emit_br
	movq	%rbx, %rdi
	callq	_nfp_prog_current_offset
	movq	%rax, %r12
LBB0_7:
	movq	%rbx, %rdi
	callq	_ret_reg
	movq	_RELO_IMMED_REL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_wrp_immed_relo
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nfp_prog_confirm_current_offset
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_stack_imm
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ur_load_imm_any
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_stack_reg
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_stack_reg
	movq	_ALU_OP_SUB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r15d, %r8d
	callq	_emit_alu
	movq	%rbx, %rdi
	callq	_stack_reg
	movq	_NFP_CSR_ACT_LM_ADDR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_emit_csr_wr
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_wrp_nops
LBB0_12:
	movq	%rbx, %rdi
	callq	_nfp_prog_current_offset
	subq	%r12, %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	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	_STACK_FRAME_ALIGN,4,2          ## @STACK_FRAME_ALIGN
	.comm	_ALU_OP_ADD,4,2                 ## @ALU_OP_ADD
	.comm	_NFP_CSR_ACT_LM_ADDR0,4,2       ## @NFP_CSR_ACT_LM_ADDR0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: BPF-to-BPF call has no destination recorded\n"

	.comm	_ELOOP,4,2                      ## @ELOOP
	.comm	_BR_UNC,4,2                     ## @BR_UNC
	.comm	_BR_OFF_RELO,4,2                ## @BR_OFF_RELO
	.comm	_RELO_BR_GO_CALL_PUSH_REGS,4,2  ## @RELO_BR_GO_CALL_PUSH_REGS
	.comm	_RELO_IMMED_REL,4,2             ## @RELO_IMMED_REL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ALU_OP_SUB,4,2                 ## @ALU_OP_SUB
	.no_dead_strip	_bpf_to_bpf_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpf_to_bpf_call
_bpf_to_bpf_call:                       ; @bpf_to_bpf_call
	.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
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _STACK_FRAME_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STACK_FRAME_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_round_up
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_stack_imm
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ur_load_imm_any
	mov	x22, x0
	mov	x0, x20
	bl	_stack_reg
	mov	x23, x0
	mov	x0, x20
	bl	_stack_reg
	mov	x2, x0
Lloh3:
	adrp	x8, _ALU_OP_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALU_OP_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x4, x22
	bl	_emit_alu
	mov	x0, x20
	bl	_stack_reg
	mov	x1, x0
Lloh6:
	adrp	x8, _NFP_CSR_ACT_LM_ADDR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_CSR_ACT_LM_ADDR0@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_emit_csr_wr
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x9, [x20]
	ldr	x8, [x8]
	ldr	x22, [x9, x8, lsl #3]
	mov	x0, x20
	bl	_nfp_prog_current_offset
Lloh9:
	adrp	x24, _RELO_IMMED_REL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _RELO_IMMED_REL@GOTPAGEOFF]
	cbz	x22, LBB0_6
; %bb.4:
	add	x23, x0, #3
Lloh11:
	adrp	x8, _BR_UNC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BR_UNC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _BR_OFF_RELO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BR_OFF_RELO@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _RELO_BR_GO_CALL_PUSH_REGS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RELO_BR_GO_CALL_PUSH_REGS@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #2
	bl	_emit_br_relo
	mov	x0, x20
	bl	_nfp_prog_current_offset
	mov	x22, x0
	mov	x0, x20
	bl	_imm_b
	mov	x1, x0
	ldr	w3, [x24]
	mov	x0, x20
	mov	x2, #0
	bl	_wrp_immed_relo
	b	LBB0_7
LBB0_5:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh22:
	adrp	x8, _ELOOP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ELOOP@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	add	x23, x0, #2
Lloh24:
	adrp	x8, _BR_UNC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BR_UNC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w3, #1
	bl	_emit_br
	mov	x0, x20
	bl	_nfp_prog_current_offset
	mov	x22, x0
LBB0_7:
	mov	x0, x20
	bl	_ret_reg
	mov	x1, x0
	ldr	w3, [x24]
	mov	x0, x20
	mov	x2, x23
	bl	_wrp_immed_relo
	mov	x0, x20
	mov	x1, x23
	bl	_nfp_prog_confirm_current_offset
	cbz	w0, LBB0_11
; %bb.8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_stack_imm
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ur_load_imm_any
	mov	x21, x0
	mov	x0, x20
	bl	_stack_reg
	mov	x23, x0
	mov	x0, x20
	bl	_stack_reg
	mov	x2, x0
Lloh27:
	adrp	x8, _ALU_OP_SUB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ALU_OP_SUB@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x4, x21
	bl	_emit_alu
	mov	x0, x20
	bl	_stack_reg
	mov	x1, x0
Lloh30:
	adrp	x8, _NFP_CSR_ACT_LM_ADDR0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NFP_CSR_ACT_LM_ADDR0@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_emit_csr_wr
	mov	x0, x20
	mov	w1, #3
	bl	_wrp_nops
LBB0_10:
	mov	x0, x20
	bl	_nfp_prog_current_offset
	mov	x8, x0
	mov	w0, #0
	sub	x8, x8, x22
	str	x8, [x19]
	b	LBB0_13
LBB0_11:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_STACK_FRAME_ALIGN,4,2          ; @STACK_FRAME_ALIGN
	.comm	_ALU_OP_ADD,4,2                 ; @ALU_OP_ADD
	.comm	_NFP_CSR_ACT_LM_ADDR0,4,2       ; @NFP_CSR_ACT_LM_ADDR0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: BPF-to-BPF call has no destination recorded\n"

	.comm	_ELOOP,4,2                      ; @ELOOP
	.comm	_BR_UNC,4,2                     ; @BR_UNC
	.comm	_BR_OFF_RELO,4,2                ; @BR_OFF_RELO
	.comm	_RELO_BR_GO_CALL_PUSH_REGS,4,2  ; @RELO_BR_GO_CALL_PUSH_REGS
	.comm	_RELO_IMMED_REL,4,2             ; @RELO_IMMED_REL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ALU_OP_SUB,4,2                 ; @ALU_OP_SUB
	.no_dead_strip	_bpf_to_bpf_call
.subsections_via_symbols
