	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_read_raw_otp
_lan78xx_read_raw_otp:                  ## @lan78xx_read_raw_otp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_OTP_PWR_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_lan78xx_read_reg
	movq	_OTP_PWR_DN_PWRDN_N_@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_6
## %bb.1:
	movq	_OTP_PWR_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lan78xx_write_reg
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	(%r12), %r14
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$10, %esi
	callq	_usleep_range
	movq	_OTP_PWR_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_lan78xx_read_reg
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_2
LBB0_6:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	movl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	_OTP_ADDR1@GOTPCREL(%rip), %rdx
	movq	_OTP_ADDR1_15_11@GOTPCREL(%rip), %rdi
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_OTP_STATUS@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%rdx), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax), %ebx
	movl	%ebx, %edx
	sarl	$8, %edx
	andl	(%rdi), %edx
	movq	%r15, %rdi
	callq	_lan78xx_write_reg
	movq	_OTP_ADDR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTP_ADDR2_10_3@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_lan78xx_write_reg
	movq	_OTP_FUNC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTP_FUNC_CMD_READ_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_lan78xx_write_reg
	movq	_OTP_CMD_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTP_CMD_GO_GO_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_lan78xx_write_reg
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%r12), %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_lan78xx_read_reg
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_OTP_STATUS_BUSY_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_OTP_RD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_lan78xx_read_reg
	movzbl	-44(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	%rdx, %rcx
	incq	%rcx
	xorl	%eax, %eax
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	_OTP_ADDR1@GOTPCREL(%rip), %rdx
	movq	_OTP_ADDR1_15_11@GOTPCREL(%rip), %rdi
	jne	LBB0_9
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	(%r15), %edi
	callq	_netdev_warn
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_7:
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTP_PWR_DN,4,2                 ## @OTP_PWR_DN
	.comm	_OTP_PWR_DN_PWRDN_N_,4,2        ## @OTP_PWR_DN_PWRDN_N_
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout on OTP_PWR_DN"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_OTP_ADDR1,4,2                  ## @OTP_ADDR1
	.comm	_OTP_ADDR1_15_11,4,2            ## @OTP_ADDR1_15_11
	.comm	_OTP_ADDR2,4,2                  ## @OTP_ADDR2
	.comm	_OTP_ADDR2_10_3,4,2             ## @OTP_ADDR2_10_3
	.comm	_OTP_FUNC_CMD,4,2               ## @OTP_FUNC_CMD
	.comm	_OTP_FUNC_CMD_READ_,4,2         ## @OTP_FUNC_CMD_READ_
	.comm	_OTP_CMD_GO,4,2                 ## @OTP_CMD_GO
	.comm	_OTP_CMD_GO_GO_,4,2             ## @OTP_CMD_GO_GO_
	.comm	_OTP_STATUS,4,2                 ## @OTP_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"timeout on OTP_STATUS"

	.comm	_OTP_STATUS_BUSY_,4,2           ## @OTP_STATUS_BUSY_
	.comm	_OTP_RD_DATA,4,2                ## @OTP_RD_DATA
	.no_dead_strip	_lan78xx_read_raw_otp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_read_raw_otp
_lan78xx_read_raw_otp:                  ; @lan78xx_read_raw_otp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x3
	mov	x26, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _OTP_PWR_DN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OTP_PWR_DN@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x2, sp, #44
	bl	_lan78xx_read_reg
	ldr	w8, [sp, #44]
Lloh2:
	adrp	x28, _OTP_PWR_DN_PWRDN_N_@GOTPAGE
Lloh3:
	ldr	x28, [x28, _OTP_PWR_DN_PWRDN_N_@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh4:
	adrp	x25, _jiffies@GOTPAGE
Lloh5:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
Lloh6:
	adrp	x22, _HZ@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_lan78xx_write_reg
	ldr	x8, [x25]
	ldr	x9, [x22]
	add	x24, x9, x8
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #10
	bl	_usleep_range
	ldr	w1, [x27]
	add	x2, sp, #44
	mov	x0, x19
	bl	_lan78xx_read_reg
	ldr	x0, [x25]
	mov	x1, x24
	bl	_time_after
	cbnz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #44]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_4:
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.5:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x11, #0
Lloh10:
	adrp	x8, _OTP_ADDR1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OTP_ADDR1@GOTPAGEOFF]
Lloh12:
	adrp	x9, _OTP_ADDR1_15_11@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OTP_ADDR1_15_11@GOTPAGEOFF]
Lloh14:
	adrp	x21, _OTP_ADDR2@GOTPAGE
Lloh15:
	ldr	x21, [x21, _OTP_ADDR2@GOTPAGEOFF]
	mov	w10, w26
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
Lloh16:
	adrp	x22, _OTP_ADDR2_10_3@GOTPAGE
Lloh17:
	ldr	x22, [x22, _OTP_ADDR2_10_3@GOTPAGEOFF]
Lloh18:
	adrp	x24, _OTP_FUNC_CMD_READ_@GOTPAGE
Lloh19:
	ldr	x24, [x24, _OTP_FUNC_CMD_READ_@GOTPAGEOFF]
Lloh20:
	adrp	x26, _OTP_CMD_GO@GOTPAGE
Lloh21:
	ldr	x26, [x26, _OTP_CMD_GO@GOTPAGEOFF]
Lloh22:
	adrp	x20, _OTP_CMD_GO_GO_@GOTPAGE
Lloh23:
	ldr	x20, [x20, _OTP_CMD_GO_GO_@GOTPAGEOFF]
Lloh24:
	adrp	x27, _OTP_STATUS@GOTPAGE
Lloh25:
	ldr	x27, [x27, _OTP_STATUS@GOTPAGEOFF]
Lloh26:
	adrp	x28, _OTP_STATUS_BUSY_@GOTPAGE
Lloh27:
	ldr	x28, [x28, _OTP_STATUS_BUSY_@GOTPAGEOFF]
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w1, [x8]
	str	x11, [sp, #32]                  ; 8-byte Folded Spill
	add	w23, w11, w23
	ldr	w8, [x9]
	and	w2, w8, w23, asr #8
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w1, [x21]
	ldr	w8, [x22]
	and	w2, w8, w23
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh28:
	adrp	x8, _OTP_FUNC_CMD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OTP_FUNC_CMD@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w1, [x26]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	x8, [x25]
Lloh31:
	adrp	x9, _HZ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x23, x9, x8
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x27]
	add	x2, sp, #44
	mov	x0, x19
	bl	_lan78xx_read_reg
	ldr	x0, [x25]
	mov	x1, x23
	bl	_time_after
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [sp, #44]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh34:
	adrp	x8, _OTP_RD_DATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OTP_RD_DATA@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x2, sp, #44
	mov	x0, x19
	bl	_lan78xx_read_reg
	mov	w0, #0
	ldrb	w8, [sp, #44]
	ldp	x9, x11, [sp, #24]              ; 16-byte Folded Reload
	str	x8, [x9, x11, lsl #3]
	add	x11, x11, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x11, x8
Lloh37:
	adrp	x8, _OTP_ADDR1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _OTP_ADDR1@GOTPAGEOFF]
Lloh39:
	adrp	x9, _OTP_ADDR1_15_11@GOTPAGE
Lloh40:
	ldr	x9, [x9, _OTP_ADDR1_15_11@GOTPAGEOFF]
Lloh41:
	adrp	x21, _OTP_ADDR2@GOTPAGE
Lloh42:
	ldr	x21, [x21, _OTP_ADDR2@GOTPAGEOFF]
	ldr	w23, [sp, #20]                  ; 4-byte Folded Reload
	b.ne	LBB0_6
	b	LBB0_13
LBB0_10:
Lloh43:
	adrp	x21, l_.str.1@PAGE
Lloh44:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_11:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_netdev_warn
Lloh45:
	adrp	x8, _EIO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_OTP_PWR_DN,4,2                 ; @OTP_PWR_DN
	.comm	_OTP_PWR_DN_PWRDN_N_,4,2        ; @OTP_PWR_DN_PWRDN_N_
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout on OTP_PWR_DN"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_OTP_ADDR1,4,2                  ; @OTP_ADDR1
	.comm	_OTP_ADDR1_15_11,4,2            ; @OTP_ADDR1_15_11
	.comm	_OTP_ADDR2,4,2                  ; @OTP_ADDR2
	.comm	_OTP_ADDR2_10_3,4,2             ; @OTP_ADDR2_10_3
	.comm	_OTP_FUNC_CMD,4,2               ; @OTP_FUNC_CMD
	.comm	_OTP_FUNC_CMD_READ_,4,2         ; @OTP_FUNC_CMD_READ_
	.comm	_OTP_CMD_GO,4,2                 ; @OTP_CMD_GO
	.comm	_OTP_CMD_GO_GO_,4,2             ; @OTP_CMD_GO_GO_
	.comm	_OTP_STATUS,4,2                 ; @OTP_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"timeout on OTP_STATUS"

	.comm	_OTP_STATUS_BUSY_,4,2           ; @OTP_STATUS_BUSY_
	.comm	_OTP_RD_DATA,4,2                ; @OTP_RD_DATA
	.no_dead_strip	_lan78xx_read_raw_otp
.subsections_via_symbols
