	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function COMBOEX_SetItemW
_COMBOEX_SetItemW:                      ## @COMBOEX_SetItemW
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movq	_comboex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_COMBOEX_DumpInput
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpl	$-1, %ebx
	jl	LBB0_30
## %bb.3:
	cmpl	(%r14), %ebx
	jge	LBB0_30
## %bb.4:
	cmpl	$-1, %ebx
	jne	LBB0_6
## %bb.5:
	cmpl	$0, 8(%r14)
	je	LBB0_30
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_COMBOEX_FindItem
	testq	%rax, %rax
	je	LBB0_30
## %bb.7:
	movq	%rax, %r15
	movl	4(%r12), %eax
	orl	%eax, (%r15)
	movq	_CBEIF_TEXT@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_15
## %bb.8:
	movq	%r15, %rdi
	callq	_COMBOEX_FreeText
	movq	32(%r12), %rdi
	callq	_is_textW
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	32(%r12), %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	leal	4(,%rax,4), %edi
	callq	_Alloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_30
## %bb.11:
	movq	32(%r12), %rsi
	movq	%rax, %rdi
	callq	_strcpyW
	jmp	LBB0_14
LBB0_12:
	movq	32(%r12), %rax
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rax, 32(%r15)
LBB0_14:
	movl	28(%r12), %eax
	movl	%eax, 24(%r15)
	movl	4(%r12), %eax
LBB0_15:
	movq	_CBEIF_IMAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movl	24(%r12), %ecx
	movl	%ecx, 20(%r15)
LBB0_17:
	movq	_CBEIF_SELECTEDIMAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movl	20(%r12), %ecx
	movl	%ecx, 16(%r15)
LBB0_19:
	movq	_CBEIF_OVERLAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movl	16(%r12), %ecx
	movl	%ecx, 12(%r15)
LBB0_21:
	movq	_CBEIF_INDENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movl	12(%r12), %ecx
	movl	%ecx, 8(%r15)
LBB0_23:
	movq	_CBEIF_LPARAM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.24:
	movl	8(%r12), %eax
	movl	%eax, 4(%r15)
LBB0_25:
	movq	_comboex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r15, %rdi
	callq	_COMBOEX_DumpItem
LBB0_27:
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpl	$-1, (%r12)
	jne	LBB0_30
## %bb.28:
	movl	(%rbx), %eax
	testl	%eax, 4(%r12)
	je	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_COMBOEX_SetEditText
	movl	4(%r14), %edi
	movq	_RDW_ERASE@GOTPCREL(%rip), %rax
	movq	_RDW_INVALIDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RedrawWindow
LBB0_30:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comboex,4,2                    ## @comboex
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CBEIF_TEXT,4,2                 ## @CBEIF_TEXT
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.comm	_CBEIF_IMAGE,4,2                ## @CBEIF_IMAGE
	.comm	_CBEIF_SELECTEDIMAGE,4,2        ## @CBEIF_SELECTEDIMAGE
	.comm	_CBEIF_OVERLAY,4,2              ## @CBEIF_OVERLAY
	.comm	_CBEIF_INDENT,4,2               ## @CBEIF_INDENT
	.comm	_CBEIF_LPARAM,4,2               ## @CBEIF_LPARAM
	.comm	_RDW_ERASE,4,2                  ## @RDW_ERASE
	.comm	_RDW_INVALIDATE,4,2             ## @RDW_INVALIDATE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_COMBOEX_SetItemW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function COMBOEX_SetItemW
_COMBOEX_SetItemW:                      ; @COMBOEX_SetItemW
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
Lloh0:
	adrp	x22, _comboex@GOTPAGE
Lloh1:
	ldr	x22, [x22, _comboex@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TRACE_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_COMBOEX_DumpInput
LBB0_2:
	ldr	w8, [x19]
	cmn	w21, #1
	ccmp	w21, w8, #0, ge
	b.ge	LBB0_11
; %bb.3:
	cmn	w21, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_COMBOEX_FindItem
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	ldr	w8, [x20, #4]
	ldr	w9, [x0]
	orr	w9, w9, w8
	str	w9, [x0]
Lloh2:
	adrp	x23, _CBEIF_TEXT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CBEIF_TEXT@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.7:
	mov	x0, x21
	bl	_COMBOEX_FreeText
	ldr	x0, [x20, #32]
	bl	_is_textW
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x0, [x20, #32]
	bl	_strlenW
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.9:
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_Alloc
	str	x0, [x21, #32]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x1, [x20, #32]
	bl	_strcpyW
	b	LBB0_14
LBB0_11:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_31
LBB0_12:
	ldr	x8, [x20, #32]
Lloh6:
	adrp	x9, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	str	x8, [x21, #32]
LBB0_14:
	ldr	w8, [x20, #28]
	str	w8, [x21, #24]
	ldr	w8, [x20, #4]
LBB0_15:
Lloh9:
	adrp	x9, _CBEIF_IMAGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CBEIF_IMAGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w9, [x20, #24]
	str	w9, [x21, #20]
LBB0_17:
Lloh12:
	adrp	x9, _CBEIF_SELECTEDIMAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CBEIF_SELECTEDIMAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	ldr	w9, [x20, #20]
	str	w9, [x21, #16]
LBB0_19:
Lloh15:
	adrp	x9, _CBEIF_OVERLAY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CBEIF_OVERLAY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	w9, [x20, #16]
	str	w9, [x21, #12]
LBB0_21:
Lloh18:
	adrp	x9, _CBEIF_INDENT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CBEIF_INDENT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w9, [x20, #12]
	str	w9, [x21, #8]
LBB0_23:
Lloh21:
	adrp	x9, _CBEIF_LPARAM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CBEIF_LPARAM@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	w8, [x20, #8]
	str	w8, [x21, #4]
LBB0_25:
	ldr	w0, [x22]
	bl	_TRACE_ON
	cbz	x0, LBB0_27
; %bb.26:
	mov	x0, x21
	bl	_COMBOEX_DumpItem
LBB0_27:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_30
; %bb.28:
	ldr	w8, [x20, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	mov	x1, x21
	bl	_COMBOEX_SetEditText
Lloh24:
	adrp	x8, _RDW_ERASE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RDW_ERASE@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _RDW_INVALIDATE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RDW_INVALIDATE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #0
	mov	w2, #0
	bl	_RedrawWindow
LBB0_30:
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_31:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_comboex,4,2                    ; @comboex
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CBEIF_TEXT,4,2                 ; @CBEIF_TEXT
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.comm	_CBEIF_IMAGE,4,2                ; @CBEIF_IMAGE
	.comm	_CBEIF_SELECTEDIMAGE,4,2        ; @CBEIF_SELECTEDIMAGE
	.comm	_CBEIF_OVERLAY,4,2              ; @CBEIF_OVERLAY
	.comm	_CBEIF_INDENT,4,2               ; @CBEIF_INDENT
	.comm	_CBEIF_LPARAM,4,2               ; @CBEIF_LPARAM
	.comm	_RDW_ERASE,4,2                  ; @RDW_ERASE
	.comm	_RDW_INVALIDATE,4,2             ; @RDW_INVALIDATE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_COMBOEX_SetItemW
.subsections_via_symbols
