	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hc_path_has_bom
LCPI0_0:
	.long	239                             ## 0xef
	.long	187                             ## 0xbb
	.space	4
	.space	4
LCPI0_1:
	.long	254                             ## 0xfe
	.long	255                             ## 0xff
	.space	4
	.space	4
LCPI0_2:
	.long	43                              ## 0x2b
	.long	47                              ## 0x2f
	.space	4
	.space	4
LCPI0_3:
	.long	56                              ## 0x38
	.long	57                              ## 0x39
	.long	43                              ## 0x2b
	.long	47                              ## 0x2f
LCPI0_4:
	.long	247                             ## 0xf7
	.long	100                             ## 0x64
	.space	4
	.space	4
LCPI0_5:
	.long	221                             ## 0xdd
	.long	115                             ## 0x73
	.space	4
	.space	4
LCPI0_6:
	.long	251                             ## 0xfb
	.long	238                             ## 0xee
	.space	4
	.space	4
LCPI0_7:
	.long	132                             ## 0x84
	.long	49                              ## 0x31
	.long	149                             ## 0x95
	.long	51                              ## 0x33
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hc_path_has_bom
	.p2align	4, 0x90
_hc_path_has_bom:                       ## @hc_path_has_bom
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -48(%rbp)
	movdqa	%xmm0, -64(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-68(%rbp), %rdi
	callq	_hc_fopen
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_35
## %bb.1:
	leaq	-64(%rbp), %rdi
	leaq	-68(%rbp), %r14
	movl	$1, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_hc_fread
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_hc_fclose
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.2:
	movq	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <239,187,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %ecx
	movl	-56(%rbp), %eax
	testb	$1, %cl
	je	LBB0_6
## %bb.3:
	shrb	%cl
	je	LBB0_6
## %bb.4:
	cmpl	$191, %eax
	je	LBB0_5
LBB0_6:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <254,255,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %ecx
	cmpb	$3, %cl
	je	LBB0_5
## %bb.8:
	movd	%xmm0, %esi
	pextrd	$1, %xmm0, %edx
	cmpl	$255, %esi
	jne	LBB0_11
## %bb.9:
	cmpl	$254, %edx
	je	LBB0_5
LBB0_11:
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %edi
	movl	-52(%rbp), %r8d
	testb	$1, %dil
	je	LBB0_16
## %bb.12:
	shrb	%dil
	je	LBB0_16
## %bb.13:
	cmpl	$254, %eax
	jne	LBB0_16
## %bb.14:
	cmpl	$255, %r8d
	je	LBB0_5
LBB0_16:
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = <43,47,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %edi
	cmpb	$3, %dil
	sete	%bl
	cmpl	$118, %eax
	sete	%cl
	movd	%r8d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pcmpeqd	LCPI0_3(%rip), %xmm1
	andb	%bl, %cl
	movzbl	%cl, %ecx
	movd	%ecx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pand	%xmm1, %xmm2
	pslld	$31, %xmm2
	movmskps	%xmm2, %ecx
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.18:
	movdqa	LCPI0_4(%rip), %xmm1            ## xmm1 = <247,100,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %edi
	testb	$1, %dil
	je	LBB0_22
## %bb.19:
	shrb	%dil
	je	LBB0_22
## %bb.20:
	cmpl	$76, %eax
	je	LBB0_5
LBB0_22:
	movdqa	LCPI0_5(%rip), %xmm1            ## xmm1 = <221,115,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %edi
	testb	$1, %dil
	je	LBB0_27
## %bb.23:
	shrb	%dil
	je	LBB0_27
## %bb.24:
	cmpl	$102, %eax
	jne	LBB0_27
## %bb.25:
	cmpl	$115, %r8d
	je	LBB0_5
LBB0_27:
	cmpl	$14, %esi
	jne	LBB0_31
## %bb.28:
	cmpl	$254, %edx
	jne	LBB0_31
## %bb.29:
	cmpl	$255, %eax
	jne	LBB0_31
LBB0_5:
	movl	$1, %r15d
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movdqa	LCPI0_6(%rip), %xmm1            ## xmm1 = <251,238,u,u>
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm1
	movmskpd	%xmm1, %edx
	testb	$1, %dl
	je	LBB0_34
## %bb.32:
	shrb	%dl
	je	LBB0_34
## %bb.33:
	movl	$1, %r15d
	cmpl	$40, %eax
	je	LBB0_35
LBB0_34:
	pinsrd	$2, %eax, %xmm0
	pinsrd	$3, %r8d, %xmm0
	psubd	LCPI0_7(%rip), %xmm0
	xorl	%r15d, %r15d
	ptest	%xmm0, %xmm0
	sete	%r15b
	jmp	LBB0_35
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hc_path_has_bom
lCPI0_0:
	.long	239                             ; 0xef
	.long	187                             ; 0xbb
lCPI0_1:
	.long	254                             ; 0xfe
	.long	255                             ; 0xff
lCPI0_2:
	.long	43                              ; 0x2b
	.long	47                              ; 0x2f
lCPI0_3:
	.long	247                             ; 0xf7
	.long	100                             ; 0x64
lCPI0_4:
	.long	221                             ; 0xdd
	.long	115                             ; 0x73
lCPI0_5:
	.long	251                             ; 0xfb
	.long	238                             ; 0xee
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_6:
	.long	132                             ; 0x84
	.long	49                              ; 0x31
	.long	149                             ; 0x95
	.long	51                              ; 0x33
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hc_path_has_bom
	.p2align	2
_hc_path_has_bom:                       ; @hc_path_has_bom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_hc_fopen
	cbz	w0, LBB0_29
; %bb.1:
	add	x0, sp, #16
	add	x3, sp, #12
	mov	w1, #1
	mov	w2, #32
	bl	_hc_fread
	mov	x19, x0
	add	x0, sp, #12
	bl	_hc_fclose
	cbz	x19, LBB0_28
; %bb.2:
	ldr	d0, [sp, #16]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	cmeq.2s	v1, v0, v1
	mov.s	w8, v1[1]
	fmov	w9, s1
	and	w9, w9, w8
	ldr	w8, [sp, #24]
	cmp	w8, #191
	cset	w10, eq
	and	w9, w9, w10
	mov	w0, #1
	tbnz	w9, #0, LBB0_29
; %bb.3:
Lloh7:
	adrp	x9, lCPI0_1@PAGE
Lloh8:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
	cmeq.2s	v1, v0, v1
	mov.s	w9, v1[1]
	fmov	w10, s1
	and	w9, w10, w9
	tbnz	w9, #0, LBB0_29
; %bb.4:
	fmov	w11, s0
	mov.s	w10, v0[1]
	cmp	w11, #255
	b.ne	LBB0_6
; %bb.5:
	cmp	w10, #254
	b.eq	LBB0_27
LBB0_6:
	cmeq.2s	v1, v0, #0
	fmov	w12, s1
	ldr	w9, [sp, #28]
	tbz	w12, #0, LBB0_10
; %bb.7:
	mov.s	w12, v1[1]
	tbz	w12, #0, LBB0_10
; %bb.8:
	cmp	w8, #254
	b.ne	LBB0_10
; %bb.9:
	cmp	w9, #255
	b.eq	LBB0_27
LBB0_10:
Lloh9:
	adrp	x12, lCPI0_2@PAGE
Lloh10:
	ldr	d1, [x12, lCPI0_2@PAGEOFF]
	cmeq.2s	v1, v0, v1
	mov.s	w12, v1[1]
	fmov	w13, s1
	and	w12, w13, w12
	cmp	w8, #118
	cset	w13, eq
	and	w12, w12, w13
	cmp	w9, #56
	cset	w13, eq
	and	w16, w12, w13
	cmp	w9, #57
	cset	w15, eq
	cmp	w9, #43
	cset	w14, eq
	cmp	w9, #47
	cset	w13, eq
	mov	w0, #1
	tbnz	w16, #0, LBB0_29
; %bb.11:
	and	w15, w12, w15
	tbnz	w15, #0, LBB0_29
; %bb.12:
	and	w14, w12, w14
	tbnz	w14, #0, LBB0_29
; %bb.13:
	and	w12, w12, w13
	tbnz	w12, #0, LBB0_29
; %bb.14:
Lloh11:
	adrp	x12, lCPI0_3@PAGE
Lloh12:
	ldr	d1, [x12, lCPI0_3@PAGEOFF]
	cmeq.2s	v1, v0, v1
	fmov	w12, s1
	tbz	w12, #0, LBB0_17
; %bb.15:
	mov.s	w12, v1[1]
	tbz	w12, #0, LBB0_17
; %bb.16:
	cmp	w8, #76
	b.eq	LBB0_27
LBB0_17:
Lloh13:
	adrp	x12, lCPI0_4@PAGE
Lloh14:
	ldr	d1, [x12, lCPI0_4@PAGEOFF]
	cmeq.2s	v1, v0, v1
	fmov	w12, s1
	tbz	w12, #0, LBB0_21
; %bb.18:
	mov.s	w12, v1[1]
	tbz	w12, #0, LBB0_21
; %bb.19:
	cmp	w8, #102
	b.ne	LBB0_21
; %bb.20:
	cmp	w9, #115
	b.eq	LBB0_27
LBB0_21:
	cmp	w11, #14
	b.ne	LBB0_24
; %bb.22:
	cmp	w10, #254
	b.ne	LBB0_24
; %bb.23:
	cmp	w8, #255
	b.eq	LBB0_27
LBB0_24:
Lloh15:
	adrp	x10, lCPI0_5@PAGE
Lloh16:
	ldr	d1, [x10, lCPI0_5@PAGEOFF]
	cmeq.2s	v1, v0, v1
	fmov	w10, s1
	tbz	w10, #0, LBB0_31
; %bb.25:
	mov.s	w10, v1[1]
	tbz	w10, #0, LBB0_31
; %bb.26:
	cmp	w8, #40
	b.ne	LBB0_31
LBB0_27:
	mov	w0, #1
	b	LBB0_29
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_31:
	mov.s	v0[2], w8
	mov.s	v0[3], w9
Lloh20:
	adrp	x8, lCPI0_6@PAGE
Lloh21:
	ldr	q1, [x8, lCPI0_6@PAGEOFF]
	cmeq.4s	v0, v0, v1
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	tst	w8, #0xf
	cset	w0, eq
	b	LBB0_29
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

.subsections_via_symbols
