	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hid_set_data
LCPI0_0:
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	24                              ## 0x18
LCPI0_1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_4:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hid_set_data
	.p2align	4, 0x90
_hid_set_data:                          ## @hid_set_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movzbl	%al, %eax
	movl	%eax, (%rdi)
	addq	$4, %rdi
LBB0_2:
	movl	8(%rsi), %r9d
	movl	$-1, %r8d
	movl	%r9d, %ecx
	shll	%cl, %r8d
	movl	4(%rsi), %ebx
	movl	$-1, %ecx
	cmpl	$32, %r9d
	notl	%r8d
	cmovel	%ecx, %r8d
	andl	%r8d, %edx
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movl	%eax, %esi
	andl	$-8, %esi
	movl	%ebx, %ecx
	subl	%esi, %ecx
	shll	%cl, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	sarl	$3, %eax
	leal	(%r9,%rbx), %r11d
	addl	$7, %r11d
	movl	%r9d, %ecx
	addl	%ebx, %ecx
	cmovnsl	%ecx, %r11d
	sarl	$3, %r11d
	subl	%eax, %r11d
	jl	LBB0_15
## %bb.3:
	movslq	%eax, %r9
	incl	%r11d
	cmpl	$4, %r11d
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movl	%r11d, %eax
	andl	$-4, %eax
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm11               ## xmm11 = xmm0[0,0,0,0]
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm12               ## xmm12 = xmm1[0,0,0,0]
	leaq	-4(%rax), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r10, %rsi
	andq	$-2, %rsi
	leaq	(%rdi,%r9,4), %rbx
	addq	$16, %rbx
	movdqa	LCPI0_1(%rip), %xmm13           ## xmm13 = [0,1,2,3]
	xorl	%ecx, %ecx
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm8            ## xmm8 = [32,32,32,32]
	movdqa	LCPI0_4(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm13, %xmm6
	pslld	$3, %xmm6
	pshuflw	$254, %xmm6, %xmm7              ## xmm7 = xmm6[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm0
	psrad	%xmm7, %xmm0
	pshufd	$238, %xmm6, %xmm5              ## xmm5 = xmm6[2,3,2,3]
	pshuflw	$254, %xmm5, %xmm3              ## xmm3 = xmm5[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm4
	psrad	%xmm3, %xmm4
	pblendw	$15, %xmm0, %xmm4               ## xmm4 = xmm0[0,1,2,3],xmm4[4,5,6,7]
	pshuflw	$84, %xmm6, %xmm0               ## xmm0 = xmm6[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm1
	psrad	%xmm0, %xmm1
	pshuflw	$84, %xmm5, %xmm5               ## xmm5 = xmm5[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm5, %xmm2
	pblendw	$15, %xmm1, %xmm2               ## xmm2 = xmm1[0,1,2,3],xmm2[4,5,6,7]
	pblendw	$204, %xmm4, %xmm2              ## xmm2 = xmm2[0,1],xmm4[2,3],xmm2[4,5],xmm4[6,7]
	movdqu	-16(%rbx,%rcx,4), %xmm1
	pandn	%xmm1, %xmm2
	movdqa	%xmm12, %xmm1
	psrad	%xmm7, %xmm1
	movdqu	(%rbx,%rcx,4), %xmm7
	movdqa	%xmm12, %xmm4
	psrad	%xmm3, %xmm4
	pblendw	$15, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,2,3],xmm4[4,5,6,7]
	movdqa	%xmm12, %xmm1
	psrad	%xmm0, %xmm1
	movdqa	%xmm12, %xmm0
	psrad	%xmm5, %xmm0
	pblendw	$15, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,2,3],xmm0[4,5,6,7]
	pblendw	$204, %xmm4, %xmm0              ## xmm0 = xmm0[0,1],xmm4[2,3],xmm0[4,5],xmm4[6,7]
	pand	%xmm10, %xmm0
	por	%xmm2, %xmm0
	paddd	%xmm8, %xmm6
	pshuflw	$254, %xmm6, %xmm1              ## xmm1 = xmm6[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm1, %xmm2
	pshufd	$238, %xmm6, %xmm3              ## xmm3 = xmm6[2,3,2,3]
	pshuflw	$254, %xmm3, %xmm4              ## xmm4 = xmm3[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm4, %xmm5
	movdqu	%xmm0, -16(%rbx,%rcx,4)
	pshuflw	$84, %xmm6, %xmm0               ## xmm0 = xmm6[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm0, %xmm6
	pblendw	$15, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3],xmm5[4,5,6,7]
	pshuflw	$84, %xmm3, %xmm2               ## xmm2 = xmm3[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm3
	psrad	%xmm2, %xmm3
	pblendw	$15, %xmm6, %xmm3               ## xmm3 = xmm6[0,1,2,3],xmm3[4,5,6,7]
	pblendw	$204, %xmm5, %xmm3              ## xmm3 = xmm3[0,1],xmm5[2,3],xmm3[4,5],xmm5[6,7]
	movdqa	%xmm12, %xmm5
	psrad	%xmm1, %xmm5
	pandn	%xmm7, %xmm3
	movdqa	%xmm12, %xmm1
	psrad	%xmm4, %xmm1
	pblendw	$15, %xmm5, %xmm1               ## xmm1 = xmm5[0,1,2,3],xmm1[4,5,6,7]
	movdqa	%xmm12, %xmm4
	psrad	%xmm0, %xmm4
	movdqa	%xmm12, %xmm0
	psrad	%xmm2, %xmm0
	pblendw	$15, %xmm4, %xmm0               ## xmm0 = xmm4[0,1,2,3],xmm0[4,5,6,7]
	pblendw	$204, %xmm1, %xmm0              ## xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7]
	pand	%xmm10, %xmm0
	por	%xmm3, %xmm0
	movdqu	%xmm0, (%rbx,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm9, %xmm13
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	pslld	$3, %xmm13
	testb	$1, %r10b
	je	LBB0_12
LBB0_11:
	addq	%r9, %rcx
	movdqu	(%rdi,%rcx,4), %xmm0
	pshuflw	$254, %xmm13, %xmm1             ## xmm1 = xmm13[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm1, %xmm2
	pshufd	$238, %xmm13, %xmm3             ## xmm3 = xmm13[2,3,2,3]
	pshuflw	$254, %xmm3, %xmm4              ## xmm4 = xmm3[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm4, %xmm5
	pblendw	$15, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3],xmm5[4,5,6,7]
	pshuflw	$84, %xmm13, %xmm2              ## xmm2 = xmm13[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm2, %xmm6
	pshuflw	$84, %xmm3, %xmm3               ## xmm3 = xmm3[0,1,1,1,4,5,6,7]
	psrad	%xmm3, %xmm11
	pblendw	$15, %xmm6, %xmm11              ## xmm11 = xmm6[0,1,2,3],xmm11[4,5,6,7]
	pblendw	$204, %xmm5, %xmm11             ## xmm11 = xmm11[0,1],xmm5[2,3],xmm11[4,5],xmm5[6,7]
	movdqa	%xmm12, %xmm5
	psrad	%xmm1, %xmm5
	movdqa	%xmm12, %xmm1
	psrad	%xmm4, %xmm1
	pandn	%xmm0, %xmm11
	pblendw	$15, %xmm5, %xmm1               ## xmm1 = xmm5[0,1,2,3],xmm1[4,5,6,7]
	movdqa	%xmm12, %xmm0
	psrad	%xmm2, %xmm0
	psrad	%xmm3, %xmm12
	pblendw	$15, %xmm0, %xmm12              ## xmm12 = xmm0[0,1,2,3],xmm12[4,5,6,7]
	pblendw	$204, %xmm1, %xmm12             ## xmm12 = xmm12[0,1],xmm1[2,3],xmm12[4,5],xmm1[6,7]
	pand	LCPI0_2(%rip), %xmm12
	por	%xmm11, %xmm12
	movdqu	%xmm12, (%rdi,%rcx,4)
LBB0_12:
	cmpq	%r11, %rax
	je	LBB0_15
LBB0_13:
	leal	(,%rax,8), %ecx
	leaq	(%rdi,%r9,4), %rsi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %edi
	sarl	%cl, %edi
	notl	%edi
	movl	%edx, %ebx
	sarl	%cl, %ebx
	andl	(%rsi,%rax,4), %edi
	movzbl	%bl, %ebx
	orl	%edi, %ebx
	movl	%ebx, (%rsi,%rax,4)
	incq	%rax
	addl	$8, %ecx
	cmpq	%rax, %r11
	jne	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movdqa	LCPI0_0(%rip), %xmm13           ## xmm13 = [0,8,16,24]
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.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 hid_set_data
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hid_set_data
	.p2align	2
_hid_set_data:                          ; @hid_set_data
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	and	w8, w8, #0xff
	str	w8, [x0], #4
LBB0_2:
	ldp	w8, w12, [x1, #4]
	mov	w9, #-1
	lsl	w10, w9, w12
	cmp	w12, #32
	csinv	w9, w9, w10, eq
	add	w10, w8, #7
	cmp	w8, #0
	csel	w11, w10, w8, lt
	asr	w10, w11, #3
	add	w12, w12, w8
	add	w13, w12, #7
	cmp	w12, #0
	csel	w12, w13, w12, lt
	asr	w12, w12, #3
	subs	w12, w12, w10
	b.lt	LBB0_10
; %bb.3:
	and	w13, w9, w2
	and	w11, w11, #0xfffffff8
	sub	w11, w8, w11
	lsl	w8, w13, w11
	lsl	w9, w9, w11
	sxtw	x11, w10
	add	w10, w12, #1
	cmp	w10, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x12, #0
	b	LBB0_8
LBB0_5:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w9
	dup.4s	v1, w8
	add	x13, x0, x11, lsl #2
	add	x13, x13, #32
Lloh0:
	adrp	x14, lCPI0_0@PAGE
Lloh1:
	ldr	q2, [x14, lCPI0_0@PAGEOFF]
	mvni.4s	v3, #31
	mvni.4s	v4, #63
	mvni.4s	v5, #95
	movi.2d	v6, #0x0000ff000000ff
	movi.4s	v7, #16
	mov	x14, x12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x13, #-32]
	ldp	q18, q19, [x13]
	shl.4s	v20, v2, #3
	neg.4s	v21, v20
	sshl.4s	v22, v0, v21
	sub.4s	v23, v3, v20
	sshl.4s	v24, v0, v23
	sub.4s	v25, v4, v20
	sshl.4s	v26, v0, v25
	sub.4s	v20, v5, v20
	sshl.4s	v27, v0, v20
	bic.16b	v16, v16, v22
	bic.16b	v17, v17, v24
	bic.16b	v18, v18, v26
	bic.16b	v19, v19, v27
	sshl.4s	v21, v1, v21
	sshl.4s	v22, v1, v23
	sshl.4s	v23, v1, v25
	sshl.4s	v20, v1, v20
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	and.16b	v23, v23, v6
	and.16b	v20, v20, v6
	orr.16b	v16, v16, v21
	orr.16b	v17, v17, v22
	orr.16b	v18, v18, v23
	orr.16b	v19, v19, v20
	stp	q16, q17, [x13, #-32]
	stp	q18, q19, [x13], #64
	add.4s	v2, v2, v7
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x12, x10
	b.eq	LBB0_10
LBB0_8:
	lsl	w13, w12, #3
	add	x11, x12, x11
	add	x11, x0, x11, lsl #2
	sub	x10, x10, x12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	asr	w14, w9, w13
	bic	w12, w12, w14
	asr	w14, w8, w13
	and	w14, w14, #0xff
	orr	w12, w12, w14
	str	w12, [x11], #4
	add	w13, w13, #8
	subs	x10, x10, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
