	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_setup_prog_checks
_nsim_setup_prog_checks:                ## @nsim_setup_prog_checks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_NSIM_XDP_MAX_MTU@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jle	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rax
LBB0_5:
	movl	(%rsi), %edi
	movq	%rax, %rsi
	callq	_NSIM_EA
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to load offloaded prog to drv"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NSIM_XDP_MAX_MTU,8,3           ## @NSIM_XDP_MAX_MTU
L_.str.1:                               ## @.str.1
	.asciz	"MTU too large w/ XDP enabled"

	.no_dead_strip	_nsim_setup_prog_checks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_setup_prog_checks
_nsim_setup_prog_checks:                ; @nsim_setup_prog_checks
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _NSIM_XDP_MAX_MTU@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NSIM_XDP_MAX_MTU@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w0, [x1]
	mov	x1, x8
	bl	_NSIM_EA
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to load offloaded prog to drv"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NSIM_XDP_MAX_MTU,8,3           ; @NSIM_XDP_MAX_MTU
l_.str.1:                               ; @.str.1
	.asciz	"MTU too large w/ XDP enabled"

	.no_dead_strip	_nsim_setup_prog_checks
.subsections_via_symbols
