	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstick_init_req              ## -- Begin function memstick_init_req
	.p2align	4, 0x90
_memstick_init_req:                     ## @memstick_init_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movb	%r14b, (%rdi)
	testb	$8, %r14b
	jne	LBB0_1
## %bb.2:
	movq	_READ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_WRITE@GOTPCREL(%rip), %rdi
	cmpq	$4, %rcx
	movl	$4, %eax
	cmovbq	%rcx, %rax
	cmpq	(%rdi), %rsi
	movq	%rsi, 8(%rbx)
	movl	%eax, 16(%rbx)
	je	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	cmpq	$4, %rcx
	movl	$4, %eax
	cmovbq	%rcx, %rax
	movl	%eax, 16(%rbx)
LBB0_3:
	movl	32(%rbx), %edi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_memcpy
LBB0_4:
	movq	$0, 24(%rbx)
	movq	_MS_TPC_SET_CMD@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	sete	%al
	movq	_MS_TPC_EX_SET_CMD@GOTPCREL(%rip), %rcx
	cmpb	%r14b, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 20(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_READ,8,3                       ## @READ
	.comm	_MS_TPC_SET_CMD,1,0             ## @MS_TPC_SET_CMD
	.comm	_MS_TPC_EX_SET_CMD,1,0          ## @MS_TPC_EX_SET_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstick_init_req              ; -- Begin function memstick_init_req
	.p2align	2
_memstick_init_req:                     ; @memstick_init_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
	strb	w1, [x0]
	tbnz	w1, #3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	str	x9, [x19, #8]
	mov	w8, #4
	cmp	x3, #4
	csel	x8, x3, x8, lo
	str	w8, [x19, #16]
	cmp	x9, x10
	b.eq	LBB0_3
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #4
	cmp	x3, #4
	csel	x8, x3, x8, lo
	str	w8, [x19, #16]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_3:
	ldr	w0, [x19, #32]
	mov	x1, x2
	mov	x2, x8
	bl	_memcpy
LBB0_4:
	str	xzr, [x19, #24]
Lloh9:
	adrp	x8, _MS_TPC_SET_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_TPC_SET_CMD@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20
Lloh11:
	adrp	x8, _MS_TPC_EX_SET_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MS_TPC_EX_SET_CMD@GOTPAGEOFF]
	ldrb	w8, [x8]
	ccmp	w8, w20, #4, ne
	cset	w8, eq
	str	w8, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_READ,8,3                       ; @READ
	.comm	_MS_TPC_SET_CMD,1,0             ; @MS_TPC_SET_CMD
	.comm	_MS_TPC_EX_SET_CMD,1,0          ; @MS_TPC_EX_SET_CMD
.subsections_via_symbols
