	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_add_phy
_xenon_add_phy:                         ## @xenon_add_phy
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	movq	_phy_types@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NR_PHY_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_match_string
	movq	%rax, (%r15)
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_dev_err
	movq	_EMMC_5_1_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_2:
	movq	%rbx, %rdi
	callq	_xenon_alloc_emmc_phy
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xenon_emmc_phy_parse_param_dt  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_types,4,2                  ## @phy_types
	.comm	_NR_PHY_TYPES,4,2               ## @NR_PHY_TYPES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to determine PHY name %s. Use default eMMC 5.1 PHY\n"

	.comm	_EMMC_5_1_PHY,8,3               ## @EMMC_5_1_PHY
	.no_dead_strip	_xenon_add_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_add_phy
_xenon_add_phy:                         ; @xenon_add_phy
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _phy_types@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_types@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _NR_PHY_TYPES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NR_PHY_TYPES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_match_string
	str	x0, [x21]
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_mmc_dev
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh8:
	adrp	x8, _EMMC_5_1_PHY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMMC_5_1_PHY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_2:
	mov	x0, x20
	bl	_xenon_alloc_emmc_phy
	cbz	w0, LBB0_4
; %bb.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
LBB0_4:
	ldr	w2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_xenon_emmc_phy_parse_param_dt
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_types,4,2                  ; @phy_types
	.comm	_NR_PHY_TYPES,4,2               ; @NR_PHY_TYPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to determine PHY name %s. Use default eMMC 5.1 PHY\n"

	.comm	_EMMC_5_1_PHY,8,3               ; @EMMC_5_1_PHY
	.no_dead_strip	_xenon_add_phy
.subsections_via_symbols
