	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_bpf_setup_tc_block_cb     ## -- Begin function nsim_bpf_setup_tc_block_cb
	.p2align	4, 0x90
_nsim_bpf_setup_tc_block_cb:            ## @nsim_bpf_setup_tc_block_cb
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_TC_SETUP_CLSBPF@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_12
## %bb.1:
	movq	%rdx, %r14
	movq	8(%r15), %r12
	movl	16(%rdx), %edi
	leaq	16(%r15), %rbx
	movq	%rbx, %rsi
	callq	_tc_cls_can_offload_and_chain0
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	(%rbx), %rbx
	movq	_ETH_P_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.3:
	cmpl	$0, 12(%r14)
	je	LBB0_14
## %bb.4:
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, 8(%r14)
	je	LBB0_20
LBB0_7:
	movq	(%r15), %rax
	movq	_TC_CLSBPF_OFFLOAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.8:
	movq	8(%r15), %rsi
	movq	32(%r15), %rbx
	movq	(%r14), %rax
	cmpq	%rbx, %rax
	je	LBB0_19
## %bb.9:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.10:
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	movl	24(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_NSIM_EA
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_13:
	movl	24(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movl	24(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	callq	_NSIM_EA
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nsim_bpf_offload               ## TAILCALL
LBB0_20:
	movl	24(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_SETUP_CLSBPF,4,2            ## @TC_SETUP_CLSBPF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only offload of BPF classifiers supported"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_P_ALL,4,2                  ## @ETH_P_ALL
L_.str.1:                               ## @.str.1
	.asciz	"only ETH_P_ALL supported as filter protocol"

L_.str.2:                               ## @.str.2
	.asciz	"netdevsim configured to reject BPF TC offload"

L_.str.3:                               ## @.str.3
	.asciz	"netdevsim configured to reject unbound programs"

	.comm	_TC_CLSBPF_OFFLOAD,8,3          ## @TC_CLSBPF_OFFLOAD
L_.str.4:                               ## @.str.4
	.asciz	"driver and netdev offload states mismatch"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_bpf_setup_tc_block_cb     ; -- Begin function nsim_bpf_setup_tc_block_cb
	.p2align	2
_nsim_bpf_setup_tc_block_cb:            ; @nsim_bpf_setup_tc_block_cb
	.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, x1
Lloh0:
	adrp	x8, _TC_SETUP_CLSBPF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_SETUP_CLSBPF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_12
; %bb.1:
	mov	x19, x2
	ldr	x22, [x20, #8]
	ldr	w0, [x2, #16]
	add	x21, x20, #16
	mov	x1, x21
	bl	_tc_cls_can_offload_and_chain0
	cbz	w0, LBB0_16
; %bb.2:
	ldr	x21, [x21]
Lloh3:
	adrp	x8, _ETH_P_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_14
; %bb.4:
	cbz	x22, LBB0_7
; %bb.5:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_20
LBB0_7:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _TC_CLSBPF_OFFLOAD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TC_CLSBPF_OFFLOAD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.8:
	ldr	x2, [x20, #32]
	ldr	x8, [x19]
	ldr	x1, [x20, #8]
	cmp	x8, x2
	b.eq	LBB0_22
; %bb.9:
	cbz	x1, LBB0_19
; %bb.10:
	cbz	x8, LBB0_21
; %bb.11:
	ldr	w0, [x20, #24]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_NSIM_EA
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	ldr	w0, [x20, #24]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	w0, [x20, #24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	w0, [x20, #24]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	bl	_NSIM_EA
LBB0_16:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
LBB0_19:
	mov	w0, #0
	b	LBB0_18
LBB0_20:
	ldr	w0, [x20, #24]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_21:
	mov	x2, #0
LBB0_22:
	mov	x0, x19
	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
	b	_nsim_bpf_offload
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_SETUP_CLSBPF,4,2            ; @TC_SETUP_CLSBPF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only offload of BPF classifiers supported"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_P_ALL,4,2                  ; @ETH_P_ALL
l_.str.1:                               ; @.str.1
	.asciz	"only ETH_P_ALL supported as filter protocol"

l_.str.2:                               ; @.str.2
	.asciz	"netdevsim configured to reject BPF TC offload"

l_.str.3:                               ; @.str.3
	.asciz	"netdevsim configured to reject unbound programs"

	.comm	_TC_CLSBPF_OFFLOAD,8,3          ; @TC_CLSBPF_OFFLOAD
l_.str.4:                               ; @.str.4
	.asciz	"driver and netdev offload states mismatch"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
