	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidled_recv
_hidled_recv:                           ## @hidled_recv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_RAW_REQUEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	8(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movl	24(%rbx), %edi
	movl	(%r14), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	movl	8(%rax), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_hid_hw_raw_request
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	24(%rbx), %edi
	movl	(%r14), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	movl	8(%rax), %ecx
	movl	(%r12), %r8d
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_hid_hw_raw_request
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movq	16(%rbx), %rsi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r15d
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAW_REQUEST,8,3                ## @RAW_REQUEST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.no_dead_strip	_hidled_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidled_recv
_hidled_recv:                           ; @hidled_recv
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RAW_REQUEST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RAW_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldp	x8, x0, [x19, #8]
	ldr	w2, [x8, #8]
	mov	x1, x20
	bl	_memcpy
	ldr	w0, [x19, #24]
	ldr	w1, [x20]
	ldp	x8, x2, [x19, #8]
	ldr	w3, [x8, #8]
Lloh3:
	adrp	x22, _HID_FEATURE_REPORT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh5:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	bl	_hid_hw_raw_request
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [x19, #24]
	ldr	w1, [x20]
	ldp	x8, x2, [x19, #8]
	ldr	w3, [x8, #8]
	ldr	w4, [x22]
Lloh8:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	bl	_hid_hw_raw_request
	mov	x21, x0
	ldp	x8, x1, [x19, #8]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	cmp	w21, #0
	csel	w0, w21, wzr, lt
LBB0_6:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RAW_REQUEST,8,3                ; @RAW_REQUEST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.no_dead_strip	_hidled_recv
.subsections_via_symbols
