	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_string_index
_set_string_index:                      ## @set_string_index
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_IS_INTRESOURCE
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_TOOLBAR_ButtonHasString
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	$0, (%r14)
LBB0_4:
	movslq	%ebx, %rsi
	movq	%r14, %rdi
	testq	%r15, %r15
	je	LBB0_5
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Str_SetPtrW                    ## TAILCALL
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movslq	(%r14), %rdi
	callq	_Free
LBB0_8:
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Str_SetPtrAtoW                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_string_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_string_index
_set_string_index:                      ; @set_string_index
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_IS_INTRESOURCE
	mov	x22, x0
	mov	x0, x19
	bl	_TOOLBAR_ButtonHasString
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.1:
	cbnz	w22, LBB0_6
; %bb.2:
	cbnz	x0, LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
	sxtw	x1, w20
	mov	x0, x19
	cbz	x21, LBB0_9
; %bb.5:
	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	_Str_SetPtrW
LBB0_6:
	cbz	x0, LBB0_8
; %bb.7:
	ldrsw	x0, [x19]
	bl	_Free
LBB0_8:
	str	w20, [x19]
	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_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
	b	_Str_SetPtrAtoW
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_string_index
.subsections_via_symbols
