	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidled_send
_hidled_send:                           ## @hidled_send
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	12(%r15), %edi
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	_RAW_REQUEST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	12(%r15), %edx
	movl	16(%r15), %edi
	movl	(%rbx), %esi
	movl	(%rax), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_hid_hw_raw_request
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_OUTPUT_REPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	12(%r15), %esi
	movl	16(%r15), %edi
	movl	(%rax), %edx
	callq	_hid_hw_output_report
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	cmpl	(%rax), %ebx
	cmovel	%edx, %esi
	movl	%esi, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAW_REQUEST,8,3                ## @RAW_REQUEST
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.comm	_OUTPUT_REPORT,8,3              ## @OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_hidled_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidled_send
_hidled_send:                           ; @hidled_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x19, #12]
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _RAW_REQUEST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RAW_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldp	w2, w0, [x19, #12]
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	bl	_hid_hw_raw_request
	mov	x21, x0
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x10, _OUTPUT_REPORT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OUTPUT_REPORT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x8]
	bl	_hid_hw_output_report
	mov	x21, x0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EMSGSIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EMSGSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w21, w8
	csneg	w21, wzr, w9, eq
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RAW_REQUEST,8,3                ; @RAW_REQUEST
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.comm	_OUTPUT_REPORT,8,3              ; @OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_hidled_send
.subsections_via_symbols
