	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_msb_reset
_h_msb_reset:                           ## @h_msb_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MS_CMD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	callq	_memstick_get_drvdata
	movq	%rax, %r14
	movq	%rbx, (%r15)
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msb_exit_state_machine         ## TAILCALL
LBB0_3:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movq	_MS_TPC_SET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_memstick_init_req
	movl	$0, (%rbx)
	movl	$129, (%r14)
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_CMD_RESET,4,2               ## @MS_CMD_RESET
	.comm	_MS_TPC_SET_CMD,4,2             ## @MS_TPC_SET_CMD
	.no_dead_strip	_h_msb_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h_msb_reset
_h_msb_reset:                           ; @h_msb_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MS_CMD_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MS_CMD_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_memstick_get_drvdata
	mov	x20, x0
	str	x19, [x21]
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x20
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_msb_exit_state_machine
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _MS_TPC_SET_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_TPC_SET_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_memstick_init_req
	str	wzr, [x19]
	mov	w8, #129
	str	w8, [x20]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, #0
	b	LBB0_2
LBB0_7:
	bl	_BUG
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_CMD_RESET,4,2               ; @MS_CMD_RESET
	.comm	_MS_TPC_SET_CMD,4,2             ; @MS_TPC_SET_CMD
	.no_dead_strip	_h_msb_reset
.subsections_via_symbols
