	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_output_report
_usbhid_output_report:                  ## @usbhid_output_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	callq	_hid_to_usb_dev
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	(%r14), %r15d
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	subq	%rdx, %r12
	leaq	(%r14,%rdx,4), %rdx
	movl	(%rcx), %esi
	movq	_USB_CTRL_SET_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-36(%rbp), %r8
	movq	%rax, %rdi
	movq	%r12, %rcx
	callq	_usb_interrupt_msg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
	cmpl	$1, %r15d
	adcl	$0, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ## @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_usbhid_output_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_output_report
_usbhid_output_report:                  ; @usbhid_output_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x21, [x0]
	bl	_hid_to_usb_dev
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w21, [x19]
	cmp	w21, #0
	cset	w9, eq
	sub	x3, x20, x9
	add	x2, x19, w9, uxtw #2
	ldr	w1, [x8]
Lloh0:
	adrp	x8, _USB_CTRL_SET_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_CTRL_SET_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	add	x4, sp, #12
	bl	_usb_interrupt_msg
	cbnz	w0, LBB0_4
; %bb.2:
	cmp	w21, #0
	ldr	w8, [sp, #12]
	cinc	w0, w8, eq
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ; @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_usbhid_output_report
.subsections_via_symbols
