	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_rif_vlan_fid_get
_mlxsw_sp_rif_vlan_fid_get:             ## @mlxsw_sp_rif_vlan_fid_get
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_is_vlan_dev
	movq	8(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	callq	_vlan_dev_vlan_id
	movl	%eax, %r12d
	movl	%eax, -36(%rbp)
	movq	8(%r15), %rdi
	callq	_vlan_dev_real_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netif_is_bridge_master
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	leaq	-36(%rbp), %rsi
	callq	_br_vlan_get_pvid
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	-36(%rbp), %r12d
	testl	%r12d, %r12d
	je	LBB0_5
LBB0_6:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_mlxsw_sp_bridge_fid_get
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't determine bridge PVID"

	.no_dead_strip	_mlxsw_sp_rif_vlan_fid_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_rif_vlan_fid_get
_mlxsw_sp_rif_vlan_fid_get:             ; @mlxsw_sp_rif_vlan_fid_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_is_vlan_dev
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_vlan_dev_vlan_id
	mov	x22, x0
	str	w0, [sp, #12]
	ldr	x0, [x20, #8]
	bl	_vlan_dev_real_dev
	mov	x21, x0
	bl	_netif_is_bridge_master
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ERR_PTR
LBB0_3:
	add	x1, sp, #12
	bl	_br_vlan_get_pvid
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w22, [sp, #12]
	cbz	w22, LBB0_6
LBB0_5:
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_mlxsw_sp_bridge_fid_get
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't determine bridge PVID"

	.no_dead_strip	_mlxsw_sp_rif_vlan_fid_get
.subsections_via_symbols
