	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_get_tag_protocol           ## -- Begin function b53_get_tag_protocol
	.p2align	4, 0x90
_b53_get_tag_protocol:                  ## @b53_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_is5325
	movq	_DSA_TAG_PROTO_NONE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_is5365
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_is539x
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_is531x5
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_b53_can_enable_brcm_tags
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	movq	_BCM58XX_DEVICE_ID@GOTPCREL(%rip), %rcx
	movq	_B53_CPU_PORT@GOTPCREL(%rip), %rsi
	movq	_DSA_TAG_PROTO_BRCM@GOTPCREL(%rip), %r12
	movq	%r12, %rdx
	cmpl	%r14d, (%rsi)
	jne	LBB0_7
## %bb.6:
	movq	_DSA_TAG_PROTO_BRCM_PREPEND@GOTPCREL(%rip), %rdx
LBB0_7:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %r12
LBB0_8:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_TAG_PROTO_NONE,4,2         ## @DSA_TAG_PROTO_NONE
	.comm	_BCM58XX_DEVICE_ID,8,3          ## @BCM58XX_DEVICE_ID
	.comm	_B53_CPU_PORT,4,2               ## @B53_CPU_PORT
	.comm	_DSA_TAG_PROTO_BRCM_PREPEND,4,2 ## @DSA_TAG_PROTO_BRCM_PREPEND
	.comm	_DSA_TAG_PROTO_BRCM,4,2         ## @DSA_TAG_PROTO_BRCM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_get_tag_protocol           ; -- Begin function b53_get_tag_protocol
	.p2align	2
_b53_get_tag_protocol:                  ; @b53_get_tag_protocol
	.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, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_is5325
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_is5365
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_is539x
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_is531x5
	cbz	x0, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _DSA_TAG_PROTO_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSA_TAG_PROTO_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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_6:
	mov	x0, x21
	mov	x1, x19
	bl	_b53_can_enable_brcm_tags
	cbz	w0, LBB0_4
; %bb.7:
Lloh2:
	adrp	x8, _BCM58XX_DEVICE_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCM58XX_DEVICE_ID@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _B53_CPU_PORT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _B53_CPU_PORT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w10, w19
	ccmp	x9, x8, #0, eq
Lloh8:
	adrp	x8, _DSA_TAG_PROTO_BRCM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSA_TAG_PROTO_BRCM@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DSA_TAG_PROTO_BRCM_PREPEND@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DSA_TAG_PROTO_BRCM_PREPEND@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_TAG_PROTO_NONE,4,2         ; @DSA_TAG_PROTO_NONE
	.comm	_BCM58XX_DEVICE_ID,8,3          ; @BCM58XX_DEVICE_ID
	.comm	_B53_CPU_PORT,4,2               ; @B53_CPU_PORT
	.comm	_DSA_TAG_PROTO_BRCM_PREPEND,4,2 ; @DSA_TAG_PROTO_BRCM_PREPEND
	.comm	_DSA_TAG_PROTO_BRCM,4,2         ; @DSA_TAG_PROTO_BRCM
.subsections_via_symbols
