	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function u1_read_write_register
_u1_read_write_register:                ## @u1_read_write_register
	.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	%r8d, %r12d
	movl	%ecx, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_U1_FEATURE_REPORT_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_U1_FEATURE_REPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	cmovel	%r15d, %eax
	movq	_U1_CMD_REGISTER_READ@GOTPCREL(%rip), %rcx
	cmoveq	_U1_CMD_REGISTER_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, 24(%rbx)
	leaq	8(%rbx), %rsi
	movl	%r13d, %edi
	callq	_put_unaligned_le32
	movq	_U1_FEATURE_REPORT_LEN_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	cmpl	$2, %ecx
	jl	LBB0_3
## %bb.4:
	leal	-1(%rcx), %eax
	cmpl	$8, %eax
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_6:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%esi, %xmm0
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rdi
	jae	LBB0_8
## %bb.7:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rdi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rbx,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rbx,%rdi,4), %xmm1
	movdqu	48(%rbx,%rdi,4), %xmm3
	movdqu	64(%rbx,%rdi,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rbx,%rdi,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rbx,%rdi,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rbx,%rdi,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_12
LBB0_13:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rax, %rdx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rbx,%rdx,4), %esi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_15:
	movl	%esi, 28(%rbx)
	movq	_U1_FEATURE_REPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_hid_hw_raw_request
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.18:
	movq	_U1_FEATURE_REPORT_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %r12
	movq	_U1_FEATURE_REPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	(%r15), %r8d
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_hid_hw_raw_request
	testl	%eax, %eax
	js	LBB0_21
## %bb.22:
	movl	24(%r12), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_23
LBB0_16:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_23
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_23
LBB0_21:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree
	movl	%r15d, %r13d
LBB0_23:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_24:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U1_FEATURE_REPORT_LEN,4,2      ## @U1_FEATURE_REPORT_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_U1_FEATURE_REPORT_ID,4,2       ## @U1_FEATURE_REPORT_ID
	.comm	_U1_CMD_REGISTER_READ,4,2       ## @U1_CMD_REGISTER_READ
	.comm	_U1_CMD_REGISTER_WRITE,4,2      ## @U1_CMD_REGISTER_WRITE
	.comm	_U1_FEATURE_REPORT_LEN_ALL,4,2  ## @U1_FEATURE_REPORT_LEN_ALL
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read command (%d)\n"

	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
L_.str.1:                               ## @.str.1
	.asciz	"failed read register (%d)\n"

	.no_dead_strip	_u1_read_write_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function u1_read_write_register
_u1_read_write_register:                ; @u1_read_write_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _U1_FEATURE_REPORT_LEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _U1_FEATURE_REPORT_LEN@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x27, _U1_FEATURE_REPORT_ID@GOTPAGE
Lloh5:
	ldr	x27, [x27, _U1_FEATURE_REPORT_ID@GOTPAGEOFF]
	ldr	w8, [x27]
	str	w8, [x0]
Lloh6:
	adrp	x8, _U1_CMD_REGISTER_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _U1_CMD_REGISTER_WRITE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _U1_CMD_REGISTER_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _U1_CMD_REGISTER_READ@GOTPAGEOFF]
	cmp	w22, #0
	csel	w10, w24, wzr, eq
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	str	w10, [x0, #24]
	add	x1, x0, #8
	mov	x0, x23
	bl	_put_unaligned_le32
Lloh10:
	adrp	x8, _U1_FEATURE_REPORT_LEN_ALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _U1_FEATURE_REPORT_LEN_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	ldr	w3, [x25]
	cmp	w3, #2
	b.lt	LBB0_10
; %bb.2:
	sub	w8, w3, #1
	cmp	w8, #16
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_20
LBB0_5:
	and	x10, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w9
	add	x9, x19, #32
	mov	x11, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v1, v4, v1
	add.4s	v0, v5, v0
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x11, x11, #16
	b.ne	LBB0_6
; %bb.7:
	add.4s	v0, v0, v1
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w9, s0
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	x11, x19, x10, lsl #2
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11], #4
	add	w9, w10, w9
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	str	w9, [x19, #28]
	ldr	w1, [x27]
Lloh16:
	adrp	x24, _HID_FEATURE_REPORT@GOTPAGE
Lloh17:
	ldr	x24, [x24, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w4, [x24]
Lloh18:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_hid_hw_raw_request
	tbnz	w0, #31, LBB0_16
; %bb.11:
	cbz	w22, LBB0_15
; %bb.12:
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.13:
	mov	x22, x0
	ldr	w1, [x27]
	ldr	w3, [x25]
	ldr	w4, [x24]
Lloh21:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_hid_hw_raw_request
	tbnz	w0, #31, LBB0_18
; %bb.14:
	ldr	w8, [x22, #24]
	str	w8, [x21]
	mov	x0, x22
	bl	_kfree
LBB0_15:
	mov	w23, #0
	b	LBB0_19
LBB0_16:
	mov	x23, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
	b	LBB0_19
LBB0_17:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_18:
	mov	x23, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
	mov	x0, x22
	bl	_kfree
LBB0_19:
	mov	x0, x19
	bl	_kfree
LBB0_20:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_U1_FEATURE_REPORT_LEN,4,2      ; @U1_FEATURE_REPORT_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_U1_FEATURE_REPORT_ID,4,2       ; @U1_FEATURE_REPORT_ID
	.comm	_U1_CMD_REGISTER_READ,4,2       ; @U1_CMD_REGISTER_READ
	.comm	_U1_CMD_REGISTER_WRITE,4,2      ; @U1_CMD_REGISTER_WRITE
	.comm	_U1_FEATURE_REPORT_LEN_ALL,4,2  ; @U1_FEATURE_REPORT_LEN_ALL
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read command (%d)\n"

	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
l_.str.1:                               ; @.str.1
	.asciz	"failed read register (%d)\n"

	.no_dead_strip	_u1_read_write_register
.subsections_via_symbols
