	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstick_init_req_sg           ## -- Begin function memstick_init_req_sg
	.p2align	4, 0x90
_memstick_init_req_sg:                  ## @memstick_init_req_sg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	%sil, (%rdi)
	testb	$8, %sil
	jne	LBB0_1
## %bb.2:
	movq	_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_WRITE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movl	(%rdx), %eax
	movl	%eax, 12(%rdi)
	movl	$1, 4(%rdi)
	movq	_MS_TPC_SET_CMD@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	sete	%al
	movq	_MS_TPC_EX_SET_CMD@GOTPCREL(%rip), %rcx
	cmpb	%sil, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_READ,4,2                       ## @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_sg           ; -- Begin function memstick_init_req_sg
	.p2align	2
_memstick_init_req_sg:                  ; @memstick_init_req_sg
	.cfi_startproc
; %bb.0:
	strb	w1, [x0]
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WRITE@GOTPAGEOFF]
	tst	w1, #0x8
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w8, [x2]
	str	w8, [x0, #12]
	mov	w8, #1
Lloh4:
	adrp	x9, _MS_TPC_SET_CMD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MS_TPC_SET_CMD@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh6:
	adrp	x10, _MS_TPC_EX_SET_CMD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MS_TPC_EX_SET_CMD@GOTPAGEOFF]
	cmp	w9, w1
	ldrb	w9, [x10]
	ccmp	w9, w1, #4, ne
	cset	w9, eq
	stp	w8, w9, [x0, #4]
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_READ,4,2                       ; @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
