	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_usb_seq_cmd_hdr
_rtsx_usb_seq_cmd_hdr:                  ## @rtsx_usb_seq_cmd_hdr
	.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	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_rtsx_usb_cmd_hdr_tag
	movq	(%r12), %rax
	movq	_PACKET_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, (%rax,%rcx,8)
	movslq	%ebx, %rcx
	sarl	$8, %ebx
	movslq	%ebx, %rdx
	movq	%rdx, 40(%rax)
	movq	%rcx, 48(%rax)
	movslq	%r15d, %rcx
	sarl	$8, %r15d
	movslq	%r15d, %rdx
	movq	%rdx, 64(%rax)
	movq	%rcx, 72(%rax)
	movq	_SEQ_WRITE@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_STAGE_R@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_STAGE_FLAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rax,%rdx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_TYPE,8,3                ## @PACKET_TYPE
	.comm	_SEQ_WRITE,8,3                  ## @SEQ_WRITE
	.comm	_STAGE_FLAG,8,3                 ## @STAGE_FLAG
	.comm	_STAGE_R,8,3                    ## @STAGE_R
	.no_dead_strip	_rtsx_usb_seq_cmd_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_usb_seq_cmd_hdr
_rtsx_usb_seq_cmd_hdr:                  ; @rtsx_usb_seq_cmd_hdr
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_rtsx_usb_cmd_hdr_tag
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _PACKET_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PACKET_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x19, [x8, x9, lsl #3]
	sbfx	x9, x20, #8, #24
	sxtw	x10, w20
	stp	x9, x10, [x8, #40]
	sbfx	x9, x21, #8, #24
	sxtw	x10, w21
Lloh3:
	adrp	x11, _SEQ_WRITE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SEQ_WRITE@GOTPAGEOFF]
	stp	x9, x10, [x8, #64]
Lloh5:
	ldr	x9, [x11]
Lloh6:
	adrp	x10, _STAGE_R@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STAGE_R@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x19
	csel	x9, xzr, x10, eq
Lloh9:
	adrp	x10, _STAGE_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _STAGE_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	x9, [x8, x10, lsl #3]
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_TYPE,8,3                ; @PACKET_TYPE
	.comm	_SEQ_WRITE,8,3                  ; @SEQ_WRITE
	.comm	_STAGE_FLAG,8,3                 ; @STAGE_FLAG
	.comm	_STAGE_R,8,3                    ; @STAGE_R
	.no_dead_strip	_rtsx_usb_seq_cmd_hdr
.subsections_via_symbols
