	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_set_phys_id
_hns_set_phys_id:                       ## @hns_set_phys_id
	.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, %ebx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r12), %r15
	addl	$-128, %ebx
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	cmpl	$3, %ebx
	ja	LBB0_20
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_HNS_LED_FORCE_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	cmpl	$3, %ebx
	ja	LBB0_20
## %bb.14:
	movq	8(%r14), %rdi
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_17:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_HNAE_LED_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_9:
	movq	_HNS_LED_FORCE_OFF@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hns_phy_led_set
	testl	%eax, %eax
	jne	LBB0_21
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_10:
	movq	_HNS_PHY_PAGE_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_HNS_PHY_PAGE_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movq	_HNS_LED_FC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_phy_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:
	movl	(%rbx), %esi
	movq	_HNS_PHY_PAGE_COPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_8
LBB0_3:
	movq	_HNS_PHY_PAGE_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_HNS_PHY_PAGE_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	movq	_HNS_LED_FC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_phy_read
	movl	%eax, (%r14)
	movl	(%rbx), %esi
	movq	_HNS_PHY_PAGE_COPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	movl	%eax, %ecx
	testl	%eax, %eax
	movl	$2, %eax
	cmovnel	%ecx, %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_HNAE_LED_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_19:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_HNAE_LED_INACTIVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_15:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_HNAE_LED_ACTIVE@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_3
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_18
	.long	L0_1_set_19
	.long	L0_1_set_15
	.end_data_region
                                        ## -- End function
	.comm	_HNS_PHY_PAGE_REG,4,2           ## @HNS_PHY_PAGE_REG
	.comm	_HNS_PHY_PAGE_LED,4,2           ## @HNS_PHY_PAGE_LED
	.comm	_HNS_LED_FC_REG,4,2             ## @HNS_LED_FC_REG
	.comm	_HNS_PHY_PAGE_COPPER,4,2        ## @HNS_PHY_PAGE_COPPER
	.comm	_HNS_LED_FORCE_ON,4,2           ## @HNS_LED_FORCE_ON
	.comm	_HNS_LED_FORCE_OFF,4,2          ## @HNS_LED_FORCE_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HNAE_LED_ACTIVE,4,2            ## @HNAE_LED_ACTIVE
	.comm	_HNAE_LED_ON,4,2                ## @HNAE_LED_ON
	.comm	_HNAE_LED_OFF,4,2               ## @HNAE_LED_OFF
	.comm	_HNAE_LED_INACTIVE,4,2          ## @HNAE_LED_INACTIVE
	.no_dead_strip	_hns_set_phys_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_set_phys_id
_hns_set_phys_id:                       ; @hns_set_phys_id
	.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	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x21]
	cbz	x19, LBB0_4
; %bb.1:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _HNS_LED_FORCE_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HNS_LED_FORCE_ON@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.5:
	ldr	x0, [x20, #8]
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x8]
Lloh6:
	adrp	x8, _HNAE_LED_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNAE_LED_ON@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_8:
Lloh11:
	adrp	x8, _HNS_LED_FORCE_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNS_LED_FORCE_OFF@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hns_phy_led_set
	cbnz	w0, LBB0_16
LBB0_10:
	mov	w0, #0
	b	LBB0_16
LBB0_11:
Lloh13:
	adrp	x21, _HNS_PHY_PAGE_REG@GOTPAGE
Lloh14:
	ldr	x21, [x21, _HNS_PHY_PAGE_REG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh15:
	adrp	x8, _HNS_PHY_PAGE_LED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNS_PHY_PAGE_LED@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	cbnz	w0, LBB0_16
; %bb.12:
Lloh18:
	adrp	x8, _HNS_LED_FC_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HNS_LED_FC_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_phy_write
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _HNS_PHY_PAGE_COPPER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNS_PHY_PAGE_COPPER@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	cbnz	w0, LBB0_16
	b	LBB0_10
LBB0_14:
Lloh24:
	adrp	x21, _HNS_PHY_PAGE_REG@GOTPAGE
Lloh25:
	ldr	x21, [x21, _HNS_PHY_PAGE_REG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _HNS_PHY_PAGE_LED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HNS_PHY_PAGE_LED@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	cbnz	w0, LBB0_16
; %bb.15:
Lloh29:
	adrp	x8, _HNS_LED_FC_REG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HNS_LED_FC_REG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	str	w0, [x20]
	ldr	w1, [x21]
Lloh32:
	adrp	x8, _HNS_PHY_PAGE_COPPER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HNS_PHY_PAGE_COPPER@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	mov	w8, #2
	cmp	w0, #0
	csel	w0, w8, w0, eq
LBB0_16:
	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
LBB0_17:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x8]
Lloh35:
	adrp	x8, _HNAE_LED_OFF@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HNAE_LED_OFF@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x8]
Lloh37:
	adrp	x8, _HNAE_LED_INACTIVE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HNAE_LED_INACTIVE@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x8]
Lloh39:
	adrp	x8, _HNAE_LED_ACTIVE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HNAE_LED_ACTIVE@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	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
	br	x2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_18-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
                                        ; -- End function
	.comm	_HNS_PHY_PAGE_REG,4,2           ; @HNS_PHY_PAGE_REG
	.comm	_HNS_PHY_PAGE_LED,4,2           ; @HNS_PHY_PAGE_LED
	.comm	_HNS_LED_FC_REG,4,2             ; @HNS_LED_FC_REG
	.comm	_HNS_PHY_PAGE_COPPER,4,2        ; @HNS_PHY_PAGE_COPPER
	.comm	_HNS_LED_FORCE_ON,4,2           ; @HNS_LED_FORCE_ON
	.comm	_HNS_LED_FORCE_OFF,4,2          ; @HNS_LED_FORCE_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HNAE_LED_ACTIVE,4,2            ; @HNAE_LED_ACTIVE
	.comm	_HNAE_LED_ON,4,2                ; @HNAE_LED_ON
	.comm	_HNAE_LED_OFF,4,2               ; @HNAE_LED_OFF
	.comm	_HNAE_LED_INACTIVE,4,2          ; @HNAE_LED_INACTIVE
	.no_dead_strip	_hns_set_phys_id
.subsections_via_symbols
