	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_vtu_load_vlan
_ar8327_vtu_load_vlan:                  ## @ar8327_vtu_load_vlan
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_AR8327_VTU_FUNC1_OP_LOAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AR8327_VTU_FUNC1_VID_S@GOTPCREL(%rip), %rax
	movq	_AR8327_VTU_FUNC0_VALID@GOTPCREL(%rip), %rcx
	movq	_AR8327_VTU_FUNC0_IVL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r12
	orq	(%rcx), %r12
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AR8327_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rbx
	movl	%r13d, %edi
	callq	_AR8327_VTU_FUNC0_EG_MODE_S
	movl	%eax, %ecx
	shlq	%cl, %rbx
	orq	%rbx, %r12
	incq	%r13
	movq	_AR8327_NUM_PORTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_BIT
	movq	_AR8327_VTU_FUNC0_EG_MODE_NOT@GOTPCREL(%rip), %rcx
	testq	%r14, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	movq	_AR8327_VTU_FUNC0_EG_MODE_KEEP@GOTPCREL(%rip), %rcx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	movq	8(%r15), %r14
	movl	%r13d, %edi
	callq	_BIT
	movq	_AR8327_VTU_FUNC0_EG_MODE_TAG@GOTPCREL(%rip), %rcx
	testq	%r14, %rax
	movq	%rbx, %r14
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rdx
	movq	_AR8327_VTU_FUNC0_EG_MODE_TAG@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rax,%rdx,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AR8327_VTU_FUNC0_EG_MODE_UNTAG@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	shlq	%cl, %rsi
	orq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	movq	%r12, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar8327_vtu_op                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8327_VTU_FUNC1_OP_LOAD,8,3   ## @AR8327_VTU_FUNC1_OP_LOAD
	.comm	_AR8327_VTU_FUNC1_VID_S,8,3     ## @AR8327_VTU_FUNC1_VID_S
	.comm	_AR8327_VTU_FUNC0_VALID,8,3     ## @AR8327_VTU_FUNC0_VALID
	.comm	_AR8327_VTU_FUNC0_IVL,8,3       ## @AR8327_VTU_FUNC0_IVL
	.comm	_AR8327_NUM_PORTS,4,2           ## @AR8327_NUM_PORTS
	.comm	_AR8327_VTU_FUNC0_EG_MODE_NOT,8,3 ## @AR8327_VTU_FUNC0_EG_MODE_NOT
	.comm	_AR8327_VTU_FUNC0_EG_MODE_KEEP,8,3 ## @AR8327_VTU_FUNC0_EG_MODE_KEEP
	.comm	_AR8327_VTU_FUNC0_EG_MODE_TAG,8,3 ## @AR8327_VTU_FUNC0_EG_MODE_TAG
	.comm	_AR8327_VTU_FUNC0_EG_MODE_UNTAG,8,3 ## @AR8327_VTU_FUNC0_EG_MODE_UNTAG
	.no_dead_strip	_ar8327_vtu_load_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_vtu_load_vlan
_ar8327_vtu_load_vlan:                  ; @ar8327_vtu_load_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AR8327_VTU_FUNC1_OP_LOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR8327_VTU_FUNC1_OP_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _AR8327_VTU_FUNC1_VID_S@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR8327_VTU_FUNC1_VID_S@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _AR8327_VTU_FUNC0_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR8327_VTU_FUNC0_VALID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _AR8327_VTU_FUNC0_IVL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AR8327_VTU_FUNC0_IVL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x22, x9, x8
Lloh12:
	adrp	x26, _AR8327_NUM_PORTS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _AR8327_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, x2
	mov	x23, #0
Lloh14:
	adrp	x27, _AR8327_VTU_FUNC0_EG_MODE_NOT@GOTPAGE
Lloh15:
	ldr	x27, [x27, _AR8327_VTU_FUNC0_EG_MODE_NOT@GOTPAGEOFF]
Lloh16:
	adrp	x28, _AR8327_VTU_FUNC0_EG_MODE_KEEP@GOTPAGE
Lloh17:
	ldr	x28, [x28, _AR8327_VTU_FUNC0_EG_MODE_KEEP@GOTPAGEOFF]
Lloh18:
	adrp	x24, _AR8327_VTU_FUNC0_EG_MODE_TAG@GOTPAGE
Lloh19:
	ldr	x24, [x24, _AR8327_VTU_FUNC0_EG_MODE_TAG@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x8]
	mov	x0, x23
	bl	_AR8327_VTU_FUNC0_EG_MODE_S
	lsl	x8, x25, x0
	orr	x22, x8, x22
	add	x23, x23, #1
	ldrsw	x8, [x26]
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT
	tst	x0, x21
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x19, #8]
	mov	x0, x23
	bl	_BIT
	mov	x8, x24
	tst	x0, x25
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x19, #16]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x20
Lloh20:
	adrp	x8, _AR8327_VTU_FUNC0_EG_MODE_UNTAG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR8327_VTU_FUNC0_EG_MODE_UNTAG@GOTPAGEOFF]
	csel	x8, x8, x24, eq
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x28
	b	LBB0_3
LBB0_9:
	ldp	x8, x9, [sp]                    ; 16-byte Folded Reload
	lsl	x8, x20, x8
	orr	x1, x8, x9
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ar8327_vtu_op
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8327_VTU_FUNC1_OP_LOAD,8,3   ; @AR8327_VTU_FUNC1_OP_LOAD
	.comm	_AR8327_VTU_FUNC1_VID_S,8,3     ; @AR8327_VTU_FUNC1_VID_S
	.comm	_AR8327_VTU_FUNC0_VALID,8,3     ; @AR8327_VTU_FUNC0_VALID
	.comm	_AR8327_VTU_FUNC0_IVL,8,3       ; @AR8327_VTU_FUNC0_IVL
	.comm	_AR8327_NUM_PORTS,4,2           ; @AR8327_NUM_PORTS
	.comm	_AR8327_VTU_FUNC0_EG_MODE_NOT,8,3 ; @AR8327_VTU_FUNC0_EG_MODE_NOT
	.comm	_AR8327_VTU_FUNC0_EG_MODE_KEEP,8,3 ; @AR8327_VTU_FUNC0_EG_MODE_KEEP
	.comm	_AR8327_VTU_FUNC0_EG_MODE_TAG,8,3 ; @AR8327_VTU_FUNC0_EG_MODE_TAG
	.comm	_AR8327_VTU_FUNC0_EG_MODE_UNTAG,8,3 ; @AR8327_VTU_FUNC0_EG_MODE_UNTAG
	.no_dead_strip	_ar8327_vtu_load_vlan
.subsections_via_symbols
