	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ChangeSelectedMode
_ChangeSelectedMode:                    ## @ChangeSelectedMode
	.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
	movq	%rdi, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IDC_ALLVALIDMODES@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_LB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	movq	_LB_GETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDC_ALLVALIDMODES,4,2          ## @IDC_ALLVALIDMODES
	.comm	_LB_GETCURSEL,4,2               ## @LB_GETCURSEL
	.comm	_LB_GETITEMDATA,4,2             ## @LB_GETITEMDATA
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ChangeSelectedMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ChangeSelectedMode
_ChangeSelectedMode:                    ; @ChangeSelectedMode
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x22, _IDC_ALLVALIDMODES@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IDC_ALLVALIDMODES@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _LB_GETCURSEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_GETCURSEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #0
	bl	_SendDlgItemMessage
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x3, x0
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _LB_GETITEMDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_GETITEMDATA@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #0
	bl	_SendDlgItemMessage
	cbz	x0, LBB0_3
; %bb.2:
	str	x0, [x20]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDC_ALLVALIDMODES,4,2          ; @IDC_ALLVALIDMODES
	.comm	_LB_GETCURSEL,4,2               ; @LB_GETCURSEL
	.comm	_LB_GETITEMDATA,4,2             ; @LB_GETITEMDATA
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ChangeSelectedMode
.subsections_via_symbols
