	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_set_raw_report
_usbhid_set_raw_report:                 ## @usbhid_set_raw_report
	.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, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_hid_to_usb_dev
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rcx
	cmpb	%r14b, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_HID_QUIRK_SKIP_OUTPUT_REPORT_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rbx)
	jne	LBB0_3
LBB0_2:
	movl	%r12d, %edx
LBB0_3:
	movl	%edx, (%r13)
	xorl	%ebx, %ebx
	testl	%edx, %edx
	sete	%bl
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	subq	%rbx, %r15
	leaq	(,%rbx,4), %r14
	addq	%r13, %r14
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rdx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	(%rdx), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %r9d
	movq	_USB_CTRL_SET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movzbl	%r12b, %r8d
	movq	%r13, %rdi
	movl	%eax, %esi
	pushq	%r10
	pushq	%r15
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	setg	%cl
	andb	%cl, %bl
	movzbl	%bl, %ecx
	addl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ## @HID_OUTPUT_REPORT
	.comm	_HID_QUIRK_SKIP_OUTPUT_REPORT_ID,4,2 ## @HID_QUIRK_SKIP_OUTPUT_REPORT_ID
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ## @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_usbhid_set_raw_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_set_raw_report
_usbhid_set_raw_report:                 ; @usbhid_set_raw_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x25, [x0, #8]
	bl	_hid_to_usb_dev
	mov	x20, x0
	ldr	x8, [x25]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _HID_QUIRK_SKIP_OUTPUT_REPORT_ID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HID_QUIRK_SKIP_OUTPUT_REPORT_ID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
	mov	x8, x19
LBB0_4:
	str	w8, [x21]
	cmp	w8, #0
	cset	w23, eq
	sub	x22, x22, x23
	add	x21, x21, w23, uxtw #2
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _USB_TYPE_CLASS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w5, [x25]
Lloh17:
	adrp	x8, _USB_CTRL_SET_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CTRL_SET_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp]
	and	w4, w19, #0xff
	mov	x0, x20
	mov	x6, x21
	mov	x7, x22
	bl	_usb_control_msg
	cmp	w0, #0
	cset	w8, gt
	and	w8, w23, w8
	add	w0, w0, w8
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ; @HID_OUTPUT_REPORT
	.comm	_HID_QUIRK_SKIP_OUTPUT_REPORT_ID,4,2 ; @HID_QUIRK_SKIP_OUTPUT_REPORT_ID
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ; @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_usbhid_set_raw_report
.subsections_via_symbols
