	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glk_emmc_add_host
_glk_emmc_add_host:                     ## @glk_emmc_add_host
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_sdhci_setup_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	$512, %ecx                      ## imm = 0x200
	addq	8(%r14), %rcx
	movq	%rcx, 24(%rax)
	movq	_CQHCI_QUIRK_SHORT_TXFR_DESC_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%rax)
	movq	_glk_cqhci_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_SDHCI_USE_64_BIT_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%r14), %edx
	je	LBB0_6
## %bb.5:
	movq	_CQHCI_TASK_DESC_SZ_128@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_6:
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_cqhci_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movq	%r14, %rdi
	callq	___sdhci_add_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_sdhci_cleanup_host
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CQHCI_QUIRK_SHORT_TXFR_DESC_SZ,4,2 ## @CQHCI_QUIRK_SHORT_TXFR_DESC_SZ
	.comm	_glk_cqhci_ops,4,2              ## @glk_cqhci_ops
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ## @SDHCI_USE_64_BIT_DMA
	.comm	_CQHCI_TASK_DESC_SZ_128,4,2     ## @CQHCI_TASK_DESC_SZ_128
	.no_dead_strip	_glk_emmc_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glk_emmc_add_host
_glk_emmc_add_host:                     ; @glk_emmc_add_host
	.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
	ldp	x19, x8, [x0]
	ldr	x21, [x8]
	mov	x0, x19
	bl	_sdhci_setup_host
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	add	x8, x8, #512
	str	x8, [x0, #24]
Lloh3:
	adrp	x8, _CQHCI_QUIRK_SHORT_TXFR_DESC_SZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CQHCI_QUIRK_SHORT_TXFR_DESC_SZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
Lloh6:
	adrp	x8, _glk_cqhci_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _glk_cqhci_ops@GOTPAGEOFF]
	str	x8, [x0, #8]
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _SDHCI_USE_64_BIT_DMA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDHCI_USE_64_BIT_DMA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ands	w2, w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _CQHCI_TASK_DESC_SZ_128@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CQHCI_TASK_DESC_SZ_128@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_4:
	ldr	w1, [x19, #4]
	bl	_cqhci_init
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	___sdhci_add_host
	mov	x20, x0
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_sdhci_cleanup_host
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CQHCI_QUIRK_SHORT_TXFR_DESC_SZ,4,2 ; @CQHCI_QUIRK_SHORT_TXFR_DESC_SZ
	.comm	_glk_cqhci_ops,4,2              ; @glk_cqhci_ops
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ; @SDHCI_USE_64_BIT_DMA
	.comm	_CQHCI_TASK_DESC_SZ_128,4,2     ; @CQHCI_TASK_DESC_SZ_128
	.no_dead_strip	_glk_emmc_add_host
.subsections_via_symbols
