	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_mmc_init
_aw_mmc_init:                           ## @aw_mmc_init
	.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	%rdi, %r12
	callq	_aw_mmc_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AW_MMC_TMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AW_MMC_TMOR_DTO_LMT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AW_MMC_TMOR_DTO_LMT_SHIFT
	movl	%eax, %ebx
	movq	_AW_MMC_TMOR_RTO_LMT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AW_MMC_TMOR_RTO_LMT_SHIFT
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_IMKR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_RISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_DBGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$3563, %edx                     ## imm = 0xDEB
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_FUNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-827719680, %edx               ## imm = 0xCEAA0000
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_IDST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_AW_MMC_WRITE_4
	movq	_AW_MMC_GCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_AW_MMC_READ_4
	movq	_AW_MMC_GCTL_INT_ENB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AW_MMC_GCTL_FIFO_AC_MOD@GOTPCREL(%rip), %rcx
	movq	_AW_MMC_GCTL_WAIT_MEM_ACCESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_AW_MMC_WRITE_4
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_MMC_TMOR,4,2                ## @AW_MMC_TMOR
	.comm	_AW_MMC_TMOR_DTO_LMT_MASK,4,2   ## @AW_MMC_TMOR_DTO_LMT_MASK
	.comm	_AW_MMC_TMOR_RTO_LMT_MASK,4,2   ## @AW_MMC_TMOR_RTO_LMT_MASK
	.comm	_AW_MMC_IMKR,4,2                ## @AW_MMC_IMKR
	.comm	_AW_MMC_RISR,4,2                ## @AW_MMC_RISR
	.comm	_AW_MMC_DBGC,4,2                ## @AW_MMC_DBGC
	.comm	_AW_MMC_FUNS,4,2                ## @AW_MMC_FUNS
	.comm	_AW_MMC_IDST,4,2                ## @AW_MMC_IDST
	.comm	_AW_MMC_GCTL,4,2                ## @AW_MMC_GCTL
	.comm	_AW_MMC_GCTL_INT_ENB,4,2        ## @AW_MMC_GCTL_INT_ENB
	.comm	_AW_MMC_GCTL_FIFO_AC_MOD,4,2    ## @AW_MMC_GCTL_FIFO_AC_MOD
	.comm	_AW_MMC_GCTL_WAIT_MEM_ACCESS,4,2 ## @AW_MMC_GCTL_WAIT_MEM_ACCESS
	.no_dead_strip	_aw_mmc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_mmc_init
_aw_mmc_init:                           ; @aw_mmc_init
	.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	x20, x0
	bl	_aw_mmc_reset
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AW_MMC_TMOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AW_MMC_TMOR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _AW_MMC_TMOR_DTO_LMT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AW_MMC_TMOR_DTO_LMT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AW_MMC_TMOR_DTO_LMT_SHIFT
	mov	x22, x0
Lloh6:
	adrp	x8, _AW_MMC_TMOR_RTO_LMT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AW_MMC_TMOR_RTO_LMT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AW_MMC_TMOR_RTO_LMT_SHIFT
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_AW_MMC_WRITE_4
Lloh9:
	adrp	x8, _AW_MMC_IMKR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AW_MMC_IMKR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_AW_MMC_WRITE_4
Lloh12:
	adrp	x8, _AW_MMC_RISR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AW_MMC_RISR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_AW_MMC_WRITE_4
Lloh15:
	adrp	x8, _AW_MMC_DBGC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AW_MMC_DBGC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #3563
	bl	_AW_MMC_WRITE_4
Lloh18:
	adrp	x8, _AW_MMC_FUNS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AW_MMC_FUNS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-827719680
	bl	_AW_MMC_WRITE_4
Lloh21:
	adrp	x8, _AW_MMC_IDST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AW_MMC_IDST@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_AW_MMC_WRITE_4
Lloh24:
	adrp	x21, _AW_MMC_GCTL@GOTPAGE
Lloh25:
	ldr	x21, [x21, _AW_MMC_GCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_AW_MMC_READ_4
Lloh26:
	adrp	x8, _AW_MMC_GCTL_INT_ENB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AW_MMC_GCTL_INT_ENB@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh29:
	adrp	x9, _AW_MMC_GCTL_FIFO_AC_MOD@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AW_MMC_GCTL_FIFO_AC_MOD@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _AW_MMC_GCTL_WAIT_MEM_ACCESS@GOTPAGE
Lloh33:
	ldr	x10, [x10, _AW_MMC_GCTL_WAIT_MEM_ACCESS@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x20
	bl	_AW_MMC_WRITE_4
LBB0_2:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_MMC_TMOR,4,2                ; @AW_MMC_TMOR
	.comm	_AW_MMC_TMOR_DTO_LMT_MASK,4,2   ; @AW_MMC_TMOR_DTO_LMT_MASK
	.comm	_AW_MMC_TMOR_RTO_LMT_MASK,4,2   ; @AW_MMC_TMOR_RTO_LMT_MASK
	.comm	_AW_MMC_IMKR,4,2                ; @AW_MMC_IMKR
	.comm	_AW_MMC_RISR,4,2                ; @AW_MMC_RISR
	.comm	_AW_MMC_DBGC,4,2                ; @AW_MMC_DBGC
	.comm	_AW_MMC_FUNS,4,2                ; @AW_MMC_FUNS
	.comm	_AW_MMC_IDST,4,2                ; @AW_MMC_IDST
	.comm	_AW_MMC_GCTL,4,2                ; @AW_MMC_GCTL
	.comm	_AW_MMC_GCTL_INT_ENB,4,2        ; @AW_MMC_GCTL_INT_ENB
	.comm	_AW_MMC_GCTL_FIFO_AC_MOD,4,2    ; @AW_MMC_GCTL_FIFO_AC_MOD
	.comm	_AW_MMC_GCTL_WAIT_MEM_ACCESS,4,2 ; @AW_MMC_GCTL_WAIT_MEM_ACCESS
	.no_dead_strip	_aw_mmc_init
.subsections_via_symbols
