	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function COMBOEX_GetListboxText
_COMBOEX_GetListboxText:                ## @COMBOEX_GetListboxText
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_COMBOEX_FindItem
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_COMBOEX_GetText
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lstrcpyW
LBB0_5:
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lstrlenW                       ## TAILCALL
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	movq	$0, (%r14)
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$-1, %ecx
	movq	%r14, %r8
	movl	$1073741824, %r9d               ## imm = 0x40000000
	callq	_WideCharToMultiByte
	subq	$1, %rax
	cmovaeq	%rax, %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.no_dead_strip	_COMBOEX_GetListboxText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function COMBOEX_GetListboxText
_COMBOEX_GetListboxText:                ; @COMBOEX_GetListboxText
	.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	x19, x2
	mov	x21, x0
	bl	_COMBOEX_FindItem
	cbz	x0, LBB0_9
; %bb.1:
	mov	x1, x0
	mov	x0, x21
	bl	_COMBOEX_GetText
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.3:
	cbz	x19, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_lstrcpyW
LBB0_5:
	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	_lstrlenW
LBB0_6:
	mov	x0, #0
	cbz	x19, LBB0_9
; %bb.7:
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x20
	mov	w3, #-1
	mov	x4, x19
	mov	w5, #1073741824
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	sub	x8, x0, #1
	cmp	x0, #0
	csel	x0, xzr, x8, eq
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.no_dead_strip	_COMBOEX_GetListboxText
.subsections_via_symbols
