	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_convert_old_led
_ax88179_convert_old_led:               ## @ax88179_convert_old_led
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_AX_ACCESS_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %r9
	movl	$60, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	callq	_ax88179_read_cmd
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-12(%rbp), %eax
	sarl	$8, %eax
	addl	$-252, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_LED0_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_LED1_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_LED1_LINK_1000@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_LED2_ACTIVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movq	_LED0_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_LED1_LINK_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_LED1_LINK_100@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_LED1_LINK_1000@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_LED2_ACTIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_LED2_LINK_10@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_LED2_LINK_1000@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	movq	_LED0_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_LED1_LINK_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	(%rcx), %eax
	movq	_LED2_LINK_10@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	_LED2_LINK_100@GOTPCREL(%rip), %rdx
	jmp	LBB0_10
LBB0_4:
	movq	_LED1_LINK_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LED2_LINK_100@GOTPCREL(%rip), %rcx
	movq	_LED0_ACTIVE@GOTPCREL(%rip), %rdx
LBB0_10:
	orl	(%rdx), %eax
	orl	(%rcx), %eax
	movq	_LED_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_AX_ACCESS_EEPROM,4,2           ## @AX_ACCESS_EEPROM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LED0_ACTIVE,4,2                ## @LED0_ACTIVE
	.comm	_LED1_LINK_10,4,2               ## @LED1_LINK_10
	.comm	_LED1_LINK_100,4,2              ## @LED1_LINK_100
	.comm	_LED1_LINK_1000,4,2             ## @LED1_LINK_1000
	.comm	_LED2_ACTIVE,4,2                ## @LED2_ACTIVE
	.comm	_LED2_LINK_10,4,2               ## @LED2_LINK_10
	.comm	_LED2_LINK_100,4,2              ## @LED2_LINK_100
	.comm	_LED2_LINK_1000,4,2             ## @LED2_LINK_1000
	.comm	_LED_VALID,4,2                  ## @LED_VALID
	.comm	_LED1_ACTIVE,4,2                ## @LED1_ACTIVE
	.no_dead_strip	_ax88179_convert_old_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_convert_old_led
_ax88179_convert_old_led:               ; @ax88179_convert_old_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _AX_ACCESS_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_ACCESS_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	w2, #60
	mov	w3, #1
	mov	w4, #2
	bl	_ax88179_read_cmd
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	sub	w8, w8, #252
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _LED0_ACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED0_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _LED1_ACTIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LED1_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _LED1_LINK_1000@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LED1_LINK_1000@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _LED2_ACTIVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LED2_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
Lloh20:
	adrp	x8, _LED0_ACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LED0_ACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _LED1_LINK_10@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LED1_LINK_10@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _LED1_LINK_100@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LED1_LINK_100@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _LED1_LINK_1000@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LED1_LINK_1000@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _LED2_ACTIVE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LED2_ACTIVE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _LED2_LINK_10@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LED2_LINK_10@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh38:
	adrp	x9, _LED2_LINK_1000@GOTPAGE
Lloh39:
	ldr	x9, [x9, _LED2_LINK_1000@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh40:
	adrp	x8, _LED0_ACTIVE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LED0_ACTIVE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _LED1_LINK_1000@GOTPAGE
Lloh44:
	ldr	x9, [x9, _LED1_LINK_1000@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_7:
Lloh46:
	adrp	x9, _LED2_LINK_10@GOTPAGE
Lloh47:
	ldr	x9, [x9, _LED2_LINK_10@GOTPAGEOFF]
LBB0_8:
Lloh48:
	adrp	x10, _LED2_LINK_100@GOTPAGE
Lloh49:
	ldr	x10, [x10, _LED2_LINK_100@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh50:
	adrp	x8, _LED1_LINK_1000@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LED1_LINK_1000@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _LED2_LINK_100@GOTPAGE
Lloh54:
	ldr	x9, [x9, _LED2_LINK_100@GOTPAGEOFF]
Lloh55:
	adrp	x10, _LED0_ACTIVE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _LED0_ACTIVE@GOTPAGEOFF]
LBB0_10:
	mov	w0, #0
	ldr	w10, [x10]
	orr	w8, w8, w10
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh57:
	adrp	x9, _LED_VALID@GOTPAGE
Lloh58:
	ldr	x9, [x9, _LED_VALID@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_AX_ACCESS_EEPROM,4,2           ; @AX_ACCESS_EEPROM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LED0_ACTIVE,4,2                ; @LED0_ACTIVE
	.comm	_LED1_LINK_10,4,2               ; @LED1_LINK_10
	.comm	_LED1_LINK_100,4,2              ; @LED1_LINK_100
	.comm	_LED1_LINK_1000,4,2             ; @LED1_LINK_1000
	.comm	_LED2_ACTIVE,4,2                ; @LED2_ACTIVE
	.comm	_LED2_LINK_10,4,2               ; @LED2_LINK_10
	.comm	_LED2_LINK_100,4,2              ; @LED2_LINK_100
	.comm	_LED2_LINK_1000,4,2             ; @LED2_LINK_1000
	.comm	_LED_VALID,4,2                  ; @LED_VALID
	.comm	_LED1_ACTIVE,4,2                ; @LED1_ACTIVE
	.no_dead_strip	_ax88179_convert_old_led
.subsections_via_symbols
