	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_long_utf16               ## -- Begin function check_long_utf16
	.p2align	4, 0x90
_check_long_utf16:                      ## @check_long_utf16
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LONG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_assert
	leaq	L_str(%rip), %rdi
	callq	_puts
	movw	$-257, (%r14)                   ## imm = 0xFEFF
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	movl	$47, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	movl	$16, %edx
	cmovel	%ecx, %edx
	movb	%dl, 2(%r14,%rax,2)
	movb	$4, 3(%r14,%rax,2)
	incq	%rax
	cmpl	(%r12), %eax
	jl	LBB0_2
LBB0_3:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_yaml_parser_initialize
	movl	(%r12), %eax
	leal	(%rax,%rax), %edx
	addl	$2, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_yaml_parser_set_input_string
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.4:
	xorl	%ebx, %ebx
	movl	-72(%rbp), %eax
	leaq	-72(%rbp), %r15
	movl	$175, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_yaml_parser_update_buffer
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %bl
	movl	$144, %r8d
	cmovel	%r13d, %r8d
	movq	-48(%rbp), %rcx
	movzbl	(%rcx), %esi
	movzbl	1(%rcx), %edx
	cmpl	$208, %esi
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %r8d
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rcx
	movq	%rcx, -48(%rbp)
	decl	%eax
	movl	%eax, -72(%rbp)
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_5
LBB0_15:
	leaq	-72(%rbp), %rdi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_yaml_parser_update_buffer
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	-48(%rbp), %rax
	movzbl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.19:
	movl	-72(%rbp), %ecx
	movl	-52(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_16:
	movq	-64(%rbp), %rsi
	movl	-56(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_21
LBB0_12:
	movl	$208, %esi
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	movl	$208, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_20:
	movl	$1, %ebx
LBB0_21:
	leaq	-72(%rbp), %rdi
	callq	_yaml_parser_delete
	movq	%r14, %rdi
	callq	_free
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_7:
	movq	-64(%rbp), %rsi
	movl	-56(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG,4,2                       ## @LONG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\treader error: %s at %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"\tnot enough characters at %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tincorrect UTF-8 sequence: %X %X instead of %X %X\n"

L_.str.4:                               ## @.str.4
	.asciz	"\texpected NUL, found %X (eof=%d, unread=%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"checking a long utf16 sequence: %d fail(s)\n"

L_str:                                  ## @str
	.asciz	"checking a long utf16 sequence..."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_long_utf16               ; -- Begin function check_long_utf16
	.p2align	2
_check_long_utf16:                      ; @check_long_utf16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x20, _LONG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LONG@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w8, w8, #1
	add	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	bl	_assert
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w8, #65279
	strh	w8, [x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #0
	add	x9, x19, #3
	mov	w10, #16
	mov	w11, #47
	mov	w12, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tst	w8, #0x1
	csel	w13, w11, w10, eq
	sturb	w13, [x9, #-1]
	strb	w12, [x9], #2
	add	w8, w8, #1
	ldr	w13, [x20]
	cmp	w8, w13
	b.lt	LBB0_2
LBB0_3:
	add	x0, sp, #32
	bl	_yaml_parser_initialize
	ldr	w8, [x20]
	lsl	w8, w8, #1
	add	w2, w8, #2
	add	x0, sp, #32
	mov	x1, x19
	bl	_yaml_parser_set_input_string
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w21, #0
	ldr	w8, [sp, #32]
	mov	w22, #144
	mov	w23, #175
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #32
	mov	w1, #1
	bl	_yaml_parser_update_buffer
	cbz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_20
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	tst	w21, #0x1
	csel	w10, w23, w22, eq
	ldr	x12, [sp, #56]
	ldrb	w11, [x12]
	ldrb	w9, [x12, #1]
	cmp	w11, #208
	b.ne	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w10, w9
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x12, #2
	str	x9, [sp, #56]
	sub	w8, w8, #1
	str	w8, [sp, #32]
	add	w21, w21, #1
	ldr	w9, [x20]
	cmp	w21, w9
	b.lt	LBB0_5
LBB0_11:
	add	x0, sp, #32
	mov	w1, #1
	bl	_yaml_parser_update_buffer
	cbz	w0, LBB0_14
; %bb.12:
	ldr	x8, [sp, #56]
	ldrb	w8, [x8]
	cbz	w8, LBB0_19
; %bb.13:
	ldr	w9, [sp, #52]
	ldr	w10, [sp, #32]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_14:
	ldr	x8, [sp, #40]
	ldr	w9, [sp, #48]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:
	mov	w11, #208
LBB0_16:
	mov	w8, #208
	stp	x8, x10, [sp, #16]
	stp	x11, x9, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_printf
	mov	w20, #1
LBB0_18:
	add	x0, sp, #32
	bl	_yaml_parser_delete
	mov	x0, x19
	bl	_free
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	mov	w20, #0
	b	LBB0_18
LBB0_20:
	str	x21, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG,4,2                       ; @LONG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\treader error: %s at %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"\tnot enough characters at %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tincorrect UTF-8 sequence: %X %X instead of %X %X\n"

l_.str.4:                               ; @.str.4
	.asciz	"\texpected NUL, found %X (eof=%d, unread=%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"checking a long utf16 sequence: %d fail(s)\n"

l_str:                                  ; @str
	.asciz	"checking a long utf16 sequence..."

.subsections_via_symbols
