	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_vlan_ctrl               ## -- Begin function mt753x_vlan_ctrl
	.p2align	4, 0x90
_mt753x_vlan_ctrl:                      ## @mt753x_vlan_ctrl
	.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	%rdi, %r12
	movq	_VTCR@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_VTCR_BUSY@GOTPCREL(%rip), %r15
	movq	_VTCR_FUNC_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_VTCR_FUNC_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	orl	(%r15), %esi
	movq	_VTCR_VID_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%esi, %edx
	movl	%eax, %esi
	callq	_mt753x_reg_write
	movl	$300, %ebx                      ## imm = 0x12C
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_mt753x_reg_read
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VTCR,4,2                       ## @VTCR
	.comm	_VTCR_BUSY,4,2                  ## @VTCR_BUSY
	.comm	_VTCR_FUNC_S,4,2                ## @VTCR_FUNC_S
	.comm	_VTCR_FUNC_M,4,2                ## @VTCR_FUNC_M
	.comm	_VTCR_VID_M,4,2                 ## @VTCR_VID_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vtcr timeout\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_vlan_ctrl               ; -- Begin function mt753x_vlan_ctrl
	.p2align	2
_mt753x_vlan_ctrl:                      ; @mt753x_vlan_ctrl
	.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	x19, x0
Lloh0:
	adrp	x20, _VTCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VTCR@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _VTCR_BUSY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VTCR_BUSY@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	adrp	x10, _VTCR_FUNC_S@GOTPAGE
Lloh5:
	ldr	x10, [x10, _VTCR_FUNC_S@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	lsl	w10, w1, w10
Lloh7:
	adrp	x11, _VTCR_FUNC_M@GOTPAGE
Lloh8:
	ldr	x11, [x11, _VTCR_FUNC_M@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	and	w10, w10, w11
	orr	w9, w10, w9
Lloh10:
	adrp	x10, _VTCR_VID_M@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VTCR_VID_M@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	and	w10, w10, w2
	orr	w2, w9, w10
	mov	x1, x8
	bl	_mt753x_reg_write
	mov	w22, #300
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt753x_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #1100
	bl	_usleep_range
	subs	w22, w22, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_info
LBB0_4:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VTCR,4,2                       ; @VTCR
	.comm	_VTCR_BUSY,4,2                  ; @VTCR_BUSY
	.comm	_VTCR_FUNC_S,4,2                ; @VTCR_FUNC_S
	.comm	_VTCR_FUNC_M,4,2                ; @VTCR_FUNC_M
	.comm	_VTCR_VID_M,4,2                 ; @VTCR_VID_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vtcr timeout\n"

.subsections_via_symbols
