	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_auxbuf_append_urb
_cxusb_auxbuf_append_urb:               ## @cxusb_auxbuf_append_urb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	(%rdx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %r8
	leaq	-1(%r10), %rax
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_4:
	andl	$-4, %r10d
	leaq	48(%r8), %rax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rax), %ecx
	movl	-32(%rax), %esi
	addq	%rdx, %rcx
	addq	%rcx, %rsi
	movl	-16(%rax), %ecx
	addq	%rsi, %rcx
	movl	(%rax), %edx
	addq	%rcx, %rdx
	addq	$4, %rbx
	addq	$64, %rax
	cmpq	%rbx, %r10
	jne	LBB0_5
LBB0_6:
	testq	%r9, %r9
	je	LBB0_9
## %bb.7:
	shlq	$4, %rbx
	addq	%rbx, %r8
	shlq	$4, %r9
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rax), %ecx
	addq	%rcx, %rdx
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rsi
	callq	_cxusb_auxbuf_make_space
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.10:
	movq	(%r14), %rdi
	movl	$8, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	addq	8(%r14), %rdi
	movl	-8(%rax,%r13), %ebx
	movq	(%rax,%r13), %rsi
	addq	16(%r12), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addq	(%r14), %rbx
	movq	%rbx, (%r14)
	incq	%r15
	movslq	(%r12), %rax
	addq	$16, %r13
	movq	%rbx, %rdi
	cmpq	%rax, %r15
	jl	LBB0_11
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cxusb_auxbuf_append_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_auxbuf_append_urb
_cxusb_auxbuf_append_urb:               ; @cxusb_auxbuf_append_urb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w8, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	x2, #0
	b	LBB0_7
LBB0_3:
	mov	x2, #0
	b	LBB0_9
LBB0_4:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x12, x9, #64
	movi.2d	v0, #0000000000000000
	mov	x11, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x12, #64
	sub	x14, x12, #32
	ld4.2s	{ v4, v5, v6, v7 }, [x13]
	ld4.2s	{ v16, v17, v18, v19 }, [x14]
	add	x13, x12, #128
	ld4.2s	{ v20, v21, v22, v23 }, [x12], #32
	ld4.2s	{ v24, v25, v26, v27 }, [x12]
	uaddw.2d	v0, v0, v4
	uaddw.2d	v1, v1, v16
	uaddw.2d	v2, v2, v20
	uaddw.2d	v3, v3, v24
	mov	x12, x13
	subs	x11, x11, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x2, d0
LBB0_7:
	add	x9, x9, x10, lsl #4
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #16
	add	x2, x2, x10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x1, x20
	bl	_cxusb_auxbuf_make_space
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x20]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x19, #8]
	add	x9, x9, x23
	ldr	w22, [x9]
	ldr	x11, [x20, #8]
	add	x0, x8, x11
	ldr	x8, [x9, #8]
	add	x1, x8, x10
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x22
	str	x8, [x20]
	add	x24, x24, #1
	ldrsw	x9, [x19]
	add	x23, x23, #16
	cmp	x24, x9
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cxusb_auxbuf_append_urb
.subsections_via_symbols
