	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_hash_opts
_niu_get_hash_opts:                     ## @niu_get_hash_opts
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, (%rsi)
	movl	8(%rsi), %edi
	leaq	-24(%rbp), %rsi
	callq	_niu_ethflow_to_class
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rcx
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rsi
	subq	(%rsi), %rcx
	movq	_TCAM_KEY_DISC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx,%rcx,4)
	je	LBB0_4
## %bb.3:
	movq	_RXH_DISCARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	callq	_niu_flowkey_to_ethflow
LBB0_5:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLASS_CODE_USER_PROG1,8,3      ## @CLASS_CODE_USER_PROG1
	.comm	_TCAM_KEY_DISC,4,2              ## @TCAM_KEY_DISC
	.comm	_RXH_DISCARD,8,3                ## @RXH_DISCARD
	.no_dead_strip	_niu_get_hash_opts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_get_hash_opts
_niu_get_hash_opts:                     ; @niu_get_hash_opts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
	ldr	w0, [x1, #8]
	add	x1, sp, #8
	bl	_niu_ethflow_to_class
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x10, [x8]
	ldr	x9, [sp, #8]
Lloh0:
	adrp	x11, _CLASS_CODE_USER_PROG1@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CLASS_CODE_USER_PROG1@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	sub	x9, x9, x11
	ldr	w10, [x10, x9, lsl #2]
Lloh3:
	adrp	x11, _TCAM_KEY_DISC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TCAM_KEY_DISC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _RXH_DISCARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXH_DISCARD@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_niu_flowkey_to_ethflow
	mov	x8, x0
LBB0_5:
	mov	w0, #0
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLASS_CODE_USER_PROG1,8,3      ; @CLASS_CODE_USER_PROG1
	.comm	_TCAM_KEY_DISC,4,2              ; @TCAM_KEY_DISC
	.comm	_RXH_DISCARD,8,3                ; @RXH_DISCARD
	.no_dead_strip	_niu_get_hash_opts
.subsections_via_symbols
