	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function JSGlobal_encodeURIComponent
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_JSGlobal_encodeURIComponent:           ## @JSGlobal_encodeURIComponent
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movl	%ecx, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movl	(%r12), %esi
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	callq	_to_flat_string
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_28
## %bb.4:
	movq	-80(%rbp), %rbx
	movq	(%rbx), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.5:
	movq	_CP_UTF8@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	callq	_is_uri_unescaped
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rax,%rax,2), %eax
	addl	%eax, %r12d
	jmp	LBB0_11
LBB0_1:
	testq	%r15, %r15
	je	LBB0_26
## %bb.2:
	xorl	%eax, %eax
	callq	_jsstr_undefined
	movq	%rax, %rdi
	jmp	LBB0_24
LBB0_12:
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	_jsstr_alloc_buf
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.15:
	leaq	-52(%rbp), %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx
	leaq	8(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rax, (%rcx)
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_22
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	callq	_is_uri_unescaped
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	movq	%r12, %r8
	movl	$4, %r9d
	callq	_WideCharToMultiByte
	testl	%eax, %eax
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, %r14d
	movq	-48(%rbp), %rcx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	8(%rcx), %rax
	movq	%rax, -48(%rbp)
	movq	$37, (%rcx)
	movzbl	-52(%rbp,%r13), %eax
	sarb	$4, %al
	movsbl	%al, %edi
	callq	_int_to_char
	movq	-48(%rbp), %rcx
	leaq	8(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rax, (%rcx)
	movzbl	-52(%rbp,%r13), %edi
	andl	$15, %edi
	callq	_int_to_char
	movq	-48(%rbp), %rdx
	leaq	8(%rdx), %rcx
	movq	%rcx, -48(%rbp)
	movq	%rax, (%rdx)
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	movq	-64(%rbp), %rdi
	callq	_jsstr_release
	testq	%r15, %r15
	je	LBB0_25
## %bb.23:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:
	callq	_jsval_string
	movl	%eax, (%r15)
LBB0_26:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-64(%rbp), %rdi
	callq	_jsstr_release
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_jsstr_release
	jmp	LBB0_26
LBB0_9:
	movq	-64(%rbp), %rdi
	callq	_jsstr_release
	movq	_JS_E_INVALID_URI_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_throw_uri_error
	movl	%eax, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_JS_E_INVALID_URI_CHAR,4,2      ## @JS_E_INVALID_URI_CHAR
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_JSGlobal_encodeURIComponent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function JSGlobal_encodeURIComponent
_JSGlobal_encodeURIComponent:           ; @JSGlobal_encodeURIComponent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	w22, LBB0_8
; %bb.1:
	ldr	w1, [x21]
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x20
	bl	_to_flat_string
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.2:
	ldr	x22, [sp, #8]
	ldr	x0, [x22]
	cbz	x0, LBB0_10
; %bb.3:
	mov	w21, #0
Lloh2:
	adrp	x23, _CP_UTF8@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CP_UTF8@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	x0, [x22, #8]!
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_is_uri_unescaped
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x22
	mov	w3, #1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	cbz	w0, LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w0, w0, lsl #1
	add	w21, w8, w21
	ldr	x0, [x22, #8]!
	cbnz	x0, LBB0_5
	b	LBB0_11
LBB0_8:
	cbz	x19, LBB0_22
; %bb.9:
	bl	_jsstr_undefined
	b	LBB0_21
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x1, sp
	mov	x0, x21
	bl	_jsstr_alloc_buf
	cbz	x0, LBB0_25
; %bb.12:
	mov	x20, x0
	ldr	x21, [sp, #8]
	ldr	x0, [x21]
	cbz	x0, LBB0_20
; %bb.13:
Lloh4:
	adrp	x22, _CP_UTF8@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CP_UTF8@GOTPAGEOFF]
	mov	w23, #37
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21]
	ldr	x9, [sp]
	str	x8, [x9], #8
	str	x9, [sp]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x21, #8]!
	cbz	x0, LBB0_20
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	bl	_is_uri_unescaped
	cbnz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x22]
	add	x4, sp, #20
	mov	w1, #0
	mov	x2, x21
	mov	w3, #1
	mov	w5, #4
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w24, w0
	add	x25, sp, #20
	ldr	x8, [sp]
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x23, [x8], #8
	str	x8, [sp]
	ldrsb	w8, [x25]
	asr	w0, w8, #4
	bl	_int_to_char
	ldr	x8, [sp]
	str	x0, [x8], #8
	str	x8, [sp]
	ldrb	w8, [x25], #1
	and	w0, w8, #0xf
	bl	_int_to_char
	ldr	x8, [sp]
	str	x0, [x8], #8
	str	x8, [sp]
	subs	x24, x24, #1
	b.ne	LBB0_19
	b	LBB0_15
LBB0_20:
	ldr	x0, [sp, #24]
	bl	_jsstr_release
	mov	x0, x20
	cbz	x19, LBB0_26
LBB0_21:
	bl	_jsval_string
	str	w0, [x19]
LBB0_22:
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_23:
	ldr	w21, [x8]
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	ldr	x0, [sp, #24]
	bl	_jsstr_release
Lloh8:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_23
LBB0_26:
	bl	_jsstr_release
	b	LBB0_22
LBB0_27:
	ldr	x0, [sp, #24]
	bl	_jsstr_release
Lloh10:
	adrp	x8, _JS_E_INVALID_URI_CHAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JS_E_INVALID_URI_CHAR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_throw_uri_error
	mov	x21, x0
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_JS_E_INVALID_URI_CHAR,4,2      ; @JS_E_INVALID_URI_CHAR
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_JSGlobal_encodeURIComponent
.subsections_via_symbols
