	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_check_eeprom
_ax88179_check_eeprom:                  ## @ax88179_check_eeprom
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	xorl	%ebx, %ebx
	movq	_AX_ACCESS_MAC@GOTPCREL(%rip), %r13
	movq	_AX_SROM_ADDR@GOTPCREL(%rip), %rcx
	leaq	-132(%rbp), %r14
	movq	_jiffies@GOTPCREL(%rip), %r12
	cltq
	movq	%rax, -152(%rbp)                ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%ebx, -132(%rbp)
	movl	(%r13), %esi
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_ax88179_write_cmd
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EEP_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	movl	(%r13), %esi
	movq	_AX_SROM_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_ax88179_write_cmd
	testq	%rax, %rax
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movslq	(%r12), %rbx
	addq	-152(%rbp), %rbx                ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	_AX_SROM_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_ax88179_read_cmd
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_EEP_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -132(%rbp)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	_AX_SROM_DATA_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	leaq	-128(,%rbx,8), %r9
	addq	%rbp, %r9
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movl	$2, %ecx
	movl	$2, %r8d
	callq	___ax88179_read_cmd
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$255, -128(%rbp)
	je	LBB0_10
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	$6, %rbx
	movq	_AX_SROM_ADDR@GOTPCREL(%rip), %rcx
	jne	LBB0_2
## %bb.9:
	movdqu	-104(%rbp), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	movzbl	%al, %ecx
	addl	-88(%rbp), %ecx
	sarl	$8, %eax
	addl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$255, %ecx
	je	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_AX_ACCESS_MAC,4,2              ## @AX_ACCESS_MAC
	.comm	_AX_SROM_ADDR,4,2               ## @AX_SROM_ADDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EEP_RD,4,2                     ## @EEP_RD
	.comm	_AX_SROM_CMD,4,2                ## @AX_SROM_CMD
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EEP_BUSY,4,2                   ## @EEP_BUSY
	.comm	_AX_SROM_DATA_LOW,4,2           ## @AX_SROM_DATA_LOW
	.no_dead_strip	_ax88179_check_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_check_eeprom
_ax88179_check_eeprom:                  ; @ax88179_check_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
Lloh6:
	adrp	x22, _AX_ACCESS_MAC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AX_ACCESS_MAC@GOTPAGEOFF]
Lloh8:
	adrp	x23, _AX_SROM_ADDR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _AX_SROM_ADDR@GOTPAGEOFF]
Lloh10:
	adrp	x24, _EEP_RD@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EEP_RD@GOTPAGEOFF]
Lloh12:
	adrp	x25, _AX_SROM_CMD@GOTPAGE
Lloh13:
	ldr	x25, [x25, _AX_SROM_CMD@GOTPAGEOFF]
Lloh14:
	adrp	x26, _jiffies@GOTPAGE
Lloh15:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	add	w27, w8, w9
Lloh16:
	adrp	x28, _EEP_BUSY@GOTPAGE
Lloh17:
	ldr	x28, [x28, _EEP_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	str	w21, [sp, #4]
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x5, sp, #4
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_ax88179_write_cmd
	tbnz	x0, #63, LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	str	w8, [sp, #4]
	ldr	w1, [x22]
	ldr	w2, [x25]
	add	x5, sp, #4
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_ax88179_write_cmd
	tbnz	x0, #63, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x8, [x26]
	add	x20, x8, w27, sxtw
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x22]
	ldr	w2, [x25]
	add	x5, sp, #4
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_ax88179_read_cmd
	ldr	w0, [x26]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [sp, #4]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _AX_SROM_DATA_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AX_SROM_DATA_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x8, sp, #8
	add	x5, x8, x21, lsl #3
	mov	x0, x19
	mov	w3, #2
	mov	w4, #2
	mov	w6, #0
	bl	___ax88179_read_cmd
	cbnz	x21, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #255
	b.eq	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	cmp	x21, #6
	b.ne	LBB0_1
; %bb.9:
	ldur	q0, [sp, #32]
	addv.4s	s0, v0
	fmov	w8, s0
	ldr	w9, [sp, #48]
	add	w9, w9, w8, uxtb
	add	w8, w9, w8, asr #8
	cmp	w8, #255
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldr	x8, [sp, #88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_AX_ACCESS_MAC,4,2              ; @AX_ACCESS_MAC
	.comm	_AX_SROM_ADDR,4,2               ; @AX_SROM_ADDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EEP_RD,4,2                     ; @EEP_RD
	.comm	_AX_SROM_CMD,4,2                ; @AX_SROM_CMD
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EEP_BUSY,4,2                   ; @EEP_BUSY
	.comm	_AX_SROM_DATA_LOW,4,2           ; @AX_SROM_DATA_LOW
	.no_dead_strip	_ax88179_check_eeprom
.subsections_via_symbols
