	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lb_up
___lb_up:                               ## @__lb_up
	.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, %r12d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_hns_nic_net_reset
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	___lb_setup
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	$200, %edi
	callq	_msleep
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	$10000, %eax                    ## imm = 0x2710
	movl	$1000, %esi                     ## imm = 0x3E8
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*8(%rcx)
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_NIC_LB_TEST_WAIT_PHY_LINK_TIME,4,2 ## @NIC_LB_TEST_WAIT_PHY_LINK_TIME
	.no_dead_strip	___lb_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lb_up
___lb_up:                               ; @__lb_up
	.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	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x22
	bl	_hns_nic_net_reset
	mov	x0, x22
	mov	x1, x21
	bl	___lb_setup
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #200
	bl	_msleep
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x0, x19
	blr	x9
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
LBB0_4:
	ldr	x9, [x20]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #1000
	mov	w10, #10000
	csel	w1, w10, w9, eq
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	mov	w0, #300
	bl	_msleep
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_NIC_LB_TEST_WAIT_PHY_LINK_TIME,4,2 ; @NIC_LB_TEST_WAIT_PHY_LINK_TIME
	.no_dead_strip	___lb_up
.subsections_via_symbols
