	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstick_next_req              ## -- Begin function memstick_next_req
	.p2align	4, 0x90
_memstick_next_req:                     ## @memstick_next_req
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movl	(%r14), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movl	%eax, (%rcx)
	decl	%edx
	movl	%edx, (%r14)
	jmp	LBB0_10
LBB0_4:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rsi
	callq	*%rcx
LBB0_7:
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	$0, (%rbx)
	jmp	LBB0_11
LBB0_9:
	movq	_cmd_retries@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	$2, %eax
	movl	$1, %eax
	cmovgel	%ecx, %eax
	movl	%eax, (%r14)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_cmd_retries,4,2                ## @cmd_retries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstick_next_req              ; -- Begin function memstick_next_req
	.p2align	2
_memstick_next_req:                     ; @memstick_next_req
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w9, [x19]
	cbz	w9, LBB0_4
; %bb.3:
	str	w0, [x8]
	sub	w8, w9, #1
	str	w8, [x19]
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.6:
	mov	x0, x8
	mov	x1, x20
	blr	x9
LBB0_7:
	cbz	w0, LBB0_9
; %bb.8:
	str	xzr, [x20]
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _cmd_retries@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmd_retries@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	subs	w8, w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_cmd_retries,4,2                ; @cmd_retries
.subsections_via_symbols
