	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function reg_w_ixbuf
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_3:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_4:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reg_w_ixbuf:                           ## @reg_w_ixbuf
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movl	%esi, %r8d
	movq	%rdi, %r12
	leal	(%rbx,%rbx), %r13d
	movq	_USB_BUF_SZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_3
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$2, %esi
	movl	%r8d, %r14d
	callq	_kmalloc_array
	movl	%r14d, %r8d
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_3:
	movq	8(%r12), %r14
LBB0_4:
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.5:
	leal	-1(%rbx), %eax
	cmpl	$3, %eax
	jb	LBB0_6
## %bb.7:
	leaq	(%r15,%rax,4), %rcx
	addq	$4, %rcx
	cmpq	%rcx, %r14
	jae	LBB0_10
## %bb.8:
	leaq	(%r14,%rax,8), %rcx
	addq	$8, %rcx
	cmpq	%r15, %rcx
	jbe	LBB0_10
LBB0_6:
	movq	%r14, %rax
LBB0_17:
	incl	%ebx
	movl	%r8d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rdx), %esi
	movl	%esi, (%rax,%rdx,8)
	movl	(%r15,%rdx,4), %esi
	movl	%esi, 4(%rax,%rdx,8)
	incq	%rdx
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_18
LBB0_19:
	movl	(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	%r13
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	_USB_BUF_SZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	incq	%rax
	movq	%rax, %rcx
	andq	$-4, %rcx
	movd	%r8d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	paddd	LCPI0_0(%rip), %xmm0
	leaq	-4(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.11:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <2,2,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <4,4,u,u>
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = <6,6,u,u>
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = <8,8,u,u>
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movq	(%r15,%rdx,4), %xmm6            ## xmm6 = mem[0],zero
	movq	8(%r15,%rdx,4), %xmm7           ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movdqa	%xmm0, %xmm7
	punpckldq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1]
	movdqu	%xmm7, (%r14,%rdx,8)
	movdqu	%xmm5, 16(%r14,%rdx,8)
	movdqa	%xmm0, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm3, %xmm6
	movq	16(%r15,%rdx,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movq	24(%r15,%rdx,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm6            ## xmm6 = xmm6[0],xmm7[0],xmm6[1],xmm7[1]
	movdqu	%xmm5, 32(%r14,%rdx,8)
	movdqu	%xmm6, 48(%r14,%rdx,8)
	addq	$8, %rdx
	paddd	%xmm4, %xmm0
	addq	$-2, %rdi
	jne	LBB0_12
## %bb.13:
	testb	$1, %sil
	je	LBB0_15
LBB0_14:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <2,2,u,u>
	paddd	%xmm0, %xmm1
	movq	(%r15,%rdx,4), %xmm2            ## xmm2 = mem[0],zero
	movq	8(%r15,%rdx,4), %xmm3           ## xmm3 = mem[0],zero
	punpckldq	%xmm3, %xmm1            ## xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
	leaq	(,%rdx,8), %rsi
	orq	$16, %rsi
	punpckldq	%xmm2, %xmm0            ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movdqu	%xmm0, (%r14,%rdx,8)
	movdqu	%xmm1, (%r14,%rsi)
LBB0_15:
	cmpq	%rcx, %rax
	je	LBB0_19
## %bb.16:
	leaq	(%r14,%rcx,8), %rax
	subl	%ecx, %ebx
	addl	%ecx, %r8d
	leaq	(%r15,%rcx,4), %r15
	jmp	LBB0_17
LBB0_22:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_BUF_SZ,4,2                 ## @USB_BUF_SZ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory\n"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.no_dead_strip	_reg_w_ixbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function reg_w_ixbuf
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_reg_w_ixbuf:                           ; @reg_w_ixbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	lsl	w19, w3, #1
Lloh0:
	adrp	x25, _USB_BUF_SZ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _USB_BUF_SZ@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w19, w8
	b.le	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #2
	bl	_kmalloc_array
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_pr_err
LBB0_3:
	ldr	x20, [x21, #8]
LBB0_4:
	subs	w8, w22, #1
	b.lt	LBB0_11
; %bb.5:
	cmp	w8, #15
	b.lo	LBB0_8
; %bb.6:
	add	x9, x23, w8, uxtw #2
	add	x9, x9, #4
	cmp	x20, x9
	b.hs	LBB0_14
; %bb.7:
	add	x9, x20, w8, uxtw #3
	add	x9, x9, #8
	cmp	x9, x23
	b.ls	LBB0_14
LBB0_8:
	mov	x8, x20
	mov	x10, x24
	mov	x9, x23
LBB0_9:
	add	w11, w22, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x8]
	ldr	w12, [x9], #4
	add	w10, w10, #1
	str	w12, [x8, #4]
	sub	w11, w11, #1
	add	x8, x8, #8
	cmp	w11, #1
	b.hi	LBB0_10
LBB0_11:
	ldr	w21, [x21]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh7:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #1
	mov	w5, #0
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	ldr	w8, [x25]
	cmp	w19, w8
	b.le	LBB0_13
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_kfree
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	add	x11, x8, #1
	and	x12, x11, #0x1fffffff0
	add	x8, x20, x12, lsl #3
	sub	w22, w22, w12
	add	w10, w12, w24
	add	x9, x23, x12, lsl #2
	dup.4s	v0, w24
Lloh16:
	adrp	x13, lCPI0_0@PAGE
Lloh17:
	ldr	q1, [x13, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	add	x14, x20, #64
	add	x13, x23, #32
	movi.4s	v2, #4
	movi.4s	v3, #8
	movi.4s	v4, #12
	movi.4s	v5, #16
	mov	x15, x12
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v2
	ldp	q1, q7, [x13, #-32]
	add.4s	v16, v0, v3
	add.4s	v18, v0, v4
	ldp	q17, q19, [x13], #64
	sub	x16, x14, #64
	st2.4s	{ v0, v1 }, [x16]
	sub	x16, x14, #32
	st2.4s	{ v6, v7 }, [x16]
	add	x16, x14, #128
	st2.4s	{ v16, v17 }, [x14], #32
	st2.4s	{ v18, v19 }, [x14]
	add.4s	v0, v0, v5
	mov	x14, x16
	subs	x15, x15, #16
	b.ne	LBB0_15
; %bb.16:
	cmp	x11, x12
	b.ne	LBB0_9
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_BUF_SZ,4,2                 ; @USB_BUF_SZ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory\n"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.no_dead_strip	_reg_w_ixbuf
.subsections_via_symbols
