	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4740_mmc_set_ios
_jz4740_mmc_set_ios:                    ## @jz4740_mmc_set_ios
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movl	12(%r15), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_jz4740_mmc_set_clock_rate
LBB0_2:
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_jz4740_mmc_reset
	movl	(%rbx), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_mmc_regulator_set_ocr
LBB0_6:
	movq	_JZ_MMC_CMDAT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
	jmp	LBB0_10
LBB0_7:
	movl	(%rbx), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mmc_regulator_set_ocr
LBB0_9:
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_10:
	movl	4(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_13
## %bb.11:
	cmpl	$131, %eax
	jne	LBB0_14
## %bb.12:
	movq	_JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_14
LBB0_13:
	movq	_JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JZ_MMC_CMDAT_INIT,4,2          ## @JZ_MMC_CMDAT_INIT
	.comm	_JZ_MMC_CMDAT_BUS_WIDTH_4BIT,4,2 ## @JZ_MMC_CMDAT_BUS_WIDTH_4BIT
	.no_dead_strip	_jz4740_mmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4740_mmc_set_ios
_jz4740_mmc_set_ios:                    ; @jz4740_mmc_set_ios
	.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, x1
	mov	x21, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	w1, [x20, #12]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_jz4740_mmc_set_clock_rate
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_jz4740_mmc_reset
	ldr	w0, [x21]
	bl	_IS_ERR
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x21]
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_mmc_regulator_set_ocr
LBB0_6:
Lloh0:
	adrp	x8, _JZ_MMC_CMDAT_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JZ_MMC_CMDAT_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w0, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	bl	_clk_prepare_enable
	b	LBB0_10
LBB0_7:
	ldr	w0, [x21]
	bl	_IS_ERR
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x21
	mov	w2, #0
	bl	_mmc_regulator_set_ocr
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #131
	b.ne	LBB0_15
; %bb.12:
Lloh3:
	adrp	x8, _JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x8, _JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JZ_MMC_CMDAT_BUS_WIDTH_4BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_14:
	str	w8, [x19]
LBB0_15:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_JZ_MMC_CMDAT_INIT,4,2          ; @JZ_MMC_CMDAT_INIT
	.comm	_JZ_MMC_CMDAT_BUS_WIDTH_4BIT,4,2 ; @JZ_MMC_CMDAT_BUS_WIDTH_4BIT
	.no_dead_strip	_jz4740_mmc_set_ios
.subsections_via_symbols
