	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_select_drive_strength      ## -- Begin function mmc_select_drive_strength
	.p2align	4, 0x90
_mmc_select_drive_strength:             ## @mmc_select_drive_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	%rcx, %r8
	movq	(%rdi), %rax
	movq	_SD_DRIVER_TYPE_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	$0, (%r8)
	movq	8(%rax), %rcx
	movq	(%rcx), %r11
	testq	%r11, %r11
	je	LBB0_8
## %bb.1:
	movl	%edx, %r9d
	movl	(%rax), %ebx
	movq	_MMC_CAP_DRIVER_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	je	LBB0_3
## %bb.2:
	movq	_SD_DRIVER_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	_MMC_CAP_DRIVER_TYPE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_SD_DRIVER_TYPE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%r10d, %edx
	movq	_MMC_CAP_DRIVER_TYPE_D@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_7
## %bb.6:
	movq	_SD_DRIVER_TYPE_D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_7:
	orl	%ebx, %eax
	orl	%eax, %edx
	movl	%r9d, %ecx
	popq	%rbx
	popq	%rbp
	jmpq	*%r11                           ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_DRIVER_TYPE_B,4,2           ## @SD_DRIVER_TYPE_B
	.comm	_MMC_CAP_DRIVER_TYPE_A,4,2      ## @MMC_CAP_DRIVER_TYPE_A
	.comm	_SD_DRIVER_TYPE_A,4,2           ## @SD_DRIVER_TYPE_A
	.comm	_MMC_CAP_DRIVER_TYPE_C,4,2      ## @MMC_CAP_DRIVER_TYPE_C
	.comm	_SD_DRIVER_TYPE_C,4,2           ## @SD_DRIVER_TYPE_C
	.comm	_MMC_CAP_DRIVER_TYPE_D,4,2      ## @MMC_CAP_DRIVER_TYPE_D
	.comm	_SD_DRIVER_TYPE_D,4,2           ## @SD_DRIVER_TYPE_D
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_select_drive_strength      ; -- Begin function mmc_select_drive_strength
	.p2align	2
_mmc_select_drive_strength:             ; @mmc_select_drive_strength
	.cfi_startproc
; %bb.0:
	mov	x4, x3
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _SD_DRIVER_TYPE_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_DRIVER_TYPE_B@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	wzr, [x3]
	ldr	x10, [x9, #8]
	ldr	x5, [x10]
	cbz	x5, LBB0_2
; %bb.1:
	mov	x3, x2
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MMC_CAP_DRIVER_TYPE_A@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_CAP_DRIVER_TYPE_A@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SD_DRIVER_TYPE_A@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SD_DRIVER_TYPE_A@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh9:
	adrp	x10, _MMC_CAP_DRIVER_TYPE_C@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MMC_CAP_DRIVER_TYPE_C@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _SD_DRIVER_TYPE_C@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SD_DRIVER_TYPE_C@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh15:
	adrp	x10, _MMC_CAP_DRIVER_TYPE_D@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MMC_CAP_DRIVER_TYPE_D@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _SD_DRIVER_TYPE_D@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SD_DRIVER_TYPE_D@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w2, w8, w9
	br	x5
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_DRIVER_TYPE_B,4,2           ; @SD_DRIVER_TYPE_B
	.comm	_MMC_CAP_DRIVER_TYPE_A,4,2      ; @MMC_CAP_DRIVER_TYPE_A
	.comm	_SD_DRIVER_TYPE_A,4,2           ; @SD_DRIVER_TYPE_A
	.comm	_MMC_CAP_DRIVER_TYPE_C,4,2      ; @MMC_CAP_DRIVER_TYPE_C
	.comm	_SD_DRIVER_TYPE_C,4,2           ; @SD_DRIVER_TYPE_C
	.comm	_MMC_CAP_DRIVER_TYPE_D,4,2      ; @MMC_CAP_DRIVER_TYPE_D
	.comm	_SD_DRIVER_TYPE_D,4,2           ; @SD_DRIVER_TYPE_D
.subsections_via_symbols
