	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_pci_eeprom_read
_niu_pci_eeprom_read:                   ## @niu_pci_eeprom_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ESPC_PIO_STAT_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %r15d
	shll	%cl, %r15d
	movq	_ESPC_PIO_STAT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%cl, %eax
	cmpl	%esi, %eax
	jge	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rdi, %r14
	movq	_ESPC_PIO_STAT_READ_START@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_ESPC_PIO_STAT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_nw64
	movl	$-64, %ebx
	movq	_ESPC_PIO_STAT_READ_END@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %edi
	callq	_nr64
	movl	(%r13), %ecx
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %edx
	testl	%ebx, %ebx
	movl	%edx, %ebx
	jne	LBB0_4
LBB0_6:
	testl	%eax, %ecx
	je	LBB0_7
## %bb.8:
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_nw64
	movl	$-64, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %edi
	callq	_nr64
	movl	(%r13), %ecx
	testl	%eax, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%rbx), %edx
	testl	%ebx, %ebx
	movl	%edx, %ebx
	jne	LBB0_9
LBB0_11:
	testl	%eax, %ecx
	je	LBB0_7
## %bb.12:
	movl	(%r12), %edi
	callq	_nr64
	movq	_ESPC_PIO_STAT_DATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ESPC_PIO_STAT_DATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	jmp	LBB0_13
LBB0_7:
	movl	(%r14), %edi
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESPC_PIO_STAT_READ_START,4,2   ## @ESPC_PIO_STAT_READ_START
	.comm	_ESPC_PIO_STAT_ADDR_SHIFT,4,2   ## @ESPC_PIO_STAT_ADDR_SHIFT
	.comm	_ESPC_PIO_STAT_ADDR,4,2         ## @ESPC_PIO_STAT_ADDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESPC_PIO_STAT,4,2              ## @ESPC_PIO_STAT
	.comm	_ESPC_PIO_STAT_READ_END,4,2     ## @ESPC_PIO_STAT_READ_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read timeout frame[%llx]\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ESPC_PIO_STAT_DATA,4,2         ## @ESPC_PIO_STAT_DATA
	.comm	_ESPC_PIO_STAT_DATA_SHIFT,4,2   ## @ESPC_PIO_STAT_DATA_SHIFT
	.no_dead_strip	_niu_pci_eeprom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_pci_eeprom_read
_niu_pci_eeprom_read:                   ; @niu_pci_eeprom_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _ESPC_PIO_STAT_ADDR_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESPC_PIO_STAT_ADDR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ESPC_PIO_STAT_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ESPC_PIO_STAT_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w9, w9, w8
	cmp	w9, w1
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x19, x0
Lloh8:
	adrp	x9, _ESPC_PIO_STAT_READ_START@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ESPC_PIO_STAT_READ_START@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w8, w1, w8
	orr	w20, w8, w9
Lloh11:
	adrp	x21, _ESPC_PIO_STAT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ESPC_PIO_STAT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_nw64
	mov	w23, #-64
Lloh13:
	adrp	x22, _ESPC_PIO_STAT_READ_END@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ESPC_PIO_STAT_READ_END@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w0, [x21]
	bl	_nr64
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w23, #0, #4, eq
	add	w23, w23, #1
	b.ne	LBB0_3
; %bb.4:
	cbz	w8, LBB0_9
; %bb.5:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_nw64
	mov	w20, #-64
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w0, [x21]
	bl	_nr64
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, eq
	add	w20, w20, #1
	b.ne	LBB0_6
; %bb.7:
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w0, [x21]
	bl	_nr64
Lloh15:
	adrp	x8, _ESPC_PIO_STAT_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ESPC_PIO_STAT_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh18:
	adrp	x9, _ESPC_PIO_STAT_DATA_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ESPC_PIO_STAT_DATA_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w0, w8, w9
	b	LBB0_11
LBB0_9:
	ldr	w8, [x19]
	sxtw	x2, w0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ESPC_PIO_STAT_READ_START,4,2   ; @ESPC_PIO_STAT_READ_START
	.comm	_ESPC_PIO_STAT_ADDR_SHIFT,4,2   ; @ESPC_PIO_STAT_ADDR_SHIFT
	.comm	_ESPC_PIO_STAT_ADDR,4,2         ; @ESPC_PIO_STAT_ADDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESPC_PIO_STAT,4,2              ; @ESPC_PIO_STAT
	.comm	_ESPC_PIO_STAT_READ_END,4,2     ; @ESPC_PIO_STAT_READ_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read timeout frame[%llx]\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ESPC_PIO_STAT_DATA,4,2         ; @ESPC_PIO_STAT_DATA
	.comm	_ESPC_PIO_STAT_DATA_SHIFT,4,2   ; @ESPC_PIO_STAT_DATA_SHIFT
	.no_dead_strip	_niu_pci_eeprom_read
.subsections_via_symbols
