	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arasan_phy_read
_arasan_phy_read:                       ## @arasan_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	%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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_PHY_DAT_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_sdhci_writew
	movq	_PHY_ADDR_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sdhci_writew
	movl	(%r13), %esi
	movq	_PHY_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_arasan_phy_addr_poll
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_DATA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_DAT_REG,4,2                ## @PHY_DAT_REG
	.comm	_PHY_ADDR_REG,4,2               ## @PHY_ADDR_REG
	.comm	_PHY_BUSY,4,2                   ## @PHY_BUSY
	.comm	_DATA_MASK,4,2                  ## @DATA_MASK
	.no_dead_strip	_arasan_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arasan_phy_read
_arasan_phy_read:                       ; @arasan_phy_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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _PHY_DAT_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PHY_DAT_REG@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_sdhci_writew
Lloh2:
	adrp	x23, _PHY_ADDR_REG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PHY_ADDR_REG@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x20
	bl	_sdhci_writew
	ldr	w1, [x23]
Lloh4:
	adrp	x8, _PHY_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PHY_BUSY@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_arasan_phy_addr_poll
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x21
	bl	_sdhci_readw
Lloh7:
	adrp	x8, _DATA_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DATA_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
	mov	x0, x20
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_DAT_REG,4,2                ; @PHY_DAT_REG
	.comm	_PHY_ADDR_REG,4,2               ; @PHY_ADDR_REG
	.comm	_PHY_BUSY,4,2                   ; @PHY_BUSY
	.comm	_DATA_MASK,4,2                  ; @DATA_MASK
	.no_dead_strip	_arasan_phy_read
.subsections_via_symbols
