	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_ok_buttoncode              ## -- Begin function dlg_ok_buttoncode
	.p2align	4, 0x90
_dlg_ok_buttoncode:                     ## @dlg_ok_buttoncode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_DLG_EXIT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dialog_vars@GOTPCREL(%rip), %rcx
	movl	24(%rcx), %esi
	xorl	%edx, %edx
	testl	%esi, %esi
	sete	%bl
	testl	%edi, %edi
	jg	LBB0_3
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movq	_DLG_EXIT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_3:
	movb	%bl, %dl
	cmpq	$0, 16(%rcx)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$1, %esi
	adcl	$1, %ebx
	cmpl	%edi, %edx
	movl	%ebx, %edx
	jne	LBB0_6
## %bb.5:
	movq	_DLG_EXIT_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, 8(%rcx)
	jne	LBB0_9
## %bb.7:
	cmpl	%edi, %edx
	jne	LBB0_8
## %bb.13:
	movq	_DLG_EXIT_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_8:
	incl	%edx
LBB0_9:
	movl	%eax, %esi
	cmpl	%edi, %edx
	jne	LBB0_11
## %bb.10:
	movq	_DLG_EXIT_HELP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_11:
	cmpq	$0, (%rcx)
	cmovnel	%esi, %eax
LBB0_12:
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_DLG_TRACE
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLG_EXIT_ERROR,4,2             ## @DLG_EXIT_ERROR
	.comm	_dialog_vars,32,3               ## @dialog_vars
	.comm	_DLG_EXIT_OK,4,2                ## @DLG_EXIT_OK
	.comm	_DLG_EXIT_EXTRA,4,2             ## @DLG_EXIT_EXTRA
	.comm	_DLG_EXIT_CANCEL,4,2            ## @DLG_EXIT_CANCEL
	.comm	_DLG_EXIT_HELP,4,2              ## @DLG_EXIT_HELP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_ok_buttoncode              ; -- Begin function dlg_ok_buttoncode
	.p2align	2
_dlg_ok_buttoncode:                     ; @dlg_ok_buttoncode
	.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
Lloh0:
	adrp	x8, _DLG_EXIT_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLG_EXIT_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _dialog_vars@GOTPAGE
Lloh4:
	ldr	x9, [x9, _dialog_vars@GOTPAGEOFF]
	ldr	w11, [x9, #24]
	cmp	w11, #0
	cset	w10, eq
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.1:
	cbnz	w11, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _DLG_EXIT_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DLG_EXIT_OK@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_3:
	ldr	x12, [x9, #16]
	cbz	x12, LBB0_7
; %bb.4:
	cmp	w11, #0
	mov	w11, #1
	cinc	w11, w11, eq
	cmp	w10, w0
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _DLG_EXIT_EXTRA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DLG_EXIT_EXTRA@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_6:
	mov	x10, x11
LBB0_7:
	ldr	w11, [x9, #8]
	cbnz	w11, LBB0_11
; %bb.8:
	cmp	w10, w0
	b.ne	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _DLG_EXIT_CANCEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DLG_EXIT_CANCEL@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_10:
	add	w10, w10, #1
LBB0_11:
	ldr	x9, [x9]
	cmp	w10, w0
	ccmp	x9, #0, #4, eq
Lloh14:
	adrp	x9, _DLG_EXIT_HELP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DLG_EXIT_HELP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	csel	w19, w9, w8, ne
LBB0_12:
	sxtw	x0, w19
	bl	_DLG_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DLG_EXIT_ERROR,4,2             ; @DLG_EXIT_ERROR
	.comm	_dialog_vars,32,3               ; @dialog_vars
	.comm	_DLG_EXIT_OK,4,2                ; @DLG_EXIT_OK
	.comm	_DLG_EXIT_EXTRA,4,2             ; @DLG_EXIT_EXTRA
	.comm	_DLG_EXIT_CANCEL,4,2            ; @DLG_EXIT_CANCEL
	.comm	_DLG_EXIT_HELP,4,2              ; @DLG_EXIT_HELP
.subsections_via_symbols
