	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UPDOWN_SetBuddyInt
_UPDOWN_SetBuddyInt:                    ## @UPDOWN_SetBuddyInt
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movl	$0, -96(%rbp)
	movq	_FLAG_BUDDYINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_IsWindow
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	16(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%r14, %rdi
	callq	_UPDOWN_IsBuddyListbox
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_LB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edi
	movl	16(%r14), %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%rax, %rcx
	movq	_LB_ERR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	jmp	LBB0_17
LBB0_5:
	movl	16(%r14), %edx
	cmpl	$16, 4(%r14)
	leaq	_UPDOWN_SetBuddyInt.fmt_hex(%rip), %rax
	leaq	_UPDOWN_SetBuddyInt.fmt_dec_oct(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wsprintfW
	cmpl	$10, 4(%r14)
	jne	LBB0_15
## %bb.6:
	movl	%eax, %r12d
	movq	_UDS_NOTHOUSANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_15
## %bb.7:
	cmpl	$4, %r12d
	jl	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_UPDOWN_GetThousandSep
	movb	%al, -113(%rbp)                 ## 1-byte Spill
	movl	%r12d, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$20, %edx
	callq	_memcpy
	testl	%r12d, %r12d
	movl	$3, %eax
	cmovnel	%r12d, %eax
	orq	%rax, %rbx
	movb	(%r15,%rax), %dl
	testb	%dl, %dl
	je	LBB0_9
## %bb.10:
	addq	%r15, %rax
	incq	%rax
	xorl	%ecx, %ecx
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	movb	-113(%rbp), %r8b                ## 1-byte Reload
	movl	$2863311531, %edi               ## imm = 0xAAAAAAAB
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movb	%dl, (%rbx)
	incq	%rbx
	incl	%ecx
	movzbl	(%rax), %edx
	decl	%r13d
	incq	%rax
	testb	%dl, %dl
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	imulq	%rdi, %rsi
	shrq	$33, %rsi
	leal	(%rsi,%rsi,2), %esi
	addl	%r13d, %esi
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	%r8b, (%rbx)
	incq	%rbx
	movzbl	-1(%rax), %edx
	jmp	LBB0_13
LBB0_9:
	movq	-128(%rbp), %r9                 ## 8-byte Reload
LBB0_14:
	movb	$0, (%rbx)
	movq	%r9, %rsp
LBB0_15:
	movl	12(%r14), %ebx
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_GetWindowTextW
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_lstrcmpiW
	testq	%rax, %rax
	je	LBB0_2
## %bb.16:
	movl	12(%r14), %edi
	leaq	-80(%rbp), %rsi
	callq	_SetWindowTextW
	jmp	LBB0_17
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_UPDOWN_SetBuddyInt.fmt_hex:            ## @UPDOWN_SetBuddyInt.fmt_hex
	.asciz	"0x%04X"

_UPDOWN_SetBuddyInt.fmt_dec_oct:        ## @UPDOWN_SetBuddyInt.fmt_dec_oct
	.asciz	"%d"

	.comm	_FLAG_BUDDYINT,4,2              ## @FLAG_BUDDYINT
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set new value(%d) to buddy.\n"

	.comm	_LB_SETCURSEL,4,2               ## @LB_SETCURSEL
	.comm	_LB_ERR,8,3                     ## @LB_ERR
	.comm	_UDS_NOTHOUSANDS,4,2            ## @UDS_NOTHOUSANDS
	.no_dead_strip	_UPDOWN_SetBuddyInt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UPDOWN_SetBuddyInt
_UPDOWN_SetBuddyInt:                    ; @UPDOWN_SetBuddyInt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stp	xzr, xzr, [x29, #-112]
	stur	wzr, [x29, #-96]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _FLAG_BUDDYINT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLAG_BUDDYINT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_IsWindow
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w1, [x19, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_UPDOWN_IsBuddyListbox
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _LB_SETCURSEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_SETCURSEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w0, w2, [x19, #12]
	mov	w3, #0
	bl	_SendMessageW
Lloh11:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	b	LBB0_15
LBB0_4:
Lloh14:
	adrp	x8, _UPDOWN_SetBuddyInt.fmt_dec_oct@PAGE
Lloh15:
	add	x8, x8, _UPDOWN_SetBuddyInt.fmt_dec_oct@PAGEOFF
	ldr	w9, [x19, #4]
Lloh16:
	adrp	x10, _UPDOWN_SetBuddyInt.fmt_hex@PAGE
Lloh17:
	add	x10, x10, _UPDOWN_SetBuddyInt.fmt_hex@PAGEOFF
	cmp	w9, #16
	csel	x1, x10, x8, eq
	ldr	w2, [x19, #16]
	sub	x0, x29, #92
	bl	_wsprintfW
	ldr	w8, [x19, #4]
	cmp	w8, #10
	b.ne	LBB0_12
; %bb.5:
	mov	x21, x0
	ldr	w8, [x19, #8]
Lloh18:
	adrp	x9, _UDS_NOTHOUSANDS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UDS_NOTHOUSANDS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w0, #4, #8, eq
	b.lt	LBB0_12
; %bb.6:
	sub	x25, x29, #92
	sub	x0, x29, #92
	bl	_ARRAY_SIZE
	mov	x23, sp
	mov	w8, w0
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	bl	_UPDOWN_GetThousandSep
	mov	x20, x0
	mov	w24, #43691
	movk	w24, #43690, lsl #16
	umull	x8, w21, w24
	lsr	x8, x8, #33
	add	w8, w8, w8, lsl #1
	sub	w21, w21, w8
	sub	x1, x29, #92
	mov	x0, x22
	mov	w2, #20
	bl	_memcpy
	mov	w8, #3
	cmp	w21, #0
	csel	w11, w8, w21, eq
	add	x8, x25, x11
	ldrb	w12, [x22, x11]
	cbz	w12, LBB0_11
; %bb.7:
	mov	w9, #0
	mov	w10, #0
	add	x11, x11, x22
	add	x11, x11, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w12, [x8], #1
	add	w10, w10, #1
	ldrb	w12, [x11], #1
	sub	w9, w9, #1
	cbz	w12, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	umull	x13, w10, w24
	lsr	x13, x13, #33
	add	w13, w13, w13, lsl #1
	cmn	w9, w13
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w20, [x8], #1
	ldurb	w12, [x11, #-1]
	b	LBB0_8
LBB0_11:
	strb	wzr, [x8]
	mov	sp, x23
LBB0_12:
	ldr	w20, [x19, #12]
	sub	x0, x29, #112
	bl	_ARRAY_SIZE
	mov	x2, x0
	sub	x1, x29, #112
	mov	x0, x20
	bl	_GetWindowTextW
	sub	x0, x29, #112
	sub	x1, x29, #92
	bl	_lstrcmpiW
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x19, #12]
	sub	x1, x29, #92
	bl	_SetWindowTextW
	b	LBB0_15
LBB0_14:
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_UPDOWN_SetBuddyInt.fmt_hex:            ; @UPDOWN_SetBuddyInt.fmt_hex
	.asciz	"0x%04X"

_UPDOWN_SetBuddyInt.fmt_dec_oct:        ; @UPDOWN_SetBuddyInt.fmt_dec_oct
	.asciz	"%d"

	.comm	_FLAG_BUDDYINT,4,2              ; @FLAG_BUDDYINT
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set new value(%d) to buddy.\n"

	.comm	_LB_SETCURSEL,4,2               ; @LB_SETCURSEL
	.comm	_LB_ERR,8,3                     ; @LB_ERR
	.comm	_UDS_NOTHOUSANDS,4,2            ; @UDS_NOTHOUSANDS
	.no_dead_strip	_UPDOWN_SetBuddyInt
.subsections_via_symbols
