	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function COMBOEX_SetCursel
_COMBOEX_SetCursel:                     ## @COMBOEX_SetCursel
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_COMBOEX_FindItem
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_debugstr_txt
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TRACE
	movl	%r14d, 4(%rbx)
	movl	(%rbx), %edi
	movq	_CB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_COMBOEX_SetEditText
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edi
	movq	_CB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendMessageW                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CB_SETCURSEL,4,2               ## @CB_SETCURSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selecting item %ld text=%s\n"

	.no_dead_strip	_COMBOEX_SetCursel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function COMBOEX_SetCursel
_COMBOEX_SetCursel:                     ; @COMBOEX_SetCursel
	.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	x20, x1
	mov	x19, x0
	bl	_COMBOEX_FindItem
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_debugstr_txt
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	str	w20, [x19, #4]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _CB_SETCURSEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CB_SETCURSEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	bl	_SendMessageW
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_COMBOEX_SetEditText
	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
	ret
LBB0_2:
Lloh5:
	adrp	x8, _CB_SETCURSEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CB_SETCURSEL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	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	_SendMessageW
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CB_SETCURSEL,4,2               ; @CB_SETCURSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selecting item %ld text=%s\n"

	.no_dead_strip	_COMBOEX_SetCursel
.subsections_via_symbols
