	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msb_read_int_reg
_msb_read_int_reg:                      ## @msb_read_int_reg
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	cmpl	$-1, (%rbx)
	sete	%dil
	callq	_WARN_ON
	cmpl	$0, 4(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	je	LBB0_1
## %bb.6:
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	_MEMSTICK_INT_CMDNAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	cmpq	$-1, %r15
	movl	$500, %edi                      ## imm = 0x1F4
	cmovnel	%r15d, %edi
	callq	_msecs_to_jiffies
	addq	%r12, %rax
	movq	%rax, 16(%rbx)
	movl	$1, 4(%rbx)
LBB0_2:
	movq	_MEMSTICK_CAP_AUTO_GET_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_8
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.4:
	cmpl	$0, 16(%r14)
	je	LBB0_5
LBB0_8:
	movq	_MS_TPC_GET_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_memstick_init_req
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%r14), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MEMSTICK_INT_CMDNAK,4,2        ## @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_CAP_AUTO_GET_INT,4,2  ## @MEMSTICK_CAP_AUTO_GET_INT
	.comm	_MS_TPC_GET_INT,4,2             ## @MS_TPC_GET_INT
	.no_dead_strip	_msb_read_int_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msb_read_int_reg
_msb_read_int_reg:                      ; @msb_read_int_reg
	.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, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w8, [x0]
	cmn	w8, #1
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x9]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x1, [x20, #16]
	mov	x0, x22
	bl	_time_after
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #0
Lloh3:
	adrp	x8, _MEMSTICK_INT_CMDNAK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMSTICK_INT_CMDNAK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	b	LBB0_8
LBB0_3:
	cmn	x21, #1
	mov	w8, #500
	csel	w0, w8, w21, eq
	bl	_msecs_to_jiffies
	add	x8, x0, x22
	str	x8, [x20, #16]
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_4:
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _MS_TPC_GET_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_TPC_GET_INT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	bl	_memstick_init_req
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	mov	w20, #0
	ldr	w8, [x19, #4]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	str	wzr, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MEMSTICK_INT_CMDNAK,4,2        ; @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_CAP_AUTO_GET_INT,4,2  ; @MEMSTICK_CAP_AUTO_GET_INT
	.comm	_MS_TPC_GET_INT,4,2             ; @MS_TPC_GET_INT
	.no_dead_strip	_msb_read_int_reg
.subsections_via_symbols
