	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function COMBOEX_InsertItemW
_COMBOEX_InsertItemW:                   ## @COMBOEX_InsertItemW
	.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, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_comboex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_COMBOEX_DumpInput
LBB0_2:
	movl	(%r15), %ebx
	movl	(%r14), %eax
	cmpl	$-1, %ebx
	je	LBB0_3
## %bb.4:
	movl	$-1, %r12d
	cmpl	%eax, %ebx
	jle	LBB0_5
	jmp	LBB0_34
LBB0_3:
	movl	%eax, %ebx
LBB0_5:
	movl	$48, %edi
	callq	_Alloc
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_34
## %bb.6:
	movq	%rax, %r13
	movl	(%r14), %ecx
	leaq	8(%r14), %rax
	cmpl	%ecx, %ebx
	je	LBB0_12
## %bb.7:
	decl	%ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	leaq	40(%rdx), %rax
	cmpl	%ebx, %ecx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	decl	%ecx
	testq	%rdx, %rdx
	jne	LBB0_8
LBB0_10:
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_12:
	movq	(%rax), %rcx
	movq	%rcx, 40(%r13)
	movq	%r13, (%rax)
	movl	4(%r15), %eax
	movl	%eax, (%r13)
	movq	_CBEIF_TEXT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.13:
	movq	32(%r15), %rdi
	callq	_is_textW
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	32(%r15), %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.15:
	leal	4(,%rax,4), %edi
	callq	_Alloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	32(%r15), %rsi
	movq	%rax, %rdi
	callq	_strcpyW
	jmp	LBB0_20
LBB0_18:
	movq	32(%r15), %rax
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rax, 32(%r13)
LBB0_20:
	movl	28(%r15), %eax
	movl	%eax, 24(%r13)
	movl	(%r13), %eax
LBB0_21:
	movq	_CBEIF_IMAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movl	24(%r15), %ecx
	movl	%ecx, 20(%r13)
LBB0_23:
	movq	_CBEIF_SELECTEDIMAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.24:
	movl	20(%r15), %ecx
	movl	%ecx, 16(%r13)
LBB0_25:
	movq	_CBEIF_OVERLAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.26:
	movl	16(%r15), %ecx
	movl	%ecx, 12(%r13)
LBB0_27:
	movq	_CBEIF_INDENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.28:
	movl	12(%r15), %ecx
	movl	%ecx, 8(%r13)
LBB0_29:
	movq	_CBEIF_LPARAM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.30:
	movl	8(%r15), %eax
	movl	%eax, 4(%r13)
LBB0_31:
	incl	(%r14)
	movq	_comboex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	%r13, %rdi
	callq	_COMBOEX_DumpItem
LBB0_33:
	movl	4(%r14), %edi
	movq	_CB_INSERTSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	%r13d, %ecx
	callq	_SendMessageW
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$-1, -48(%rbp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_COMBOEX_CopyItem
	movq	_CBEN_INSERTITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_COMBOEX_NotifyItem
	movl	%ebx, %r12d
	jmp	LBB0_34
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_16:
	movq	%r13, %rdi
	callq	_Free
LBB0_34:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_comboex,4,2                    ## @comboex
L_.str.1:                               ## @.str.1
	.asciz	"COMBOBOXEX item structures broken. Please report!\n"

	.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	_CB_INSERTSTRING,4,2            ## @CB_INSERTSTRING
	.comm	_CBEN_INSERTITEM,4,2            ## @CBEN_INSERTITEM
	.no_dead_strip	_COMBOEX_InsertItemW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function COMBOEX_InsertItemW
_COMBOEX_InsertItemW:                   ; @COMBOEX_InsertItemW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x23, _comboex@GOTPAGE
Lloh3:
	ldr	x23, [x23, _comboex@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_TRACE_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_COMBOEX_DumpInput
LBB0_2:
	ldr	w20, [x21]
	ldr	w8, [x19]
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.3:
	cmp	w20, w8
	b.le	LBB0_5
	b	LBB0_34
LBB0_4:
	mov	x20, x8
LBB0_5:
	mov	w0, #48
	bl	_Alloc
	cbz	x0, LBB0_34
; %bb.6:
	mov	x22, x0
	mov	x8, x19
	ldr	w9, [x8], #8
	cmp	w20, w9
	b.eq	LBB0_11
; %bb.7:
	sub	w9, w9, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	add	x8, x10, #40
	cmp	w9, w20
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w9, w9, #1
	cbnz	x10, LBB0_8
LBB0_10:
	cbz	x10, LBB0_32
LBB0_11:
	ldr	x9, [x8]
	str	x9, [x22, #40]
	str	x22, [x8]
	ldr	w8, [x21, #4]
	str	w8, [x22]
Lloh4:
	adrp	x9, _CBEIF_TEXT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CBEIF_TEXT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.12:
	ldr	x0, [x21, #32]
	bl	_is_textW
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x0, [x21, #32]
	bl	_strlenW
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.14:
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_Alloc
	str	x0, [x22, #32]
	cbz	x0, LBB0_33
; %bb.15:
	ldr	x1, [x21, #32]
	bl	_strcpyW
	b	LBB0_18
LBB0_16:
	ldr	x8, [x21, #32]
Lloh7:
	adrp	x9, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	str	x8, [x22, #32]
LBB0_18:
	ldr	w8, [x21, #28]
	str	w8, [x22, #24]
	ldr	w8, [x22]
LBB0_19:
Lloh10:
	adrp	x9, _CBEIF_IMAGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CBEIF_IMAGE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	w9, [x21, #24]
	str	w9, [x22, #20]
LBB0_21:
Lloh13:
	adrp	x9, _CBEIF_SELECTEDIMAGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CBEIF_SELECTEDIMAGE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w9, [x21, #20]
	str	w9, [x22, #16]
LBB0_23:
Lloh16:
	adrp	x9, _CBEIF_OVERLAY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CBEIF_OVERLAY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	w9, [x21, #16]
	str	w9, [x22, #12]
LBB0_25:
Lloh19:
	adrp	x9, _CBEIF_INDENT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CBEIF_INDENT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
	ldr	w9, [x21, #12]
	str	w9, [x22, #8]
LBB0_27:
Lloh22:
	adrp	x9, _CBEIF_LPARAM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CBEIF_LPARAM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	w8, [x21, #8]
	str	w8, [x22, #4]
LBB0_29:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w0, [x23]
	bl	_TRACE_ON
	cbz	x0, LBB0_31
; %bb.30:
	mov	x0, x22
	bl	_COMBOEX_DumpItem
LBB0_31:
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x8, _CB_INSERTSTRING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CB_INSERTSTRING@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x3, x22
	bl	_SendMessageW
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #-1
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_COMBOEX_CopyItem
Lloh28:
	adrp	x8, _CBEN_INSERTITEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CBEN_INSERTITEM@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_COMBOEX_NotifyItem
	b	LBB0_35
LBB0_32:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_33:
	mov	x0, x22
	bl	_Free
LBB0_34:
	mov	w20, #-1
LBB0_35:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_comboex,4,2                    ; @comboex
l_.str.1:                               ; @.str.1
	.asciz	"COMBOBOXEX item structures broken. Please report!\n"

	.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	_CB_INSERTSTRING,4,2            ; @CB_INSERTSTRING
	.comm	_CBEN_INSERTITEM,4,2            ; @CBEN_INSERTITEM
	.no_dead_strip	_COMBOEX_InsertItemW
.subsections_via_symbols
