	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_decode_scr
_mmc_decode_scr:                        ## @mmc_decode_scr
	.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)
	movq	8(%rdi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$60, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_12
LBB0_2:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$56, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 20(%r14)
	movl	16(%r14), %eax
	movq	_SCR_SPEC_VER_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rdi
	movl	$47, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 24(%r14)
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movl	24(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 28(%r14)
	movq	%rbx, %rdi
	movl	$38, %esi
	movl	$4, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 32(%r14)
LBB0_7:
	leaq	-48(%rbp), %rdi
	movl	$55, %esi
	movl	$1, %edx
	callq	_UNSTUFF_BITS
	testl	%eax, %eax
	movl	$255, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	cmpl	$0, 24(%r14)
	je	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %rdi
	movl	$32, %esi
	movl	$2, %edx
	callq	_UNSTUFF_BITS
	movl	%eax, 36(%r14)
LBB0_9:
	movl	20(%r14), %eax
	movq	_SD_SCR_BUS_WIDTH_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_SD_SCR_BUS_WIDTH_4@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_13
LBB0_11:
	movl	4(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unrecognised SCR structure version %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCR_SPEC_VER_2,4,2             ## @SCR_SPEC_VER_2
	.comm	_SD_SCR_BUS_WIDTH_1,4,2         ## @SD_SCR_BUS_WIDTH_1
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ## @SD_SCR_BUS_WIDTH_4
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid bus width\n"

	.no_dead_strip	_mmc_decode_scr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_decode_scr
_mmc_decode_scr:                        ; @mmc_decode_scr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	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]
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #4]
	str	w9, [sp, #20]
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #60
	mov	w2, #4
	bl	_UNSTUFF_BITS
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_mmc_hostname
	mov	x1, x0
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	add	x0, sp, #8
	mov	w1, #56
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #16]
	add	x0, sp, #8
	mov	w1, #48
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #20]
	ldr	w8, [x19, #16]
Lloh5:
	adrp	x9, _SCR_SPEC_VER_2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCR_SPEC_VER_2@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w1, #47
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #24]
	cbnz	w0, LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #24]
	cbz	w0, LBB0_6
LBB0_5:
	add	x0, sp, #8
	mov	w1, #42
	mov	w2, #1
	bl	_UNSTUFF_BITS
	str	w0, [x19, #28]
	add	x0, sp, #8
	mov	w1, #38
	mov	w2, #4
	bl	_UNSTUFF_BITS
	str	w0, [x19, #32]
LBB0_6:
	add	x0, sp, #8
	mov	w1, #55
	mov	w2, #1
	bl	_UNSTUFF_BITS
	mov	w8, #255
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	str	w8, [x19]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	w1, #32
	mov	w2, #2
	bl	_UNSTUFF_BITS
	str	w0, [x19, #36]
LBB0_8:
	ldr	w8, [x19, #20]
Lloh8:
	adrp	x9, _SD_SCR_BUS_WIDTH_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SD_SCR_BUS_WIDTH_1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh11:
	adrp	x9, _SD_SCR_BUS_WIDTH_4@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SD_SCR_BUS_WIDTH_4@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_mmc_hostname
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_pr_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unrecognised SCR structure version %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCR_SPEC_VER_2,4,2             ; @SCR_SPEC_VER_2
	.comm	_SD_SCR_BUS_WIDTH_1,4,2         ; @SD_SCR_BUS_WIDTH_1
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ; @SD_SCR_BUS_WIDTH_4
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid bus width\n"

	.no_dead_strip	_mmc_decode_scr
.subsections_via_symbols
