	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboarddev_enum_deviceW
_keyboarddev_enum_deviceW:              ## @keyboarddev_enum_deviceW
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	%ecx, %ebx
	movq	_DIEDFL_FORCEFEEDBACK@GOTPCREL(%rip), %rcx
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	testl	%esi, (%rcx)
	jne	LBB0_11
## %bb.3:
	movl	%edx, %r14d
	testl	%edi, %edi
	je	LBB0_10
## %bb.4:
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	jg	LBB0_6
## %bb.5:
	movq	_DIDEVTYPE_KEYBOARD@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_6
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	xorl	%eax, %eax
	callq	_get_keyboard_subtype
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fill_keyboard_dideviceinstanceW
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_DI8DEVCLASS_KEYBOARD@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_7
## %bb.9:
	cmpl	$2048, %ebx                     ## imm = 0x800
	jge	LBB0_10
	jmp	LBB0_11
LBB0_7:
	cmpl	$2048, %ebx                     ## imm = 0x800
	jl	LBB0_11
## %bb.8:
	movq	_DI8DEVTYPE_KEYBOARD@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_DIEDFL_FORCEFEEDBACK,4,2       ## @DIEDFL_FORCEFEEDBACK
	.comm	_S_FALSE,4,2                    ## @S_FALSE
	.comm	_DIDEVTYPE_KEYBOARD,4,2         ## @DIDEVTYPE_KEYBOARD
	.comm	_DI8DEVCLASS_KEYBOARD,4,2       ## @DI8DEVCLASS_KEYBOARD
	.comm	_DI8DEVTYPE_KEYBOARD,4,2        ## @DI8DEVTYPE_KEYBOARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enumerating the Keyboard device\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_keyboarddev_enum_deviceW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboarddev_enum_deviceW
_keyboarddev_enum_deviceW:              ; @keyboarddev_enum_deviceW
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _DIEDFL_FORCEFEEDBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIEDFL_FORCEFEEDBACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x19, x3
	mov	x20, x2
	cbz	w0, LBB0_7
; %bb.5:
	cmp	w19, #2047
	b.gt	LBB0_9
; %bb.6:
Lloh7:
	adrp	x8, _DIDEVTYPE_KEYBOARD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIDEVTYPE_KEYBOARD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_9
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	bl	_get_keyboard_subtype
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_fill_keyboard_dideviceinstanceW
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh14:
	adrp	x8, _DI8DEVCLASS_KEYBOARD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DI8DEVCLASS_KEYBOARD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_11
; %bb.10:
	cmp	w19, #2048
	b.lt	LBB0_3
	b	LBB0_7
LBB0_11:
Lloh17:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
	cmp	w19, #2048
	b.lt	LBB0_8
; %bb.12:
Lloh19:
	adrp	x9, _DI8DEVTYPE_KEYBOARD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DI8DEVTYPE_KEYBOARD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w9, w0
	b.eq	LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_DIEDFL_FORCEFEEDBACK,4,2       ; @DIEDFL_FORCEFEEDBACK
	.comm	_S_FALSE,4,2                    ; @S_FALSE
	.comm	_DIDEVTYPE_KEYBOARD,4,2         ; @DIDEVTYPE_KEYBOARD
	.comm	_DI8DEVCLASS_KEYBOARD,4,2       ; @DI8DEVCLASS_KEYBOARD
	.comm	_DI8DEVTYPE_KEYBOARD,4,2        ; @DI8DEVTYPE_KEYBOARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enumerating the Keyboard device\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_keyboarddev_enum_deviceW
.subsections_via_symbols
