	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _get_input_report
__get_input_report:                     ## @_get_input_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__kbd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$-1, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_hId@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_iosAlloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	8(%rax), %esi
	movl	$8, %edx
	movq	%rbx, %rcx
	callq	_USB_ReadIntrMsg
	movl	%eax, %r14d
	movq	(%r15), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_iosFree
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, %edx
	shll	$8, %edx
	sarl	$8, %ecx
	orl	%edx, %ecx
	movl	%ecx, 4(%rax)
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__kbd,8,3                       ## @_kbd
	.comm	_hId,4,2                        ## @hId
	.no_dead_strip	__get_input_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _get_input_report
__get_input_report:                     ; @_get_input_report
	.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
Lloh0:
	adrp	x21, __kbd@GOTPAGE
Lloh1:
	ldr	x21, [x21, __kbd@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x22, _hId@GOTPAGE
Lloh3:
	ldr	x22, [x22, _hId@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #8
	bl	_iosAlloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w1, [x8, #8]
	mov	w2, #8
	mov	x3, x19
	bl	_USB_ReadIntrMsg
	mov	x20, x0
	ldr	x8, [x21]
	add	x0, x8, #4
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x22]
	mov	x1, x19
	bl	_iosFree
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	lsl	w10, w9, #8
	orr	w9, w10, w9, asr #8
	str	w9, [x8, #4]
	mov	x0, x20
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	__kbd,8,3                       ; @_kbd
	.comm	_hId,4,2                        ; @hId
	.no_dead_strip	__get_input_report
.subsections_via_symbols
