	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yaml_parser_determine_encoding
_yaml_parser_determine_encoding:        ## @yaml_parser_determine_encoding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %eax
	movl	20(%rbx), %edi
	subl	%edi, %eax
	cmpl	$0, 24(%rbx)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %eax
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_yaml_parser_update_raw_buffer
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_5:
	cmpl	$2, %eax
	jl	LBB0_15
LBB0_6:
	movq	_BOM_UTF16LE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	16(%rbx), %eax
	movl	20(%rbx), %edi
	subl	%edi, %eax
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.10:
	movq	_BOM_UTF16BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	16(%rbx), %eax
	movl	20(%rbx), %edi
	subl	%edi, %eax
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.13:
	movq	_BOM_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	movq	_YAML_UTF8_ENCODING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_16
LBB0_7:
	movq	_YAML_UTF16LE_ENCODING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_YAML_UTF16BE_ENCODING@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addl	$2, 20(%rbx)
	addl	$2, (%rbx)
LBB0_16:
	movl	$1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	movq	_YAML_UTF8_ENCODING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addl	$3, 20(%rbx)
	addl	$3, (%rbx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BOM_UTF16LE,4,2                ## @BOM_UTF16LE
	.comm	_YAML_UTF16LE_ENCODING,8,3      ## @YAML_UTF16LE_ENCODING
	.comm	_BOM_UTF16BE,4,2                ## @BOM_UTF16BE
	.comm	_YAML_UTF16BE_ENCODING,8,3      ## @YAML_UTF16BE_ENCODING
	.comm	_BOM_UTF8,4,2                   ## @BOM_UTF8
	.comm	_YAML_UTF8_ENCODING,8,3         ## @YAML_UTF8_ENCODING
	.no_dead_strip	_yaml_parser_determine_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yaml_parser_determine_encoding
_yaml_parser_determine_encoding:        ; @yaml_parser_determine_encoding
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w9, [x19, #20]
	ldr	w8, [x19, #16]
	sub	w8, w8, w0
	cmp	w8, #2
	cbnz	w9, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_yaml_parser_update_raw_buffer
	cbnz	w0, LBB0_1
	b	LBB0_16
LBB0_4:
	b.lt	LBB0_10
LBB0_5:
Lloh0:
	adrp	x8, _BOM_UTF16LE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BOM_UTF16LE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.6:
	ldp	w8, w0, [x19, #16]
	sub	w8, w8, w0
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.7:
Lloh3:
	adrp	x8, _BOM_UTF16BE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BOM_UTF16BE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_12
; %bb.8:
	ldp	w8, w0, [x19, #16]
	sub	w8, w8, w0
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _BOM_UTF8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BOM_UTF8@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_memcmp
	cbz	w0, LBB0_17
LBB0_10:
Lloh9:
	adrp	x8, _YAML_UTF8_ENCODING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _YAML_UTF8_ENCODING@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _YAML_UTF16LE_ENCODING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _YAML_UTF16LE_ENCODING@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _YAML_UTF16BE_ENCODING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _YAML_UTF16BE_ENCODING@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x19, #20]
	add	w8, w8, #2
	str	w8, [x19, #20]
	ldr	w8, [x19]
	add	w8, w8, #2
LBB0_14:
	str	w8, [x19]
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh16:
	adrp	x8, _YAML_UTF8_ENCODING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _YAML_UTF8_ENCODING@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x19, #20]
	add	w8, w8, #3
	str	w8, [x19, #20]
	ldr	w8, [x19]
	add	w8, w8, #3
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BOM_UTF16LE,4,2                ; @BOM_UTF16LE
	.comm	_YAML_UTF16LE_ENCODING,8,3      ; @YAML_UTF16LE_ENCODING
	.comm	_BOM_UTF16BE,4,2                ; @BOM_UTF16BE
	.comm	_YAML_UTF16BE_ENCODING,8,3      ; @YAML_UTF16BE_ENCODING
	.comm	_BOM_UTF8,4,2                   ; @BOM_UTF8
	.comm	_YAML_UTF8_ENCODING,8,3         ; @YAML_UTF8_ENCODING
	.no_dead_strip	_yaml_parser_determine_encoding
.subsections_via_symbols
