	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winraw_set_keyboard_input
_winraw_set_keyboard_input:             ## @winraw_set_keyboard_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_RIDEV_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, -16(%rbp)
	movq	%rdi, -24(%rbp)
	movabsq	$25769803777, %rax              ## imm = 0x600000001
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movl	$1, %ebx
	movl	$1, %esi
	movl	$24, %edx
	callq	_RegisterRawInputDevices
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_ERR
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIDEV_REMOVE,4,2               ## @RIDEV_REMOVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[WINRAW]: RegisterRawInputDevices failed with error %lu.\n"

	.no_dead_strip	_winraw_set_keyboard_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function winraw_set_keyboard_input
lCPI0_0:
	.long	1                               ; 0x1
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_winraw_set_keyboard_input:             ; @winraw_set_keyboard_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _RIDEV_REMOVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RIDEV_REMOVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	str	w8, [sp, #24]
	str	x0, [sp, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	mov	w19, #1
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #24
	bl	_RegisterRawInputDevices
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_GetLastError
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RIDEV_REMOVE,4,2               ; @RIDEV_REMOVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[WINRAW]: RegisterRawInputDevices failed with error %lu.\n"

	.no_dead_strip	_winraw_set_keyboard_input
.subsections_via_symbols
