	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function String_toUpperCase
_String_toUpperCase:                    ## @String_toUpperCase
	.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	%r9, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_string_val
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	movq	-40(%rbp), %rdi
	callq	_jsstr_length
	movl	%eax, %ebx
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_jsstr_alloc_buf
	movq	-40(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	-32(%rbp), %rsi
	callq	_jsstr_flush
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movq	-32(%rbp), %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edi
	callq	_towupper
	movq	-32(%rbp), %rdx
	leaq	4(%rdx), %rcx
	movl	%eax, (%rdx)
	movq	%rcx, -32(%rbp)
	decl	%ebx
	jne	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_jsval_string
	movl	%eax, (%r14)
LBB0_8:
	movq	-40(%rbp), %rdi
	callq	_jsstr_release
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	callq	_jsstr_release
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_String_toUpperCase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function String_toUpperCase
_String_toUpperCase:                    ; @String_toUpperCase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x5
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_get_string_val
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_10
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_jsstr_length
	mov	x20, x0
	mov	x1, sp
	bl	_jsstr_alloc_buf
	mov	x21, x0
	ldr	x0, [sp, #8]
	cbz	x21, LBB0_8
; %bb.3:
	ldr	x1, [sp]
	bl	_jsstr_flush
	cbz	w20, LBB0_6
; %bb.4:
	ldr	x8, [sp]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldr	w0, [x8]
	bl	_towupper
	ldr	x8, [sp]
	str	w0, [x8], #4
	str	x8, [sp]
	cbnz	w20, LBB0_5
LBB0_6:
	mov	x0, x21
	bl	_jsval_string
	str	w0, [x19]
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_jsstr_release
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	bl	_jsstr_release
Lloh4:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_String_toUpperCase
.subsections_via_symbols
