	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_ndo_bridge_getlink
_be_ndo_bridge_getlink:                 ## @be_ndo_bridge_getlink
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_BEx_chip
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movl	4(%r12), %edi
	callq	_pci_sriov_get_totalvfs
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	movq	_PORT_FWD_TYPE_VEB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
LBB0_7:
	movq	_PORT_FWD_TYPE_VEPA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	movq	_BRIDGE_MODE_VEB@GOTPCREL(%rip), %rax
LBB0_10:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rax), %r8d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r14
	pushq	%rbx
	pushq	$0
	callq	_ndo_dflt_bridge_getlink
	addq	$32, %rsp
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	movl	(%r12), %ecx
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_be_cmd_get_hsw_config
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	-64(%rbp), %rax
	movq	_PORT_FWD_TYPE_PASSTHRU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_FWD_TYPE_VEB,8,3          ## @PORT_FWD_TYPE_VEB
	.comm	_PORT_FWD_TYPE_PASSTHRU,8,3     ## @PORT_FWD_TYPE_PASSTHRU
	.comm	_PORT_FWD_TYPE_VEPA,8,3         ## @PORT_FWD_TYPE_VEPA
	.comm	_BRIDGE_MODE_VEPA,4,2           ## @BRIDGE_MODE_VEPA
	.comm	_BRIDGE_MODE_VEB,4,2            ## @BRIDGE_MODE_VEB
	.no_dead_strip	_be_ndo_bridge_getlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_ndo_bridge_getlink
_be_ndo_bridge_getlink:                 ; @be_ndo_bridge_getlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	mov	x0, x3
	bl	_netdev_priv
	mov	x25, x0
	bl	_BEx_chip
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x25
	bl	_lancer_chip
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w0, [x25, #4]
	bl	_pci_sriov_get_totalvfs
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _PORT_FWD_TYPE_VEB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_FWD_TYPE_VEB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
LBB0_4:
Lloh3:
	adrp	x9, _PORT_FWD_TYPE_VEPA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORT_FWD_TYPE_VEPA@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BRIDGE_MODE_VEPA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BRIDGE_MODE_VEPA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x11, _BRIDGE_MODE_VEB@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BRIDGE_MODE_VEB@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w4, [x8]
	str	xzr, [sp, #8]
	str	w23, [sp]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	w5, #0
	mov	w6, #0
	mov	x7, x19
	bl	_ndo_dflt_bridge_getlink
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	w3, [x25]
	add	x4, sp, #24
	mov	x0, x25
	mov	x1, #0
	mov	w2, #0
	mov	x5, #0
	bl	_be_cmd_get_hsw_config
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_5
; %bb.7:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, _PORT_FWD_TYPE_PASSTHRU@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PORT_FWD_TYPE_PASSTHRU@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_FWD_TYPE_VEB,8,3          ; @PORT_FWD_TYPE_VEB
	.comm	_PORT_FWD_TYPE_PASSTHRU,8,3     ; @PORT_FWD_TYPE_PASSTHRU
	.comm	_PORT_FWD_TYPE_VEPA,8,3         ; @PORT_FWD_TYPE_VEPA
	.comm	_BRIDGE_MODE_VEPA,4,2           ; @BRIDGE_MODE_VEPA
	.comm	_BRIDGE_MODE_VEB,4,2            ; @BRIDGE_MODE_VEB
	.no_dead_strip	_be_ndo_bridge_getlink
.subsections_via_symbols
