	.file	"extr_comboex.c_COMBOEX_SetItemW.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	COMBOEX_SetItemW, @function
COMBOEX_SetItemW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, DWORD PTR comboex[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	r12d, DWORD PTR [rsi]
	call	TRACE_ON@PLT
	test	rax, rax
	jne	.L53
.L2:
	cmp	DWORD PTR 0[rbp], r12d
	jle	.L51
	cmp	r12d, -1
	jl	.L51
	jne	.L6
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L51
.L6:
	mov	esi, r12d
	mov	rdi, rbp
	call	COMBOEX_FindItem@PLT
	mov	r12, rax
	test	rax, rax
	je	.L51
	mov	eax, DWORD PTR 4[rbx]
	or	DWORD PTR [r12], eax
	test	DWORD PTR CBEIF_TEXT[rip], eax
	jne	.L54
.L9:
	test	DWORD PTR CBEIF_IMAGE[rip], eax
	je	.L13
	mov	edx, DWORD PTR 24[rbx]
	mov	DWORD PTR 20[r12], edx
.L13:
	test	DWORD PTR CBEIF_SELECTEDIMAGE[rip], eax
	je	.L14
	mov	edx, DWORD PTR 20[rbx]
	mov	DWORD PTR 16[r12], edx
.L14:
	test	DWORD PTR CBEIF_OVERLAY[rip], eax
	je	.L15
	mov	edx, DWORD PTR 16[rbx]
	mov	DWORD PTR 12[r12], edx
.L15:
	test	DWORD PTR CBEIF_INDENT[rip], eax
	je	.L16
	mov	edx, DWORD PTR 12[rbx]
	mov	DWORD PTR 8[r12], edx
.L16:
	test	DWORD PTR CBEIF_LPARAM[rip], eax
	jne	.L55
	mov	edi, DWORD PTR comboex[rip]
	call	TRACE_ON@PLT
	test	rax, rax
	jne	.L56
.L18:
	cmp	DWORD PTR [rbx], -1
	je	.L57
.L19:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR TRUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR FALSE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L53:
	.cfi_restore_state
	mov	rdi, rbx
	call	COMBOEX_DumpInput@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L55:
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR comboex[rip]
	mov	DWORD PTR 4[r12], eax
	call	TRACE_ON@PLT
	test	rax, rax
	je	.L18
.L56:
	mov	rdi, r12
	call	COMBOEX_DumpItem@PLT
	cmp	DWORD PTR [rbx], -1
	jne	.L19
.L57:
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR CBEIF_TEXT[rip], eax
	je	.L19
	mov	rsi, r12
	mov	rdi, rbp
	call	COMBOEX_SetEditText@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR RDW_ERASE[rip]
	xor	edx, edx
	or	ecx, DWORD PTR RDW_INVALIDATE[rip]
	xor	esi, esi
	call	RedrawWindow@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L54:
	mov	rdi, r12
	call	COMBOEX_FreeText@PLT
	mov	rdi, QWORD PTR 32[rbx]
	call	is_textW@PLT
	test	rax, rax
	jne	.L58
.L10:
	mov	rax, QWORD PTR LPSTR_TEXTCALLBACKW[rip]
	cmp	QWORD PTR 32[rbx], rax
	jne	.L12
	mov	QWORD PTR 32[r12], rax
.L12:
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 24[r12], eax
	mov	eax, DWORD PTR 4[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, QWORD PTR 32[rbx]
	call	strlenW@PLT
	test	eax, eax
	jle	.L10
	lea	edi, 4[0+rax*4]
	call	Alloc@PLT
	mov	QWORD PTR 32[r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L51
	mov	rsi, QWORD PTR 32[rbx]
	call	strcpyW@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	COMBOEX_SetItemW, .-COMBOEX_SetItemW
	.comm	comboex,4,4
	.comm	TRUE,4,4
	.comm	RDW_INVALIDATE,4,4
	.comm	RDW_ERASE,4,4
	.comm	LPSTR_TEXTCALLBACKW,8,8
	.comm	FALSE,4,4
	.comm	CBEIF_TEXT,4,4
	.comm	CBEIF_SELECTEDIMAGE,4,4
	.comm	CBEIF_OVERLAY,4,4
	.comm	CBEIF_LPARAM,4,4
	.comm	CBEIF_INDENT,4,4
	.comm	CBEIF_IMAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_comboex.c_COMBOEX_SetItemW.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	COMBOEX_SetItemW, %function
COMBOEX_SetItemW:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L61
	mov	r7, r0
	ldr	r0, [r6]
	mov	r4, r1
	ldr	r5, [r1]
	bl	TRACE_ON
	cmp	r0, #0
	bne	.L56
.L2:
	ldr	r3, [r7]
	cmn	r5, #1
	cmpge	r3, r5
	bgt	.L3
.L54:
	ldr	r3, .L61+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	cmn	r5, #1
	bne	.L5
	ldr	r3, [r7, #8]
	cmp	r3, #0
	beq	.L54
.L5:
	mov	r1, r5
	mov	r0, r7
	bl	COMBOEX_FindItem
	subs	r5, r0, #0
	beq	.L54
	ldr	r8, .L61+8
	ldr	r3, [r4, #4]
	ldr	r1, [r8]
	ldr	r2, [r5]
	tst	r3, r1
	orr	r2, r2, r3
	str	r2, [r5]
	bne	.L57
.L8:
	ldr	r2, .L61+12
	ldr	r0, [r6]
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, [r4, #24]
	strne	r2, [r5, #20]
	ldr	r2, .L61+16
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, [r4, #20]
	strne	r2, [r5, #16]
	ldr	r2, .L61+20
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, [r4, #16]
	strne	r2, [r5, #12]
	ldr	r2, .L61+24
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, [r4, #12]
	strne	r2, [r5, #8]
	ldr	r2, .L61+28
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, [r4, #8]
	strne	r3, [r5, #4]
	bl	TRACE_ON
	cmp	r0, #0
	bne	.L58
.L17:
	ldr	r3, [r4]
	cmn	r3, #1
	beq	.L59
.L18:
	ldr	r3, .L61+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L56:
	mov	r0, r4
	bl	COMBOEX_DumpInput
	b	.L2
.L59:
	ldr	r2, [r4, #4]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L18
	mov	r1, r5
	mov	r0, r7
	bl	COMBOEX_SetEditText
	mov	r2, #0
	ldr	r1, .L61+36
	ldr	r3, .L61+40
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r7, #4]
	orr	r3, r1, r3
	mov	r1, r2
	bl	RedrawWindow
	b	.L18
.L57:
	bl	COMBOEX_FreeText
	ldr	r0, [r4, #32]
	bl	is_textW
	cmp	r0, #0
	bne	.L60
.L9:
	ldr	r2, .L61+44
	ldr	r3, [r4, #32]
	ldr	r2, [r2]
	cmp	r3, r2
	streq	r3, [r5, #28]
.L11:
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #4]
	str	r2, [r5, #24]
	b	.L8
.L58:
	mov	r0, r5
	bl	COMBOEX_DumpItem
	b	.L17
.L60:
	ldr	r0, [r4, #32]
	bl	strlenW
	cmp	r0, #0
	ble	.L9
	add	r0, r0, #1
	lsl	r0, r0, #2
	bl	Alloc
	cmp	r0, #0
	str	r0, [r5, #28]
	beq	.L54
	ldr	r1, [r4, #32]
	bl	strcpyW
	b	.L11
.L62:
	.align	2
.L61:
	.word	comboex
	.word	FALSE
	.word	CBEIF_TEXT
	.word	CBEIF_IMAGE
	.word	CBEIF_SELECTEDIMAGE
	.word	CBEIF_OVERLAY
	.word	CBEIF_INDENT
	.word	CBEIF_LPARAM
	.word	TRUE
	.word	RDW_ERASE
	.word	RDW_INVALIDATE
	.word	LPSTR_TEXTCALLBACKW
	.size	COMBOEX_SetItemW, .-COMBOEX_SetItemW
	.comm	comboex,4,4
	.comm	TRUE,4,4
	.comm	RDW_INVALIDATE,4,4
	.comm	RDW_ERASE,4,4
	.comm	LPSTR_TEXTCALLBACKW,4,4
	.comm	FALSE,4,4
	.comm	CBEIF_TEXT,4,4
	.comm	CBEIF_SELECTEDIMAGE,4,4
	.comm	CBEIF_OVERLAY,4,4
	.comm	CBEIF_LPARAM,4,4
	.comm	CBEIF_INDENT,4,4
	.comm	CBEIF_IMAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
