	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_update_bus_speed_mode
_sd_update_bus_speed_mode:              ## @sd_update_bus_speed_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %rax
	movl	(%rax), %r10d
	movq	_MMC_CAP_UHS_SDR12@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_MMC_CAP_UHS_SDR25@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MMC_CAP_UHS_SDR50@GOTPCREL(%rip), %rdx
	movq	_MMC_CAP_UHS_SDR104@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MMC_CAP_UHS_DDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	orl	%esi, %edx
	movl	%r8d, %eax
	orl	%r9d, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	testl	%r10d, %eax
	je	LBB0_1
## %bb.2:
	testl	%r10d, %esi
	je	LBB0_5
## %bb.3:
	movq	_SD_MODE_UHS_SDR104@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_UHS_SDR104_BUS_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	testl	%r10d, %ecx
	je	LBB0_8
## %bb.6:
	movq	_SD_MODE_UHS_DDR50@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_8
## %bb.7:
	movq	_UHS_DDR50_BUS_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_8:
	testl	%r10d, %edx
	je	LBB0_11
## %bb.9:
	movq	_SD_MODE_UHS_SDR50@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_11
## %bb.10:
	movq	_UHS_SDR50_BUS_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	orl	%r9d, %edx
	testl	%r10d, %edx
	je	LBB0_14
## %bb.12:
	movq	_SD_MODE_UHS_SDR25@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_14
## %bb.13:
	movq	_UHS_SDR25_BUS_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	orl	%r8d, %edx
	testl	%r10d, %edx
	je	LBB0_19
## %bb.15:
	movq	_SD_MODE_UHS_SDR12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_19
## %bb.16:
	movq	_UHS_SDR12_BUS_SPEED@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
LBB0_18:
	movq	%rax, (%rdi)
LBB0_19:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_UHS_SDR12,4,2          ## @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ## @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ## @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ## @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ## @MMC_CAP_UHS_DDR50
	.comm	_SD_MODE_UHS_SDR104,4,2         ## @SD_MODE_UHS_SDR104
	.comm	_UHS_SDR104_BUS_SPEED,8,3       ## @UHS_SDR104_BUS_SPEED
	.comm	_SD_MODE_UHS_DDR50,4,2          ## @SD_MODE_UHS_DDR50
	.comm	_UHS_DDR50_BUS_SPEED,8,3        ## @UHS_DDR50_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR50,4,2          ## @SD_MODE_UHS_SDR50
	.comm	_UHS_SDR50_BUS_SPEED,8,3        ## @UHS_SDR50_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR25,4,2          ## @SD_MODE_UHS_SDR25
	.comm	_UHS_SDR25_BUS_SPEED,8,3        ## @UHS_SDR25_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR12,4,2          ## @SD_MODE_UHS_SDR12
	.comm	_UHS_SDR12_BUS_SPEED,8,3        ## @UHS_SDR12_BUS_SPEED
	.no_dead_strip	_sd_update_bus_speed_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_update_bus_speed_mode
_sd_update_bus_speed_mode:              ; @sd_update_bus_speed_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MMC_CAP_UHS_SDR12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR12@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MMC_CAP_UHS_SDR25@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_CAP_UHS_SDR25@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MMC_CAP_UHS_SDR50@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MMC_CAP_UHS_SDR50@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _MMC_CAP_UHS_SDR104@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MMC_CAP_UHS_SDR104@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x12]
Lloh12:
	adrp	x12, _MMC_CAP_UHS_DDR50@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MMC_CAP_UHS_DDR50@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w11, w13, w11
	orr	w14, w11, w9
	orr	w14, w14, w10
	orr	w14, w14, w12
	tst	w14, w8
	b.eq	LBB0_7
; %bb.1:
	tst	w13, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w13, [x0, #8]
Lloh15:
	adrp	x14, _SD_MODE_UHS_SDR104@GOTPAGE
Lloh16:
	ldr	x14, [x14, _SD_MODE_UHS_SDR104@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
	tst	w14, w13
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _UHS_SDR104_BUS_SPEED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UHS_SDR104_BUS_SPEED@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	tst	w12, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	w12, [x0, #8]
Lloh20:
	adrp	x13, _SD_MODE_UHS_DDR50@GOTPAGE
Lloh21:
	ldr	x13, [x13, _SD_MODE_UHS_DDR50@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_8
; %bb.6:
Lloh23:
	adrp	x8, _UHS_DDR50_BUS_SPEED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UHS_DDR50_BUS_SPEED@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
	mov	x8, #0
	b	LBB0_18
LBB0_8:
	tst	w11, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w12, [x0, #8]
Lloh25:
	adrp	x13, _SD_MODE_UHS_SDR50@GOTPAGE
Lloh26:
	ldr	x13, [x13, _SD_MODE_UHS_SDR50@GOTPAGEOFF]
Lloh27:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _UHS_SDR50_BUS_SPEED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UHS_SDR50_BUS_SPEED@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
	orr	w10, w11, w10
	tst	w10, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	w11, [x0, #8]
Lloh30:
	adrp	x12, _SD_MODE_UHS_SDR25@GOTPAGE
Lloh31:
	ldr	x12, [x12, _SD_MODE_UHS_SDR25@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _UHS_SDR25_BUS_SPEED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UHS_SDR25_BUS_SPEED@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
	ldr	w8, [x0, #8]
Lloh35:
	adrp	x9, _SD_MODE_UHS_SDR12@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SD_MODE_UHS_SDR12@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.16:
Lloh38:
	adrp	x8, _UHS_SDR12_BUS_SPEED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UHS_SDR12_BUS_SPEED@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
LBB0_18:
	str	x8, [x0]
LBB0_19:
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_UHS_SDR12,4,2          ; @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ; @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ; @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ; @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ; @MMC_CAP_UHS_DDR50
	.comm	_SD_MODE_UHS_SDR104,4,2         ; @SD_MODE_UHS_SDR104
	.comm	_UHS_SDR104_BUS_SPEED,8,3       ; @UHS_SDR104_BUS_SPEED
	.comm	_SD_MODE_UHS_DDR50,4,2          ; @SD_MODE_UHS_DDR50
	.comm	_UHS_DDR50_BUS_SPEED,8,3        ; @UHS_DDR50_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR50,4,2          ; @SD_MODE_UHS_SDR50
	.comm	_UHS_SDR50_BUS_SPEED,8,3        ; @UHS_SDR50_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR25,4,2          ; @SD_MODE_UHS_SDR25
	.comm	_UHS_SDR25_BUS_SPEED,8,3        ; @UHS_SDR25_BUS_SPEED
	.comm	_SD_MODE_UHS_SDR12,4,2          ; @SD_MODE_UHS_SDR12
	.comm	_UHS_SDR12_BUS_SPEED,8,3        ; @UHS_SDR12_BUS_SPEED
	.no_dead_strip	_sd_update_bus_speed_mode
.subsections_via_symbols
