	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_decode_csd
_mmc_decode_csd:                        ## @mmc_decode_csd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	movl	$126, %esi
	movl	$2, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$122, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 20(%r14)
	movq	%r12, %rdi
	movl	$115, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$112, %esi
	movl	$3, %edx
	callq	_UNSTUFF_BITS
	movq	_taac_exp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	_taac_mant@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%r15d, %esi
	movl	(%rdx,%rsi,4), %edx
	imull	(%rcx,%rax,4), %edx
	addl	$9, %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 24(%r14)
	movq	%r12, %rdi
	movl	$104, %esi
	movl	$8, %edx
	callq	_UNSTUFF_BITS
	imull	$100, %eax, %eax
	movl	%eax, 28(%r14)
	movq	%r12, %rdi
	movl	$99, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$96, %esi
	movl	$3, %edx
	callq	_UNSTUFF_BITS
	movq	_tran_exp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	_tran_mant@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%r15d, %esi
	movl	(%rdx,%rsi,4), %edx
	imull	(%rcx,%rax,4), %edx
	movl	%edx, 32(%r14)
	movq	%r12, %rdi
	movl	$84, %esi
	movl	$12, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 36(%r14)
	movq	%r12, %rdi
	movl	$47, %esi
	movl	$3, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$62, %esi
	movl	$12, %edx
	callq	_UNSTUFF_BITS
	incl	%eax
	addb	$2, %bl
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	%eax, 40(%r14)
	movq	%r12, %rdi
	movl	$80, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 44(%r14)
	movq	%r12, %rdi
	movl	$79, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 48(%r14)
	movq	%r12, %rdi
	movl	$78, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 52(%r14)
	movq	%r12, %rdi
	movl	$77, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 56(%r14)
	movq	%r12, %rdi
	movl	$76, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 60(%r14)
	movq	%r12, %rdi
	movl	$26, %esi
	movl	$3, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 64(%r14)
	movq	%r12, %rdi
	movl	$22, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 68(%r14)
	movq	%r12, %rdi
	movl	$21, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 72(%r14)
	xorl	%r15d, %r15d
	cmpl	$9, 68(%r14)
	jl	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	$42, %esi
	movl	$5, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$37, %esi
	movl	$5, %edx
	callq	_UNSTUFF_BITS
	incl	%ebx
	incl	%eax
	imull	%ebx, %eax
	movb	68(%r14), %cl
	addb	$-9, %cl
	shll	%cl, %eax
	movl	%eax, 76(%r14)
	jmp	LBB0_4
LBB0_1:
	movl	(%r14), %edi
	callq	_mmc_hostname
	movslq	16(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unrecognised CSD structure version %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_taac_exp,8,3                   ## @taac_exp
	.comm	_taac_mant,8,3                  ## @taac_mant
	.comm	_tran_exp,8,3                   ## @tran_exp
	.comm	_tran_mant,8,3                  ## @tran_mant
	.no_dead_strip	_mmc_decode_csd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_decode_csd
_mmc_decode_csd:                        ; @mmc_decode_csd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #126
	mov	w2, #2
	bl	_UNSTUFF_BITS
	str	w0, [x19, #16]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #122
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #20]
	mov	x0, x20
	mov	w1, #115
	mov	w2, #4
	bl	_UNSTUFF_BITS
	mov	x21, x0
	mov	x0, x20
	mov	w1, #112
	mov	w2, #3
	bl	_UNSTUFF_BITS
Lloh0:
	adrp	x8, _taac_exp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _taac_exp@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
Lloh3:
	adrp	x9, _taac_mant@GOTPAGE
Lloh4:
	ldr	x9, [x9, _taac_mant@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x9, w21, uxtw #2]
	mul	w8, w9, w8
	add	w8, w8, #9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	str	w8, [x19, #24]
	mov	x0, x20
	mov	w1, #104
	mov	w2, #8
	bl	_UNSTUFF_BITS
	mov	w8, #100
	mul	w8, w0, w8
	str	w8, [x19, #28]
	mov	x0, x20
	mov	w1, #99
	mov	w2, #4
	bl	_UNSTUFF_BITS
	mov	x21, x0
	mov	x0, x20
	mov	w1, #96
	mov	w2, #3
	bl	_UNSTUFF_BITS
Lloh6:
	adrp	x8, _tran_exp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tran_exp@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
Lloh9:
	adrp	x9, _tran_mant@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tran_mant@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w9, [x9, w21, uxtw #2]
	mul	w8, w9, w8
	str	w8, [x19, #32]
	mov	x0, x20
	mov	w1, #84
	mov	w2, #12
	bl	_UNSTUFF_BITS
	str	w0, [x19, #36]
	mov	x0, x20
	mov	w1, #47
	mov	w2, #3
	bl	_UNSTUFF_BITS
	mov	x21, x0
	mov	x0, x20
	mov	w1, #62
	mov	w2, #12
	bl	_UNSTUFF_BITS
	add	w8, w0, #1
	add	w9, w21, #2
	lsl	w8, w8, w9
	str	w8, [x19, #40]
	mov	x0, x20
	mov	w1, #80
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #44]
	mov	x0, x20
	mov	w1, #79
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #48]
	mov	x0, x20
	mov	w1, #78
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #52]
	mov	x0, x20
	mov	w1, #77
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #56]
	mov	x0, x20
	mov	w1, #76
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #60]
	mov	x0, x20
	mov	w1, #26
	mov	w2, #3
	bl	_UNSTUFF_BITS
	str	w0, [x19, #64]
	mov	x0, x20
	mov	w1, #22
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #68]
	mov	x0, x20
	mov	w1, #21
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #72]
	ldr	w8, [x19, #68]
	cmp	w8, #9
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #42
	mov	w2, #5
	bl	_UNSTUFF_BITS
	mov	x21, x0
	mov	x0, x20
	mov	w1, #37
	mov	w2, #5
	bl	_UNSTUFF_BITS
	mov	x8, x0
	mov	w0, #0
	add	w9, w21, #1
	madd	w8, w9, w8, w9
	ldr	w9, [x19, #68]
	sub	w9, w9, #9
	lsl	w8, w8, w9
	str	w8, [x19, #76]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
	bl	_mmc_hostname
	mov	x1, x0
	ldrsw	x2, [x19, #16]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unrecognised CSD structure version %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_taac_exp,8,3                   ; @taac_exp
	.comm	_taac_mant,8,3                  ; @taac_mant
	.comm	_tran_exp,8,3                   ; @tran_exp
	.comm	_tran_mant,8,3                  ; @tran_mant
	.no_dead_strip	_mmc_decode_csd
.subsections_via_symbols
