	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WaitForSettingsDialog
_WaitForSettingsDialog:                 ## @WaitForSettingsDialog
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movl	%edi, %r15d
	leaq	-44(%rbp), %r14
	movq	_WAIT_OBJECT_0@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
                                        ## implicit-def: $rax
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_QS_ALLINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_MsgWaitForMultipleObjects
	movq	(%r13), %rcx
	leaq	1(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PM_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PeekMessage
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	movq	_WM_QUIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_IsDialogMessage
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_TranslateMessage
	movq	%rbx, %rdi
	callq	_DispatchMessage
	jmp	LBB0_9
LBB0_1:
                                        ## implicit-def: $rax
	jmp	LBB0_12
LBB0_10:
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.11:
	movq	(%r12), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_QS_ALLINPUT,4,2                ## @QS_ALLINPUT
	.comm	_WAIT_OBJECT_0,8,3              ## @WAIT_OBJECT_0
	.comm	_PM_REMOVE,4,2                  ## @PM_REMOVE
	.comm	_WM_QUIT,8,3                    ## @WM_QUIT
	.no_dead_strip	_WaitForSettingsDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WaitForSettingsDialog
_WaitForSettingsDialog:                 ; @WaitForSettingsDialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	w1, [sp, #12]
Lloh0:
	adrp	x20, _TRUE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _FALSE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
Lloh4:
	adrp	x22, _INFINITE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _INFINITE@GOTPAGEOFF]
Lloh6:
	adrp	x23, _QS_ALLINPUT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QS_ALLINPUT@GOTPAGEOFF]
Lloh8:
	adrp	x24, _WAIT_OBJECT_0@GOTPAGE
Lloh9:
	ldr	x24, [x24, _WAIT_OBJECT_0@GOTPAGEOFF]
Lloh10:
	adrp	x25, _PM_REMOVE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PM_REMOVE@GOTPAGEOFF]
Lloh12:
	adrp	x26, _WM_QUIT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _WM_QUIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
                                        ; implicit-def: $x0
	cbz	x8, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21]
	ldr	w3, [x22]
	ldr	w4, [x23]
	add	x1, sp, #12
	mov	w0, #1
	bl	_MsgWaitForMultipleObjects
	ldr	x8, [x24]
	add	x9, x8, #1
	cmp	x0, x9
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w4, [x25]
	mov	x0, sp
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_PeekMessage
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_IsDialogMessage
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, sp
	bl	_TranslateMessage
	mov	x0, sp
	bl	_DispatchMessage
	b	LBB0_2
LBB0_8:
                                        ; implicit-def: $x0
	b	LBB0_12
LBB0_9:
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x20]
	b	LBB0_12
LBB0_11:
	ldr	x0, [x21]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_QS_ALLINPUT,4,2                ; @QS_ALLINPUT
	.comm	_WAIT_OBJECT_0,8,3              ; @WAIT_OBJECT_0
	.comm	_PM_REMOVE,4,2                  ; @PM_REMOVE
	.comm	_WM_QUIT,8,3                    ; @WM_QUIT
	.no_dead_strip	_WaitForSettingsDialog
.subsections_via_symbols
