	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_xdp_set_prog
_nsim_xdp_set_prog:                     ## @nsim_xdp_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_xdp_attachment_flags_ok
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	_XDP_SETUP_PROG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 4(%r15)
	je	LBB0_5
LBB0_7:
	movq	_XDP_SETUP_PROG_HW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nsim_xdp_offload_prog
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xdp_attachment_setup
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_NSIM_EA
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_XDP_SETUP_PROG,8,3             ## @XDP_SETUP_PROG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver XDP disabled in DebugFS"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_XDP_SETUP_PROG_HW,8,3          ## @XDP_SETUP_PROG_HW
L_.str.1:                               ## @.str.1
	.asciz	"XDP offload disabled in DebugFS"

	.no_dead_strip	_nsim_xdp_set_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_xdp_set_prog
_nsim_xdp_set_prog:                     ; @nsim_xdp_set_prog
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_xdp_attachment_flags_ok
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _XDP_SETUP_PROG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XDP_SETUP_PROG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w9, [x21, #4]
	cbz	w9, LBB0_8
LBB0_3:
Lloh3:
	adrp	x9, _XDP_SETUP_PROG_HW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XDP_SETUP_PROG_HW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_nsim_xdp_offload_prog
	cbnz	w0, LBB0_12
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_xdp_attachment_setup
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_NSIM_EA
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_XDP_SETUP_PROG,8,3             ; @XDP_SETUP_PROG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver XDP disabled in DebugFS"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_XDP_SETUP_PROG_HW,8,3          ; @XDP_SETUP_PROG_HW
l_.str.1:                               ; @.str.1
	.asciz	"XDP offload disabled in DebugFS"

	.no_dead_strip	_nsim_xdp_set_prog
.subsections_via_symbols
