	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteBuffer_WriteHexEscapeSequence
_WriteBuffer_WriteHexEscapeSequence:    ## @WriteBuffer_WriteHexEscapeSequence
	.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	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_FIRST_NON_BMP_CODEPOINT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_SURROGATES_FROM_CODEPOINT
	movl	%eax, %ebx
	shll	$16, %eax
	sarl	$16, %ebx
	orl	%eax, %ebx
LBB0_2:
	leaq	_WriteBuffer_WriteHexEscapeSequence.hexDigits(%rip), %r13
	movq	_JSON_Failure@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	$92, %edx
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	$117, %edx
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	shrl	$12, %eax
	andl	$15, %eax
	movsbl	(%rax,%r13), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	shrl	$8, %eax
	andl	$15, %eax
	movsbl	(%rax,%r13), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$15, %eax
	movsbl	(%rax,%r13), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	andl	$15, %eax
	movsbl	(%rax,%r13), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	sarl	$16, %eax
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movl	%eax, %ebx
	ja	LBB0_3
## %bb.10:
	movq	_JSON_Success@GOTPCREL(%rip), %r12
LBB0_11:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_NON_BMP_CODEPOINT,4,2    ## @FIRST_NON_BMP_CODEPOINT
	.section	__TEXT,__const
	.p2align	4                               ## @WriteBuffer_WriteHexEscapeSequence.hexDigits
_WriteBuffer_WriteHexEscapeSequence.hexDigits:
	.ascii	"0123456789ABCDEF"

	.comm	_JSON_Failure,4,2               ## @JSON_Failure
	.comm	_JSON_Success,4,2               ## @JSON_Success
	.no_dead_strip	_WriteBuffer_WriteHexEscapeSequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteBuffer_WriteHexEscapeSequence
_WriteBuffer_WriteHexEscapeSequence:    ; @WriteBuffer_WriteHexEscapeSequence
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FIRST_NON_BMP_CODEPOINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRST_NON_BMP_CODEPOINT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_SURROGATES_FROM_CODEPOINT
	lsl	w8, w0, #16
	orr	w21, w8, w0, asr #16
LBB0_2:
Lloh3:
	adrp	x23, _WriteBuffer_WriteHexEscapeSequence.hexDigits@PAGE
Lloh4:
	add	x23, x23, _WriteBuffer_WriteHexEscapeSequence.hexDigits@PAGEOFF
Lloh5:
	adrp	x22, _JSON_Failure@GOTPAGE
Lloh6:
	ldr	x22, [x22, _JSON_Failure@GOTPAGEOFF]
Lloh7:
	adrp	x24, _JSON_Success@GOTPAGE
Lloh8:
	ldr	x24, [x24, _JSON_Success@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #92
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #117
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x8, x21, #12, #4
	ldrb	w8, [x23, x8]
	sxtb	w2, w8
	mov	x0, x20
	mov	x1, x19
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x8, x21, #8, #4
	ldrb	w8, [x23, x8]
	sxtb	w2, w8
	mov	x0, x20
	mov	x1, x19
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x8, x21, #4, #4
	ldrb	w8, [x23, x8]
	sxtb	w2, w8
	mov	x0, x20
	mov	x1, x19
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x8, x21, #0xf
	ldrb	w8, [x23, x8]
	sxtb	w2, w8
	mov	x0, x20
	mov	x1, x19
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w8, w21, #16
	asr	w9, w21, #16
	mov	x21, x9
	cbnz	w8, LBB0_3
; %bb.10:
	mov	x22, x24
LBB0_11:
	ldr	w0, [x22]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_NON_BMP_CODEPOINT,4,2    ; @FIRST_NON_BMP_CODEPOINT
	.section	__TEXT,__const
_WriteBuffer_WriteHexEscapeSequence.hexDigits: ; @WriteBuffer_WriteHexEscapeSequence.hexDigits
	.ascii	"0123456789ABCDEF"

	.comm	_JSON_Failure,4,2               ; @JSON_Failure
	.comm	_JSON_Success,4,2               ; @JSON_Success
	.no_dead_strip	_WriteBuffer_WriteHexEscapeSequence
.subsections_via_symbols
