	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnCommandAddDialog
_OnCommandAddDialog:                    ## @OnCommandAddDialog
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_LOWORD
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	movl	%r14d, %edi
	movl	$129, %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movq	_IDC_KEYBOARD_LO_COMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_ComboBox_GetCurSel
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ComboBox_GetItemData
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_ComboBox_GetCurSel
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ComboBox_GetItemData
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_InputList_Add
LBB0_4:
	movl	%ebx, %edi
	callq	_LOWORD
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_EndDialog
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edi
	callq	_HIWORD
	movq	_CBN_SELCHANGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.6:
	movl	%r14d, %edi
	movl	$129, %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	movq	_IDC_KEYBOARD_LO_COMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ComboBox_GetCurSel
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ComboBox_GetItemData
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movl	(%rax), %edi
	callq	_GetDefaultLayoutForLocale
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_ComboBox_GetCount
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ComboBox_GetItemData
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ComboBox_SetCurSel
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_KEYBOARD_LO_COMBO,4,2      ## @IDC_KEYBOARD_LO_COMBO
	.comm	_CBN_SELCHANGE,4,2              ## @CBN_SELCHANGE
	.no_dead_strip	_OnCommandAddDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnCommandAddDialog
_OnCommandAddDialog:                    ; @OnCommandAddDialog
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_LOWORD
	cmp	w0, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #129
	bl	_GetDlgItem
	mov	x21, x0
Lloh0:
	adrp	x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x22, x0
	mov	x0, x21
	bl	_ComboBox_GetCurSel
	mov	x1, x0
	mov	x0, x21
	bl	_ComboBox_GetItemData
	mov	x21, x0
	mov	x0, x22
	bl	_ComboBox_GetCurSel
	mov	x1, x0
	mov	x0, x22
	bl	_ComboBox_GetItemData
	mov	x1, x0
	mov	x0, x21
	bl	_InputList_Add
LBB0_4:
	mov	x0, x20
	bl	_LOWORD
	mov	x1, x0
	mov	x0, x19
	bl	_EndDialog
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
LBB0_6:
	mov	x0, x20
	bl	_HIWORD
Lloh3:
	adrp	x8, _CBN_SELCHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CBN_SELCHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.7:
	mov	x0, x19
	mov	w1, #129
	bl	_GetDlgItem
	mov	x20, x0
Lloh6:
	adrp	x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x19, x0
	mov	x0, x20
	bl	_ComboBox_GetCurSel
	mov	x1, x0
	mov	x0, x20
	bl	_ComboBox_GetItemData
	cbz	x0, LBB0_5
; %bb.8:
	ldr	w0, [x0]
	bl	_GetDefaultLayoutForLocale
	mov	x20, x0
	mov	x0, x19
	bl	_ComboBox_GetCount
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.9:
	mov	x21, x0
	mov	w22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_5
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ComboBox_GetItemData
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.13:
	mov	x0, x19
	mov	x1, x22
	bl	_ComboBox_SetCurSel
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_KEYBOARD_LO_COMBO,4,2      ; @IDC_KEYBOARD_LO_COMBO
	.comm	_CBN_SELCHANGE,4,2              ; @CBN_SELCHANGE
	.no_dead_strip	_OnCommandAddDialog
.subsections_via_symbols
