	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mmcif_sync_reset
_sh_mmcif_sync_reset:                   ## @sh_mmcif_sync_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_MMCIF_CE_CLK_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_sh_mmcif_readl
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_MMCIF_CE_VERSION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SOFT_RST_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sh_mmcif_writel
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movq	_SOFT_RST_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sh_mmcif_writel
	movq	16(%r15), %r13
	movq	_SCCSTO_29@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_MMCIF_CE_CLK_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$252641280, %edx                ## imm = 0xF0F0000
	callq	_sh_mmcif_writel
LBB0_2:
	andl	$17760256, %r14d                ## imm = 0x10F0000
	xorl	%eax, %eax
	testq	%r13, %r13
	cmovel	%eax, %ebx
	orl	%r14d, %ebx
	movq	_SRSPTO_256@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SRBSYTO_29@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	_SRWDTO_29@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_sh_mmcif_bitset
	movq	_MMCIF_CE_BUF_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BUF_ACC_ATYP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_mmcif_bitset                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMCIF_CE_CLK_CTRL,4,2          ## @MMCIF_CE_CLK_CTRL
	.comm	_MMCIF_CE_VERSION,4,2           ## @MMCIF_CE_VERSION
	.comm	_SOFT_RST_ON,4,2                ## @SOFT_RST_ON
	.comm	_SOFT_RST_OFF,4,2               ## @SOFT_RST_OFF
	.comm	_SCCSTO_29,4,2                  ## @SCCSTO_29
	.comm	_MMCIF_CE_CLK_CTRL2,4,2         ## @MMCIF_CE_CLK_CTRL2
	.comm	_SRSPTO_256,4,2                 ## @SRSPTO_256
	.comm	_SRBSYTO_29,4,2                 ## @SRBSYTO_29
	.comm	_SRWDTO_29,4,2                  ## @SRWDTO_29
	.comm	_MMCIF_CE_BUF_ACC,4,2           ## @MMCIF_CE_BUF_ACC
	.comm	_BUF_ACC_ATYP,4,2               ## @BUF_ACC_ATYP
	.no_dead_strip	_sh_mmcif_sync_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mmcif_sync_reset
_sh_mmcif_sync_reset:                   ; @sh_mmcif_sync_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _MMCIF_CE_CLK_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMCIF_CE_CLK_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sh_mmcif_readl
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x22, _MMCIF_CE_VERSION@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMCIF_CE_VERSION@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _SOFT_RST_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOFT_RST_ON@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_sh_mmcif_writel
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _SOFT_RST_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOFT_RST_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_sh_mmcif_writel
Lloh10:
	adrp	x8, _SCCSTO_29@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCCSTO_29@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	ldp	x8, x23, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _MMCIF_CE_CLK_CTRL2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMCIF_CE_CLK_CTRL2@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #252641280
	bl	_sh_mmcif_writel
LBB0_2:
	mov	w8, #17760256
	and	w8, w20, w8
	cmp	x23, #0
	csel	w9, wzr, w22, eq
	orr	w8, w9, w8
	ldr	w1, [x21]
Lloh16:
	adrp	x9, _SRSPTO_256@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SRSPTO_256@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _SRBSYTO_29@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SRBSYTO_29@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _SRWDTO_29@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SRWDTO_29@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sh_mmcif_bitset
Lloh25:
	adrp	x8, _MMCIF_CE_BUF_ACC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMCIF_CE_BUF_ACC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _BUF_ACC_ATYP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BUF_ACC_ATYP@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sh_mmcif_bitset
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MMCIF_CE_CLK_CTRL,4,2          ; @MMCIF_CE_CLK_CTRL
	.comm	_MMCIF_CE_VERSION,4,2           ; @MMCIF_CE_VERSION
	.comm	_SOFT_RST_ON,4,2                ; @SOFT_RST_ON
	.comm	_SOFT_RST_OFF,4,2               ; @SOFT_RST_OFF
	.comm	_SCCSTO_29,4,2                  ; @SCCSTO_29
	.comm	_MMCIF_CE_CLK_CTRL2,4,2         ; @MMCIF_CE_CLK_CTRL2
	.comm	_SRSPTO_256,4,2                 ; @SRSPTO_256
	.comm	_SRBSYTO_29,4,2                 ; @SRBSYTO_29
	.comm	_SRWDTO_29,4,2                  ; @SRWDTO_29
	.comm	_MMCIF_CE_BUF_ACC,4,2           ; @MMCIF_CE_BUF_ACC
	.comm	_BUF_ACC_ATYP,4,2               ; @BUF_ACC_ATYP
	.no_dead_strip	_sh_mmcif_sync_reset
.subsections_via_symbols
