	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_bpf_create_prog
_nsim_bpf_create_prog:                  ## @nsim_bpf_create_prog
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	%r14, 24(%rax)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movl	8(%r15), %edx
	leal	1(%rdx), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_debugfs_create_dir
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	16(%rbx), %edx
	movq	(%r14), %rcx
	addq	$8, %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_debugfs_create_u32
	movl	16(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	movq	_nsim_bpf_string_fops@GOTPCREL(%rip), %r8
	movl	$256, %esi                      ## imm = 0x100
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movl	16(%rbx), %edx
	leaq	12(%rbx), %rcx
	leaq	L_.str.4(%rip), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_debugfs_create_bool
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax)
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verify"

L_.str.1:                               ## @.str.1
	.asciz	"%u"

L_.str.2:                               ## @.str.2
	.asciz	"id"

L_.str.3:                               ## @.str.3
	.asciz	"state"

	.comm	_nsim_bpf_string_fops,4,2       ## @nsim_bpf_string_fops
L_.str.4:                               ## @.str.4
	.asciz	"loaded"

	.no_dead_strip	_nsim_bpf_create_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_bpf_create_prog
_nsim_bpf_create_prog:                  ; @nsim_bpf_create_prog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	stp	x19, x20, [x0, #24]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	w2, [x20, #8]
	add	w8, w2, #1
	str	w8, [x20, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	ldr	w1, [x20, #4]
	add	x0, sp, #8
	bl	_debugfs_create_dir
	str	w0, [x21, #16]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_kfree
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w2, [x21, #16]
	ldr	x8, [x19]
	add	x3, x8, #8
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #256
	bl	_debugfs_create_u32
	ldr	w2, [x21, #16]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh17:
	adrp	x4, _nsim_bpf_string_fops@GOTPAGE
Lloh18:
	ldr	x4, [x4, _nsim_bpf_string_fops@GOTPAGEOFF]
	mov	w1, #256
	mov	x3, x21
	bl	_debugfs_create_file
	ldr	w2, [x21, #16]
	add	x3, x21, #12
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #256
	bl	_debugfs_create_bool
	add	x0, x21, #8
	mov	x1, x20
	bl	_list_add_tail
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x21, [x8]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verify"

l_.str.1:                               ; @.str.1
	.asciz	"%u"

l_.str.2:                               ; @.str.2
	.asciz	"id"

l_.str.3:                               ; @.str.3
	.asciz	"state"

	.comm	_nsim_bpf_string_fops,4,2       ; @nsim_bpf_string_fops
l_.str.4:                               ; @.str.4
	.asciz	"loaded"

	.no_dead_strip	_nsim_bpf_create_prog
.subsections_via_symbols
