	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lb_setup
___lb_setup:                            ## @__lb_setup
	.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, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %r14
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.1:
	movq	8(%r12), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%esi, %esi
	callq	_hns_nic_config_phy_loopback
	testl	%eax, %eax
	jne	LBB0_23
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.4:
	movq	(%rbx), %rax
	movl	8(%rax), %eax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movl	$132, %esi
	xorl	%edx, %edx
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
LBB0_7:
	movq	%r14, %rdi
	movl	$130, %esi
	xorl	%edx, %edx
	jmp	LBB0_17
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_9:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.10:
	movq	%r14, %rdi
	movl	$130, %esi
	jmp	LBB0_16
LBB0_11:
	movl	$1, %esi
	callq	_hns_nic_config_phy_loopback
	testl	%eax, %eax
	jne	LBB0_23
## %bb.12:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	$131, %esi
	movl	$1, %edx
	callq	*(%rax)
	jmp	LBB0_18
LBB0_13:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.14:
	movl	8(%r14), %edx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_21
## %bb.15:
	movq	%r14, %rdi
	movl	$132, %esi
LBB0_16:
	movl	$1, %edx
LBB0_17:
	callq	*%rcx
LBB0_18:
	testl	%eax, %eax
	jne	LBB0_23
LBB0_19:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$129, %r15d
	jne	LBB0_21
## %bb.20:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%r12), %esi
	movq	%r14, %rdi
	jmp	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	movl	$1, %esi
LBB0_22:
	callq	*8(%rax)
	xorl	%eax, %eax
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,4,2   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.no_dead_strip	___lb_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lb_setup
___lb_setup:                            ; @__lb_setup
	.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	x20, x0
	bl	_netdev_priv
	ldr	x19, [x0]
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w1, #0
	bl	_hns_nic_config_phy_loopback
	cbnz	w0, LBB0_22
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.4:
	ldr	x9, [x22]
	ldr	w9, [x9, #8]
Lloh2:
	adrp	x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #132
	mov	w2, #0
	blr	x8
	cbnz	w0, LBB0_22
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
LBB0_7:
	mov	x0, x19
	mov	w1, #130
	mov	w2, #0
	blr	x8
	b	LBB0_17
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_20
; %bb.10:
	mov	x0, x19
	mov	w1, #130
	b	LBB0_16
LBB0_11:
	mov	w1, #1
	bl	_hns_nic_config_phy_loopback
	cbnz	w0, LBB0_22
; %bb.12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #131
	mov	w2, #1
	blr	x8
	b	LBB0_17
LBB0_13:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_20
; %bb.14:
	ldr	w10, [x19, #8]
Lloh8:
	adrp	x11, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w10, w11
	b.eq	LBB0_20
; %bb.15:
	mov	x0, x19
	mov	w1, #132
LBB0_16:
	mov	w2, #1
	blr	x9
LBB0_17:
	cbnz	w0, LBB0_22
LBB0_18:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	w21, #129
	b.ne	LBB0_20
; %bb.19:
	ldr	x8, [x8, #8]
	ldr	w9, [x20]
Lloh11:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w1, w10, w9
	mov	x0, x19
	b	LBB0_21
LBB0_20:
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #1
LBB0_21:
	blr	x8
	mov	w0, #0
LBB0_22:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,4,2   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.no_dead_strip	___lb_setup
.subsections_via_symbols
