	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_select_driver_type
_mmc_select_driver_type:                ## @mmc_select_driver_type
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %r14d
	movl	16(%rdi), %r12d
	xorl	%edi, %edi
	callq	_mmc_driver_type_mask
	movl	%eax, %ebx
	orl	%r12d, %ebx
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_mmc_driver_type_mask
	andl	%ebx, %eax
	cmovnel	%r14d, %eax
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_2:
	movl	20(%r15), %esi
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mmc_select_drive_strength
	movl	-36(%rbp), %esi
	movl	%eax, (%r15)
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	callq	_mmc_set_driver_type
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mmc_select_driver_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_select_driver_type
_mmc_select_driver_type:                ; @mmc_select_driver_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
	ldr	w20, [x0, #16]
	mov	w0, #0
	bl	_mmc_driver_type_mask
	orr	w20, w0, w20
	tbnz	w21, #31, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_mmc_driver_type_mask
	tst	w0, w20
	csel	w8, wzr, w21, eq
	str	w8, [x19]
	b	LBB0_4
LBB0_2:
	ldr	w1, [x19, #20]
	add	x3, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_mmc_select_drive_strength
	ldr	w1, [sp, #12]
	str	w0, [x19]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_mmc_set_driver_type
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mmc_select_driver_type
.subsections_via_symbols
