	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_mmc_set_ios
_meson_mx_mmc_set_ios:                  ## @meson_mx_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	%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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mmc_priv
	movq	%rax, %r14
	movzwl	(%rbx), %r13d
	movq	8(%rbx), %r12
	movl	16(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$132, %eax
	jne	LBB0_3
## %bb.2:
	movq	_MESON_MX_SDIO_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_MESON_MX_SDIO_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
LBB0_5:
	callq	_meson_mx_mmc_mask_bits
	movl	8(%r14), %edi
	movq	8(%rbx), %rsi
	callq	_clk_set_rate
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%r15, %rdi
	callq	_mmc_dev
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_3:
	movq	%r15, %rdi
	callq	_mmc_dev
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subq	(%rax), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_11
LBB0_6:
	movl	8(%r14), %edi
	callq	_clk_get_rate
	movl	%eax, 4(%r15)
	movl	20(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	(%r15), %esi
	movzwl	%r13w, %edx
	movq	%r15, %rdi
	callq	_mmc_regulator_set_ocr
	movq	%rax, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_MX_SDIO_CONF,4,2         ## @MESON_MX_SDIO_CONF
	.comm	_MESON_MX_SDIO_CONF_BUS_WIDTH,4,2 ## @MESON_MX_SDIO_CONF_BUS_WIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported bus width: %d\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to set MMC clock to %lu: %d\n"

	.no_dead_strip	_meson_mx_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 meson_mx_mmc_set_ios
_meson_mx_mmc_set_ios:                  ; @meson_mx_mmc_set_ios
	.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	x22, x1
	mov	x20, x0
	bl	_mmc_priv
	mov	x19, x0
	ldrh	w21, [x22]
	ldr	x23, [x22, #8]
	ldr	w8, [x22, #16]
	cmp	w8, #131
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #132
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _MESON_MX_SDIO_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MESON_MX_SDIO_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _MESON_MX_SDIO_CONF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MESON_MX_SDIO_CONF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MESON_MX_SDIO_CONF_BUS_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
LBB0_4:
	bl	_meson_mx_mmc_mask_bits
	ldr	w0, [x19, #8]
	ldr	x1, [x22, #8]
	bl	_clk_set_rate
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_mmc_dev
	ldr	x3, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	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	_dev_warn
LBB0_6:
	mov	x0, x20
	bl	_mmc_dev
	ldr	w2, [x22, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	neg	x8, x8
	str	x8, [x19]
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	str	w0, [x20, #4]
	ldr	w8, [x22, #20]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.9:
	mov	w21, #0
LBB0_10:
	ldr	w0, [x20]
	bl	_IS_ERR
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x20
	mov	x2, x21
	bl	_mmc_regulator_set_ocr
	str	x0, [x19]
LBB0_12:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_MX_SDIO_CONF,4,2         ; @MESON_MX_SDIO_CONF
	.comm	_MESON_MX_SDIO_CONF_BUS_WIDTH,4,2 ; @MESON_MX_SDIO_CONF_BUS_WIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported bus width: %d\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to set MMC clock to %lu: %d\n"

	.no_dead_strip	_meson_mx_mmc_set_ios
.subsections_via_symbols
