	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_dev_rif_type
_mlxsw_sp_dev_rif_type:                 ## @mlxsw_sp_dev_rif_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edx, %edx
	callq	_mlxsw_sp_netdev_ipip_type
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MLXSW_SP_RIF_TYPE_IPIP_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_vlan_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_vlan_dev_real_dev
	movq	%rax, %rdi
	callq	_netif_is_bridge_master
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_br_vlan_enabled
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_MLXSW_SP_FID_TYPE_8021Q@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_MLXSW_SP_FID_TYPE_RFID@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_MLXSW_SP_FID_TYPE_8021D@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mlxsw_sp_fid_type_rif_type     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_RIF_TYPE_IPIP_LB,4,2  ## @MLXSW_SP_RIF_TYPE_IPIP_LB
	.comm	_MLXSW_SP_FID_TYPE_8021Q,4,2    ## @MLXSW_SP_FID_TYPE_8021Q
	.comm	_MLXSW_SP_FID_TYPE_8021D,4,2    ## @MLXSW_SP_FID_TYPE_8021D
	.comm	_MLXSW_SP_FID_TYPE_RFID,4,2     ## @MLXSW_SP_FID_TYPE_RFID
	.no_dead_strip	_mlxsw_sp_dev_rif_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_dev_rif_type
_mlxsw_sp_dev_rif_type:                 ; @mlxsw_sp_dev_rif_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x2, #0
	bl	_mlxsw_sp_netdev_ipip_type
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MLXSW_SP_RIF_TYPE_IPIP_LB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_RIF_TYPE_IPIP_LB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x20
	bl	_is_vlan_dev
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_vlan_dev_real_dev
	bl	_netif_is_bridge_master
	cbnz	x0, LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_netif_is_bridge_master
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_br_vlan_enabled
	cbz	x0, LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _MLXSW_SP_FID_TYPE_8021Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_FID_TYPE_8021Q@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_netif_is_bridge_master
Lloh5:
	adrp	x8, _MLXSW_SP_FID_TYPE_8021D@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLXSW_SP_FID_TYPE_8021D@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MLXSW_SP_FID_TYPE_RFID@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MLXSW_SP_FID_TYPE_RFID@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlxsw_sp_fid_type_rif_type
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_RIF_TYPE_IPIP_LB,4,2  ; @MLXSW_SP_RIF_TYPE_IPIP_LB
	.comm	_MLXSW_SP_FID_TYPE_8021Q,4,2    ; @MLXSW_SP_FID_TYPE_8021Q
	.comm	_MLXSW_SP_FID_TYPE_8021D,4,2    ; @MLXSW_SP_FID_TYPE_8021D
	.comm	_MLXSW_SP_FID_TYPE_RFID,4,2     ; @MLXSW_SP_FID_TYPE_RFID
	.no_dead_strip	_mlxsw_sp_dev_rif_type
.subsections_via_symbols
