	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CBUpdateEdit
_CBUpdateEdit:                          ## @CBUpdateEdit
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	testq	%rbx, %rbx
	js	LBB0_5
## %bb.1:
	movl	8(%r15), %edi
	movq	_LB_GETTEXTLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_LB_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	leaq	4(,%rax,4), %rdi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	movl	8(%r15), %edi
	movq	_LB_GETTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_SendMessageW
	jmp	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r15, %rdi
	callq	_CB_HASSTRINGS
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_CBF_NOEDITNOTIFY@GOTPCREL(%rip), %r12
	movq	_CBF_NOLBSELECT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r12), %eax
	orl	%eax, (%r15)
	movl	4(%r15), %edi
	movq	_WM_SETTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r14, %r14
	leaq	_CBUpdateEdit.empty_stringW(%rip), %rcx
	cmovnel	%r14d, %ecx
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movl	(%rbx), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %eax
LBB0_9:
	movq	_CBF_FOCUSED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	4(%r15), %edi
	movq	_EM_SETSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$-1, %ecx
	callq	_SendMessageW
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_free                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @CBUpdateEdit.empty_stringW
_CBUpdateEdit.empty_stringW:
	.space	4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\t %i\n"

	.comm	_LB_GETTEXTLEN,4,2              ## @LB_GETTEXTLEN
	.comm	_LB_ERR,8,3                     ## @LB_ERR
	.comm	_LB_GETTEXT,4,2                 ## @LB_GETTEXT
	.comm	_CBF_NOEDITNOTIFY,4,2           ## @CBF_NOEDITNOTIFY
	.comm	_CBF_NOLBSELECT,4,2             ## @CBF_NOLBSELECT
	.comm	_WM_SETTEXT,4,2                 ## @WM_SETTEXT
	.comm	_CBF_FOCUSED,4,2                ## @CBF_FOCUSED
	.comm	_EM_SETSEL,4,2                  ## @EM_SETSEL
	.no_dead_strip	_CBUpdateEdit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CBUpdateEdit
_CBUpdateEdit:                          ; @CBUpdateEdit
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	tbnz	x21, #63, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _LB_GETTEXTLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LB_GETTEXTLEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
Lloh5:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	x20, #0
	b	LBB0_5
LBB0_3:
	lsl	x8, x0, #2
	add	x0, x8, #4
	bl	_heap_alloc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _LB_GETTEXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_GETTEXT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_SendMessageW
LBB0_5:
	mov	x0, x19
	bl	_CB_HASSTRINGS
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x21, _CBF_NOEDITNOTIFY@GOTPAGE
Lloh12:
	ldr	x21, [x21, _CBF_NOEDITNOTIFY@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh13:
	adrp	x22, _CBF_NOLBSELECT@GOTPAGE
Lloh14:
	ldr	x22, [x22, _CBF_NOLBSELECT@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldp	w9, w0, [x19]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _WM_SETTEXT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WM_SETTEXT@GOTPAGEOFF]
	str	w8, [x19]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x8, _CBUpdateEdit.empty_stringW@PAGE
Lloh19:
	add	x8, x8, _CBUpdateEdit.empty_stringW@PAGEOFF
	cmp	x20, #0
	csel	w3, w8, w20, eq
	mov	x2, #0
	bl	_SendMessageW
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
LBB0_8:
Lloh20:
	adrp	x9, _CBF_FOCUSED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CBF_FOCUSED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x8, _EM_SETSEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EM_SETSEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #-1
	bl	_SendMessageW
LBB0_10:
	mov	x0, x20
	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
	b	_heap_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @CBUpdateEdit.empty_stringW
_CBUpdateEdit.empty_stringW:
	.space	4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\t %i\n"

	.comm	_LB_GETTEXTLEN,4,2              ; @LB_GETTEXTLEN
	.comm	_LB_ERR,8,3                     ; @LB_ERR
	.comm	_LB_GETTEXT,4,2                 ; @LB_GETTEXT
	.comm	_CBF_NOEDITNOTIFY,4,2           ; @CBF_NOEDITNOTIFY
	.comm	_CBF_NOLBSELECT,4,2             ; @CBF_NOLBSELECT
	.comm	_WM_SETTEXT,4,2                 ; @WM_SETTEXT
	.comm	_CBF_FOCUSED,4,2                ; @CBF_FOCUSED
	.comm	_EM_SETSEL,4,2                  ; @EM_SETSEL
	.no_dead_strip	_CBUpdateEdit
.subsections_via_symbols
