	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_setup_prog_hw_checks
_nsim_setup_prog_hw_checks:             ## @nsim_setup_prog_hw_checks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rax
	movq	8(%rsi), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.3:
	movl	(%rax), %esi
	callq	_bpf_offload_dev_match
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	(%r14), %edi
	callq	_NSIM_EA
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xdpoffload of non-bound program"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"program bound to different dev"

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

L_.str.3:                               ## @.str.3
	.asciz	"offloading program in bad state"

	.no_dead_strip	_nsim_setup_prog_hw_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_hw_checks
_nsim_setup_prog_hw_checks:             ; @nsim_setup_prog_hw_checks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	w1, [x8]
	bl	_bpf_offload_dev_match
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.4:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	ldr	w0, [x19]
	bl	_NSIM_EA
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xdpoffload of non-bound program"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"program bound to different dev"

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

l_.str.3:                               ; @.str.3
	.asciz	"offloading program in bad state"

	.no_dead_strip	_nsim_setup_prog_hw_checks
.subsections_via_symbols
