	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msb_read_oob
_msb_read_oob:                          ## @msb_read_oob
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_cpu_to_be16
	movl	%eax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_MEMSTICK_CP_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	cmpq	%r12, (%rbx)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_h_msb_read_page@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msb_run_state_machine
	movl	8(%rbx), %ecx
	movl	%ecx, (%r15)
	movq	_EUCLEAN@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_pr_notice
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMSTICK_CP_EXTRA,4,2          ## @MEMSTICK_CP_EXTRA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: attempt to read beyond the end of card at pba %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_h_msb_read_page,4,2            ## @h_msb_read_page
	.comm	_EUCLEAN,4,2                    ## @EUCLEAN
L_.str.1:                               ## @.str.1
	.asciz	"correctable error on pba %d, page %d"

	.no_dead_strip	_msb_read_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msb_read_oob
_msb_read_oob:                          ; @msb_read_oob
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	cmp	x3, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_cpu_to_be16
	str	w0, [x22, #32]
	str	x20, [x22, #24]
Lloh0:
	adrp	x8, _MEMSTICK_CP_EXTRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMSTICK_CP_EXTRA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldr	x8, [x22]
	cmp	x8, x19
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _h_msb_read_page@GOTPAGE
Lloh9:
	ldr	x8, [x8, _h_msb_read_page@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msb_run_state_machine
	ldr	w8, [x22, #8]
	str	w8, [x21]
Lloh11:
	adrp	x8, _EUCLEAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EUCLEAN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_notice
	mov	w0, #0
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMSTICK_CP_EXTRA,4,2          ; @MEMSTICK_CP_EXTRA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: attempt to read beyond the end of card at pba %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_h_msb_read_page,4,2            ; @h_msb_read_page
	.comm	_EUCLEAN,4,2                    ; @EUCLEAN
l_.str.1:                               ; @.str.1
	.asciz	"correctable error on pba %d, page %d"

	.no_dead_strip	_msb_read_oob
.subsections_via_symbols
