	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_keyboard_subtype
_get_keyboard_subtype:                  ## @get_keyboard_subtype
	.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
	xorl	%edi, %edi
	callq	_GetKeyboardType
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_GetKeyboardType
	movq	_DIDEVTYPEKEYBOARD_PCENH@GOTPCREL(%rip), %r14
	cmpl	$4, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$7, %ebx
	jne	LBB0_3
## %bb.2:
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	cmpl	$7, %ebx
	jne	LBB0_6
## %bb.4:
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.5:
	movq	_DIDEVTYPEKEYBOARD_JAPAN106@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_FIXME
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIDEVTYPEKEYBOARD_PCENH,4,2    ## @DIDEVTYPEKEYBOARD_PCENH
	.comm	_DIDEVTYPEKEYBOARD_JAPAN106,4,2 ## @DIDEVTYPEKEYBOARD_JAPAN106
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown keyboard type=%u, subtype=%u\n"

	.no_dead_strip	_get_keyboard_subtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_keyboard_subtype
_get_keyboard_subtype:                  ; @get_keyboard_subtype
	.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
	mov	w0, #0
	bl	_GetKeyboardType
	mov	x19, x0
	mov	w0, #1
	bl	_GetKeyboardType
	cmp	w19, #4
	b.eq	LBB0_7
; %bb.1:
	mov	x2, x0
	cmp	w19, #7
	b.ne	LBB0_3
; %bb.2:
	cbz	w2, LBB0_7
LBB0_3:
	cmp	w19, #7
	b.ne	LBB0_6
; %bb.4:
	cmp	w2, #2
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _DIDEVTYPEKEYBOARD_JAPAN106@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIDEVTYPEKEYBOARD_JAPAN106@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FIXME
LBB0_7:
Lloh4:
	adrp	x8, _DIDEVTYPEKEYBOARD_PCENH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DIDEVTYPEKEYBOARD_PCENH@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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DIDEVTYPEKEYBOARD_PCENH,4,2    ; @DIDEVTYPEKEYBOARD_PCENH
	.comm	_DIDEVTYPEKEYBOARD_JAPAN106,4,2 ; @DIDEVTYPEKEYBOARD_JAPAN106
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown keyboard type=%u, subtype=%u\n"

	.no_dead_strip	_get_keyboard_subtype
.subsections_via_symbols
