	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateMonitorSelection
_UpdateMonitorSelection:                ## @UpdateMonitorSelection
	.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
	movq	%rdi, %rbx
	cmpl	$2, (%rdi)
	jl	LBB0_3
## %bb.1:
	movq	$0, 8(%rbx)
	movl	16(%rbx), %edi
	movq	_IDC_MONITORLIST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_LB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movq	_LB_GETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	jmp	LBB0_4
LBB0_3:
	movq	24(%rbx), %rax
LBB0_4:
	movq	%rax, 8(%rbx)
LBB0_5:
	movl	16(%rbx), %edi
	movq	_IDC_MONITORPROPERTIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	xorl	%esi, %esi
	cmpq	$0, 8(%rbx)
	setne	%sil
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_EnableWindow                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_MONITORLIST,4,2            ## @IDC_MONITORLIST
	.comm	_LB_GETCURSEL,4,2               ## @LB_GETCURSEL
	.comm	_LB_GETITEMDATA,4,2             ## @LB_GETITEMDATA
	.comm	_IDC_MONITORPROPERTIES,4,2      ## @IDC_MONITORPROPERTIES
	.no_dead_strip	_UpdateMonitorSelection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateMonitorSelection
_UpdateMonitorSelection:                ; @UpdateMonitorSelection
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	str	xzr, [x19, #8]
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x20, _IDC_MONITORLIST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IDC_MONITORLIST@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _LB_GETCURSEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LB_GETCURSEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_SendDlgItemMessage
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x3, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _LB_GETITEMDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_GETITEMDATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #0
	bl	_SendDlgItemMessage
	str	x0, [x19, #8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #24]
	str	x8, [x19, #8]
LBB0_4:
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x8, _IDC_MONITORPROPERTIES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDC_MONITORPROPERTIES@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_GetDlgItem
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w1, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_EnableWindow
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_MONITORLIST,4,2            ; @IDC_MONITORLIST
	.comm	_LB_GETCURSEL,4,2               ; @LB_GETCURSEL
	.comm	_LB_GETITEMDATA,4,2             ; @LB_GETITEMDATA
	.comm	_IDC_MONITORPROPERTIES,4,2      ; @IDC_MONITORPROPERTIES
	.no_dead_strip	_UpdateMonitorSelection
.subsections_via_symbols
