	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnInitAddDialog
_OnInitAddDialog:                       ## @OnInitAddDialog
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_IDC_INPUT_LANG_COMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r12d
	movq	_IDC_KEYBOARD_LO_COMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetSystemDefaultLCID
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_LocaleList_GetFirst
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_ComboBox_AddString
	movl	%eax, %r13d
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_ComboBox_SetItemData
	cmpq	%r15, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_ComboBox_SetCurSel
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_GetDefaultLayoutForLocale
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_LayoutList_GetFirst
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movl	%r14d, %edi
	callq	_ComboBox_AddString
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_ComboBox_SetItemData
	cmpq	%r15, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_ComboBox_SetCurSel
	jmp	LBB0_9
LBB0_10:
	testq	%r15, %r15
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ComboBox_SetCurSel
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_INPUT_LANG_COMBO,4,2       ## @IDC_INPUT_LANG_COMBO
	.comm	_IDC_KEYBOARD_LO_COMBO,4,2      ## @IDC_KEYBOARD_LO_COMBO
	.no_dead_strip	_OnInitAddDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnInitAddDialog
_OnInitAddDialog:                       ; @OnInitAddDialog
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_INPUT_LANG_COMBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_INPUT_LANG_COMBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh3:
	adrp	x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_KEYBOARD_LO_COMBO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x19, x0
	bl	_GetSystemDefaultLCID
	mov	x21, x0
	bl	_LocaleList_GetFirst
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_ComboBox_AddString
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_ComboBox_SetItemData
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_ComboBox_SetCurSel
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	bl	_GetDefaultLayoutForLocale
	mov	x20, x0
	bl	_LayoutList_GetFirst
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_ComboBox_AddString
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ComboBox_SetItemData
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ComboBox_SetCurSel
	b	LBB0_7
LBB0_10:
	cbnz	x20, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	bl	_ComboBox_SetCurSel
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_INPUT_LANG_COMBO,4,2       ; @IDC_INPUT_LANG_COMBO
	.comm	_IDC_KEYBOARD_LO_COMBO,4,2      ; @IDC_KEYBOARD_LO_COMBO
	.no_dead_strip	_OnInitAddDialog
.subsections_via_symbols
