	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_get_tag_protocol
_mtk_get_tag_protocol:                  ## @mtk_get_tag_protocol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MT7530_CPU_PORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_DSA_TAG_PROTO_MTK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_DSA_TAG_PROTO_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT7530_CPU_PORT,4,2            ## @MT7530_CPU_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port not matched with tagging CPU port\n"

	.comm	_DSA_TAG_PROTO_NONE,4,2         ## @DSA_TAG_PROTO_NONE
	.comm	_DSA_TAG_PROTO_MTK,4,2          ## @DSA_TAG_PROTO_MTK
	.no_dead_strip	_mtk_get_tag_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_get_tag_protocol
_mtk_get_tag_protocol:                  ; @mtk_get_tag_protocol
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MT7530_CPU_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT7530_CPU_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DSA_TAG_PROTO_MTK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSA_TAG_PROTO_MTK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh7:
	adrp	x8, _DSA_TAG_PROTO_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSA_TAG_PROTO_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MT7530_CPU_PORT,4,2            ; @MT7530_CPU_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port not matched with tagging CPU port\n"

	.comm	_DSA_TAG_PROTO_NONE,4,2         ; @DSA_TAG_PROTO_NONE
	.comm	_DSA_TAG_PROTO_MTK,4,2          ; @DSA_TAG_PROTO_MTK
	.no_dead_strip	_mtk_get_tag_protocol
.subsections_via_symbols
