	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_alloc_emmc_phy
_xenon_alloc_emmc_phy:                  ## @xenon_alloc_emmc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_mmc_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 16(%r14)
	movq	(%r14), %rax
	movq	_EMMC_5_0_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_xenon_emmc_5_0_phy_regs@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_xenon_emmc_5_1_phy_regs@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EMMC_5_0_PHY,8,3               ## @EMMC_5_0_PHY
	.comm	_xenon_emmc_5_0_phy_regs,4,2    ## @xenon_emmc_5_0_phy_regs
	.comm	_xenon_emmc_5_1_phy_regs,4,2    ## @xenon_emmc_5_1_phy_regs
	.no_dead_strip	_xenon_alloc_emmc_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_alloc_emmc_phy
_xenon_alloc_emmc_phy:                  ; @xenon_alloc_emmc_phy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x19, x0
	ldr	w0, [x20]
	bl	_mmc_dev
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x19, #16]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EMMC_5_0_PHY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EMMC_5_0_PHY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
Lloh6:
	adrp	x8, _xenon_emmc_5_0_phy_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xenon_emmc_5_0_phy_regs@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	w0, #0
Lloh11:
	adrp	x8, _xenon_emmc_5_1_phy_regs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xenon_emmc_5_1_phy_regs@GOTPAGEOFF]
LBB0_5:
	str	x8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EMMC_5_0_PHY,8,3               ; @EMMC_5_0_PHY
	.comm	_xenon_emmc_5_0_phy_regs,4,2    ; @xenon_emmc_5_0_phy_regs
	.comm	_xenon_emmc_5_1_phy_regs,4,2    ; @xenon_emmc_5_1_phy_regs
	.no_dead_strip	_xenon_alloc_emmc_phy
.subsections_via_symbols
