	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sungem_phy_read
___sungem_phy_read:                     ## @__sungem_phy_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	shll	$23, %esi
	movq	_MIF_FRAME_PHYAD@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	shll	$18, %edx
	movq	_MIF_FRAME_REGAD@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	orl	%esi, %edx
	movq	_MIF_FRAME_TAMSB@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$1610612736, %edx               ## imm = 0x60000000
	movq	_MIF_FRAME@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rdi), %rsi
	movl	%edx, %edi
	callq	_writel
	movl	$-9999, %ebx                    ## imm = 0xD8F1
	movq	_MIF_FRAME_TALSB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	$65535, %eax                    ## imm = 0xFFFF
LBB0_4:
	movq	_MIF_FRAME_DATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIF_FRAME_PHYAD,4,2            ## @MIF_FRAME_PHYAD
	.comm	_MIF_FRAME_REGAD,4,2            ## @MIF_FRAME_REGAD
	.comm	_MIF_FRAME_TAMSB,4,2            ## @MIF_FRAME_TAMSB
	.comm	_MIF_FRAME,8,3                  ## @MIF_FRAME
	.comm	_MIF_FRAME_TALSB,4,2            ## @MIF_FRAME_TALSB
	.comm	_MIF_FRAME_DATA,4,2             ## @MIF_FRAME_DATA
	.no_dead_strip	___sungem_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sungem_phy_read
___sungem_phy_read:                     ; @__sungem_phy_read
	.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	x19, x0
Lloh0:
	adrp	x8, _MIF_FRAME_PHYAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIF_FRAME_PHYAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1, lsl #23
Lloh3:
	adrp	x9, _MIF_FRAME_REGAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIF_FRAME_REGAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w2, lsl #18
Lloh6:
	adrp	x10, _MIF_FRAME_TAMSB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MIF_FRAME_TAMSB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w0, w8, #0x60000000
	ldr	x8, [x19]
Lloh9:
	adrp	x20, _MIF_FRAME@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MIF_FRAME@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w21, #-9999
Lloh11:
	adrp	x22, _MIF_FRAME_TALSB@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MIF_FRAME_TALSB@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	adds	w21, w21, #1
	b.lo	LBB0_1
; %bb.3:
	mov	w0, #65535
LBB0_4:
Lloh13:
	adrp	x8, _MIF_FRAME_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIF_FRAME_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w0, w8, w0
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MIF_FRAME_PHYAD,4,2            ; @MIF_FRAME_PHYAD
	.comm	_MIF_FRAME_REGAD,4,2            ; @MIF_FRAME_REGAD
	.comm	_MIF_FRAME_TAMSB,4,2            ; @MIF_FRAME_TAMSB
	.comm	_MIF_FRAME,8,3                  ; @MIF_FRAME
	.comm	_MIF_FRAME_TALSB,4,2            ; @MIF_FRAME_TALSB
	.comm	_MIF_FRAME_DATA,4,2             ; @MIF_FRAME_DATA
	.no_dead_strip	___sungem_phy_read
.subsections_via_symbols
