	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_init_mmc
_alcor_init_mmc:                        ## @alcor_init_mmc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_mmc_from_priv
	movq	_AU6601_MIN_CLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movq	_AU6601_MAX_CLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movq	_MMC_CAP_SD_HIGHSPEED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MMC_CAP_UHS_SDR12@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MMC_CAP_UHS_SDR25@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MMC_CAP_UHS_SDR50@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MMC_CAP_UHS_SDR104@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MMC_CAP_UHS_DDR50@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_MMC_CAP2_NO_SDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_alcor_sdc_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_AU6601_MAX_DMA_SEGMENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_AU6601_MAX_DMA_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, 16(%rax)
	movl	$240, 4(%rax)
	imull	$240, 12(%rax), %ecx
	movl	%ecx, 8(%rax)
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dma_set_max_seg_size           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_MIN_CLOCK,4,2           ## @AU6601_MIN_CLOCK
	.comm	_AU6601_MAX_CLOCK,4,2           ## @AU6601_MAX_CLOCK
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ## @MMC_CAP_SD_HIGHSPEED
	.comm	_MMC_CAP_UHS_SDR12,4,2          ## @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ## @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ## @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ## @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ## @MMC_CAP_UHS_DDR50
	.comm	_MMC_CAP2_NO_SDIO,4,2           ## @MMC_CAP2_NO_SDIO
	.comm	_alcor_sdc_ops,4,2              ## @alcor_sdc_ops
	.comm	_AU6601_MAX_DMA_SEGMENTS,4,2    ## @AU6601_MAX_DMA_SEGMENTS
	.comm	_AU6601_MAX_DMA_BLOCK_SIZE,4,2  ## @AU6601_MAX_DMA_BLOCK_SIZE
	.no_dead_strip	_alcor_init_mmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_init_mmc
_alcor_init_mmc:                        ; @alcor_init_mmc
	.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	x19, x0
	bl	_mmc_from_priv
Lloh0:
	adrp	x8, _AU6601_MIN_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU6601_MIN_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AU6601_MAX_CLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AU6601_MAX_CLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMC_VDD_33_34@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_VDD_33_34@GOTPAGEOFF]
	stp	w9, w8, [x0, #40]
Lloh8:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MMC_CAP_SD_HIGHSPEED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMC_CAP_SD_HIGHSPEED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _MMC_CAP_UHS_SDR12@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR12@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _MMC_CAP_UHS_SDR25@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR25@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _MMC_CAP_UHS_SDR50@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR50@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _MMC_CAP_UHS_SDR104@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR104@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _MMC_CAP_UHS_DDR50@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MMC_CAP_UHS_DDR50@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	w9, #240
	str	w8, [x0]
Lloh30:
	adrp	x8, _MMC_CAP2_NO_SDIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMC_CAP2_NO_SDIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	stp	w8, w10, [x0, #32]
Lloh33:
	adrp	x8, _alcor_sdc_ops@GOTPAGE
Lloh34:
	ldr	x8, [x8, _alcor_sdc_ops@GOTPAGEOFF]
	str	x8, [x0, #24]
Lloh35:
	adrp	x8, _AU6601_MAX_DMA_SEGMENTS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AU6601_MAX_DMA_SEGMENTS@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x10, _AU6601_MAX_DMA_BLOCK_SIZE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _AU6601_MAX_DMA_BLOCK_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x10]
	stp	w1, w8, [x0, #16]
	ldr	w8, [x0, #12]
	mul	w8, w8, w9
	stp	w9, w8, [x0, #4]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_set_max_seg_size
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh22
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_MIN_CLOCK,4,2           ; @AU6601_MIN_CLOCK
	.comm	_AU6601_MAX_CLOCK,4,2           ; @AU6601_MAX_CLOCK
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ; @MMC_CAP_SD_HIGHSPEED
	.comm	_MMC_CAP_UHS_SDR12,4,2          ; @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ; @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ; @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ; @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ; @MMC_CAP_UHS_DDR50
	.comm	_MMC_CAP2_NO_SDIO,4,2           ; @MMC_CAP2_NO_SDIO
	.comm	_alcor_sdc_ops,4,2              ; @alcor_sdc_ops
	.comm	_AU6601_MAX_DMA_SEGMENTS,4,2    ; @AU6601_MAX_DMA_SEGMENTS
	.comm	_AU6601_MAX_DMA_BLOCK_SIZE,4,2  ; @AU6601_MAX_DMA_BLOCK_SIZE
	.no_dead_strip	_alcor_init_mmc
.subsections_via_symbols
