	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uhid_hid_output_raw
_uhid_hid_output_raw:                   ## @uhid_hid_output_raw
	.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, %rbx
	movq	%rsi, %r15
	movq	(%rdi), %r14
	cmpb	$-127, %cl
	je	LBB0_1
## %bb.2:
	cmpb	$-128, %cl
	jne	LBB0_6
## %bb.3:
	movq	_UHID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movq	_UHID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_5:
	movq	_UHID_DATA_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jb	LBB0_6
## %bb.8:
	movl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	_UHID_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%rbx, (%r12)
	movl	%r13d, 12(%r12)
	movl	8(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_uhid_queue
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_UHID_FEATURE_REPORT,4,2        ## @UHID_FEATURE_REPORT
	.comm	_UHID_OUTPUT_REPORT,4,2         ## @UHID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UHID_DATA_MAX,8,3              ## @UHID_DATA_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UHID_OUTPUT,4,2                ## @UHID_OUTPUT
	.no_dead_strip	_uhid_hid_output_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uhid_hid_output_raw
_uhid_hid_output_raw:                   ; @uhid_hid_output_raw
	.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	x21, x1
	ldr	x20, [x0]
	cmp	w3, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w3, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _UHID_OUTPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UHID_OUTPUT_REPORT@GOTPAGEOFF]
	cbnz	x19, LBB0_4
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _UHID_FEATURE_REPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UHID_FEATURE_REPORT@GOTPAGEOFF]
	cbz	x19, LBB0_7
LBB0_4:
Lloh4:
	adrp	x9, _UHID_DATA_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UHID_DATA_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x9, x19
	b.lo	LBB0_7
; %bb.5:
	ldr	w23, [x8]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
Lloh10:
	adrp	x8, _UHID_OUTPUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UHID_OUTPUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	x19, [x0]
	stp	w23, w8, [x0, #12]
	ldr	w0, [x0, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x22
	bl	_uhid_queue
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UHID_FEATURE_REPORT,4,2        ; @UHID_FEATURE_REPORT
	.comm	_UHID_OUTPUT_REPORT,4,2         ; @UHID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UHID_DATA_MAX,8,3              ; @UHID_DATA_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UHID_OUTPUT,4,2                ; @UHID_OUTPUT
	.no_dead_strip	_uhid_hid_output_raw
.subsections_via_symbols
