	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_part_switch
_mmc_blk_part_switch:                   ## @mmc_blk_part_switch
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	addq	$8, %rdi
	callq	_dev_get_drvdata
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_mmc_card_mmc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r13), %r12d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_mmc_blk_part_switch_pre
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_EXT_CSD_PART_CONFIG_ACC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXT_CSD_PART_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r13), %r8d
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_mmc_switch
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_mmc_blk_part_switch_post
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%r12d, (%r13)
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_mmc_blk_part_switch_post
	movl	%eax, %ebx
LBB0_7:
	movl	%r15d, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CSD_PART_CONFIG_ACC_MASK,4,2 ## @EXT_CSD_PART_CONFIG_ACC_MASK
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_PART_CONFIG,4,2        ## @EXT_CSD_PART_CONFIG
	.no_dead_strip	_mmc_blk_part_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_part_switch
_mmc_blk_part_switch:                   ; @mmc_blk_part_switch
	.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, x1
	mov	x21, x0
	add	x0, x0, #8
	bl	_dev_get_drvdata
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x0
	mov	x0, x21
	bl	_mmc_card_mmc
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w23, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_mmc_blk_part_switch_pre
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _EXT_CSD_PART_CONFIG_ACC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_CSD_PART_CONFIG_ACC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w23, w8
Lloh3:
	adrp	x9, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
	orr	w23, w8, w19
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x8, _EXT_CSD_PART_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_CSD_PART_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w4, [x21, #4]
	mov	x0, x21
	mov	x3, x23
	bl	_mmc_switch
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mmc_blk_part_switch_post
	b	LBB0_9
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	str	w23, [x21]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_mmc_blk_part_switch_post
	mov	x22, x0
LBB0_8:
	str	w19, [x20]
LBB0_9:
	mov	x0, x22
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CSD_PART_CONFIG_ACC_MASK,4,2 ; @EXT_CSD_PART_CONFIG_ACC_MASK
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_PART_CONFIG,4,2        ; @EXT_CSD_PART_CONFIG
	.no_dead_strip	_mmc_blk_part_switch
.subsections_via_symbols
