	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_usb_add_cmd               ## -- Begin function rtsx_usb_add_cmd
	.p2align	4, 0x90
_rtsx_usb_add_cmd:                      ## @rtsx_usb_add_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	movq	_IOBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_CMD_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	subl	%r10d, %r11d
	leal	3(%r11), %eax
	testl	%r11d, %r11d
	cmovnsl	%r11d, %eax
	sarl	$2, %eax
	cmpl	%eax, %r9d
	jge	LBB0_2
## %bb.1:
	leal	(%r10,%r9,4), %r9d
	shll	$6, %esi
	movzbl	%sil, %esi
	movl	%edx, %eax
	shrl	$8, %eax
	andl	$63, %eax
	orl	%esi, %eax
	movq	8(%rdi), %r10
	movslq	%r9d, %rsi
	movl	%eax, (%r10,%rsi,4)
	movl	%edx, 4(%r10,%rsi,4)
	movl	%ecx, 8(%r10,%rsi,4)
	movl	%r8d, 12(%r10,%rsi,4)
	incl	(%rdi)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOBUF_SIZE,4,2                 ## @IOBUF_SIZE
	.comm	_CMD_OFFSET,4,2                 ## @CMD_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_usb_add_cmd               ; -- Begin function rtsx_usb_add_cmd
	.p2align	2
_rtsx_usb_add_cmd:                      ; @rtsx_usb_add_cmd
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IOBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IOBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _CMD_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w10, w10, w9
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w8, w10, asr #2
	b.ge	LBB0_2
; %bb.1:
	add	w8, w9, w8, lsl #2
	ubfiz	w9, w1, #6, #2
	bfxil	w9, w2, #8, #6
	ldr	x10, [x0, #8]
	add	x8, x10, w8, sxtw #2
	stp	w9, w2, [x8]
	stp	w3, w4, [x8, #8]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IOBUF_SIZE,4,2                 ; @IOBUF_SIZE
	.comm	_CMD_OFFSET,4,2                 ; @CMD_OFFSET
.subsections_via_symbols
