	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_ctrl_msg
_usb_ctrl_msg:                          ## @usb_ctrl_msg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rbp), %r13
	movl	%ecx, -52(%rbp)
	movl	%r8d, -48(%rbp)
	addq	$16, %rdi
	callq	_fifo_add
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%rbx), %r14
	movl	%eax, %eax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	imulq	$56, %rax, %r13
	movq	%r12, 48(%r14,%r13)
	movq	%r15, 40(%r14,%r13)
	leaq	-52(%rbp), %rdi
	callq	_cpu_to_le16p
	movq	%rax, 32(%r14,%r13)
	leaq	-48(%rbp), %rdi
	callq	_cpu_to_le16p
	movq	%rax, 24(%r14,%r13)
	movq	$0, 16(%r14,%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14,%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14,%r13)
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_usb_next_ctrl_msg
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARNING                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control msg FIFO full"

	.no_dead_strip	_usb_ctrl_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_ctrl_msg
_usb_ctrl_msg:                          ; @usb_ctrl_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x6
	mov	x21, x5
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	stp	w4, w3, [sp, #8]
	add	x0, x0, #16
	bl	_fifo_add
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	mov	w9, #56
	umaddl	x24, w0, w9, x8
	stp	x22, x23, [x24, #40]
	add	x0, sp, #12
	bl	_cpu_to_le16p
	str	x0, [x24, #32]
	add	x0, sp, #8
	bl	_cpu_to_le16p
	stp	xzr, x0, [x24, #16]
	str	w21, [x24, #8]
	str	x19, [x24]
	ldr	w0, [x20]
	mov	x1, x20
	bl	_usb_next_ctrl_msg
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_WARNING
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control msg FIFO full"

	.no_dead_strip	_usb_ctrl_msg
.subsections_via_symbols
