	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_read_ssr
_mmc_read_ssr:                          ## @mmc_read_ssr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_CCC_APP_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mmc_app_sd_status
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	movl	32(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movl	32(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_5:
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 12(%rcx)
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	20(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	24(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 24(%rcx)
	movl	28(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 28(%rcx)
	movl	32(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 32(%rcx)
	movl	36(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 36(%rcx)
	movl	40(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 40(%rcx)
	movl	44(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 44(%rcx)
	movl	48(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 48(%rcx)
	movl	52(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 52(%rcx)
	movl	56(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 56(%rcx)
	movl	60(%rbx), %edi
	callq	_be32_to_cpu
	movq	24(%r14), %rcx
	movl	%eax, 60(%rcx)
	movq	%rbx, %rdi
	callq	_kfree
	movq	24(%r14), %rdi
	movl	$44, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$10, %eax
	jb	LBB0_8
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_8:
	movq	_sd_au_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 44(%r14)
	movq	24(%r14), %rdi
	movl	$24, %esi
	movl	$16, %edx
	callq	_UNSTUFF_BITS
	movq	%rax, %r15
	movq	24(%r14), %rdi
	movl	$18, %esi
	movl	$6, %edx
	callq	_UNSTUFF_BITS
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	movq	24(%r14), %rdi
	movl	$16, %esi
	movl	$2, %edx
	callq	_UNSTUFF_BITS
	movq	%rax, %rcx
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, 36(%r14)
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	movl	%eax, 40(%r14)
	jmp	LBB0_12
LBB0_11:
	movl	32(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_12:
	movq	24(%r14), %rax
	movl	24(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$25, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movq	_SD_ERASE_ARG@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_SD_DISCARD_ARG@GOTPCREL(%rip), %rdx
LBB0_14:
	cmpq	$0, (%r14)
	cmovneq	%rdx, %rcx
	movl	(%rcx), %eax
	movl	%eax, 16(%r14)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_19
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCC_APP_SPEC,4,2               ## @CCC_APP_SPEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: card lacks mandatory SD Status function\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%s: problem reading SD Status register\n"

	.comm	_sd_au_size,8,3                 ## @sd_au_size
L_.str.2:                               ## @.str.2
	.asciz	"%s: SD Status: Invalid Allocation Unit size\n"

	.comm	_SD_DISCARD_ARG,4,2             ## @SD_DISCARD_ARG
	.comm	_SD_ERASE_ARG,4,2               ## @SD_ERASE_ARG
	.no_dead_strip	_mmc_read_ssr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_read_ssr
_mmc_read_ssr:                          ; @mmc_read_ssr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	w8, [x0, #48]
Lloh3:
	adrp	x9, _CCC_APP_SPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCC_APP_SPEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mmc_app_sd_status
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #32]
	bl	_mmc_hostname
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	ldr	w0, [x19, #32]
	bl	_mmc_hostname
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	w0, #0
	b	LBB0_14
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	ldr	w0, [x20]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	ldr	w0, [x20, #12]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #12]
	ldr	w0, [x20, #16]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #16]
	ldr	w0, [x20, #20]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #20]
	ldr	w0, [x20, #24]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #24]
	ldr	w0, [x20, #28]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #28]
	ldr	w0, [x20, #32]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #32]
	ldr	w0, [x20, #36]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #36]
	ldr	w0, [x20, #40]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #40]
	ldr	w0, [x20, #44]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #44]
	ldr	w0, [x20, #48]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #48]
	ldr	w0, [x20, #52]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #52]
	ldr	w0, [x20, #56]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #56]
	ldr	w0, [x20, #60]
	bl	_be32_to_cpu
	ldr	x8, [x19, #24]
	str	w0, [x8, #60]
	mov	x0, x20
	bl	_kfree
	ldr	x0, [x19, #24]
	mov	w1, #44
	mov	w2, #4
	bl	_UNSTUFF_BITS
	cbz	w0, LBB0_13
; %bb.7:
	cmp	w0, #10
	b.lo	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _sd_au_size@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sd_au_size@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
	str	w8, [x19, #44]
	ldr	x0, [x19, #24]
	mov	w1, #24
	mov	w2, #16
	bl	_UNSTUFF_BITS
	mov	x20, x0
	ldr	x0, [x19, #24]
	mov	w1, #18
	mov	w2, #6
	bl	_UNSTUFF_BITS
	cbz	w20, LBB0_13
; %bb.10:
	mov	x21, x0
	cbz	w21, LBB0_13
; %bb.11:
	ldr	x0, [x19, #24]
	mov	w1, #16
	mov	w2, #2
	bl	_UNSTUFF_BITS
	mov	w8, #1000
	mul	w9, w21, w8
	udiv	w9, w9, w20
	mul	w8, w0, w8
	stp	w9, w8, [x19, #36]
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #32]
	bl	_mmc_hostname
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #24]
	str	w8, [sp, #20]
	add	x0, sp, #8
	mov	w1, #25
	mov	w2, #1
	bl	_UNSTUFF_BITS
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	cmp	x8, #0
Lloh21:
	adrp	x8, _SD_DISCARD_ARG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SD_DISCARD_ARG@GOTPAGEOFF]
	ccmp	x9, #0, #4, ne
Lloh23:
	adrp	x9, _SD_ERASE_ARG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SD_ERASE_ARG@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_14:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CCC_APP_SPEC,4,2               ; @CCC_APP_SPEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: card lacks mandatory SD Status function\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%s: problem reading SD Status register\n"

	.comm	_sd_au_size,8,3                 ; @sd_au_size
l_.str.2:                               ; @.str.2
	.asciz	"%s: SD Status: Invalid Allocation Unit size\n"

	.comm	_SD_DISCARD_ARG,4,2             ; @SD_DISCARD_ARG
	.comm	_SD_ERASE_ARG,4,2               ; @SD_ERASE_ARG
	.no_dead_strip	_mmc_read_ssr
.subsections_via_symbols
