	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NLSChangeCase                  ## -- Begin function NLSChangeCase
	.p2align	4, 0x90
_NLSChangeCase:                         ## @NLSChangeCase
	.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
	movl	(%rdi), %r13d
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_Islower
	testq	%rax, %rax
	jne	LBB0_8
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15,%rbx), %r13d
	addq	$4, %rbx
	testl	%r13d, %r13d
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_Isupper
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	%r13d, %edi
	callq	_Tolower
	jmp	LBB0_9
LBB0_8:
	movl	%r13d, %edi
	callq	_Toupper
LBB0_9:
	movl	%eax, %r12d
	cmpl	$0, (%r15,%rbx)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_Strsave
	movq	%rax, %r14
	movl	%r12d, (%rax,%rbx)
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NLSChangeCase                  ; -- Begin function NLSChangeCase
	.p2align	2
_NLSChangeCase:                         ; @NLSChangeCase
	.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
	ldr	w20, [x0]
	cbz	w20, LBB0_10
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_Islower
	cbnz	x0, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x19, x22
	ldr	w20, [x8, #4]
	add	x22, x22, #4
	cbz	w20, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	cbz	w21, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_Isupper
	cbz	x0, LBB0_3
; %bb.6:
	mov	x0, x20
	bl	_Tolower
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_Toupper
LBB0_8:
	mov	x20, x0
	ldr	w8, [x19, x22]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_Strsave
	str	w20, [x0, x22]
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
