	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sungem_phy_write
___sungem_phy_write:                    ## @__sungem_phy_write
	.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
	movq	_MIF_FRAME_DATA@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	orl	(%rax), %edx
	orl	%ecx, %edx
	orl	$1342177280, %edx               ## imm = 0x50000000
	movq	_MIF_FRAME@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rdi), %rsi
	movl	%edx, %edi
	callq	_writel
	movl	$-10000, %ebx                   ## imm = 0xD8F0
	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_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
LBB0_3:
	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_DATA,4,2             ## @MIF_FRAME_DATA
	.comm	_MIF_FRAME,8,3                  ## @MIF_FRAME
	.comm	_MIF_FRAME_TALSB,4,2            ## @MIF_FRAME_TALSB
	.no_dead_strip	___sungem_phy_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sungem_phy_write
___sungem_phy_write:                    ; @__sungem_phy_write
	.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]
Lloh9:
	adrp	x11, _MIF_FRAME_DATA@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MIF_FRAME_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	and	w11, w11, w3
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	mov	w9, #1342177280
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh12:
	adrp	x20, _MIF_FRAME@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MIF_FRAME@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w21, #-10000
Lloh14:
	adrp	x22, _MIF_FRAME_TALSB@GOTPAGE
Lloh15:
	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_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	adds	w21, w21, #1
	b.lo	LBB0_1
LBB0_3:
	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	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_DATA,4,2             ; @MIF_FRAME_DATA
	.comm	_MIF_FRAME,8,3                  ; @MIF_FRAME
	.comm	_MIF_FRAME_TALSB,4,2            ; @MIF_FRAME_TALSB
	.no_dead_strip	___sungem_phy_write
.subsections_via_symbols
