	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_node_from_file                 ## -- Begin function node_from_file
	.p2align	4, 0x90
_node_from_file:                        ## @node_from_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_os_readfile
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	-32(%rbp), %rsi
	incq	%rsi
	movq	%rax, %rdi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	-32(%rbp), %rax
	movb	$0, (%r15,%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movl	$1, %ecx
	movq	%rax, %rdx
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	incq	%rdx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdx), %ebx
	incq	%rdx
	testb	%bl, %bl
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$62, %bl
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$60, %bl
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%ecx
	decq	%rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	decl	%ecx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	decq	%rdx
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_3:
	xorl	%r14d, %r14d
	movq	%rbx, %r15
	jmp	LBB0_17
LBB0_13:
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.14:
	decq	%rdx
LBB0_15:
	subl	%eax, %edx
	movq	%rax, %rdi
	movl	$32, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memset
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_xml_node_from_buf
	movq	%rax, %r14
LBB0_17:
	movq	%r15, %rdi
	callq	_os_free
LBB0_18:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<!DOCTYPE "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_node_from_file                 ; -- Begin function node_from_file
	.p2align	2
_node_from_file:                        ; @node_from_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	bl	_os_readfile
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x8, [sp, #8]
	add	x1, x8, #1
	bl	_os_realloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	ldr	x8, [sp, #8]
	strb	wzr, [x0, x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_os_strstr
	cbz	x0, LBB0_16
; %bb.3:
	mov	w8, #1
	mov	x9, x0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x9, x9, #1
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x9], #1
	cbz	w10, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w10, #62
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w10, #60
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	sub	x9, x9, #1
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	w8, w8, #1
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x9, #1
	b	LBB0_4
LBB0_11:
	mov	x19, #0
	b	LBB0_18
LBB0_12:
	mov	x19, #0
	mov	x20, x21
	b	LBB0_17
LBB0_13:
	cbnz	w8, LBB0_16
; %bb.14:
	sub	x9, x9, #1
LBB0_15:
	sub	w2, w9, w0
	mov	w1, #32
	bl	_os_memset
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_xml_node_from_buf
	mov	x19, x0
LBB0_17:
	mov	x0, x20
	bl	_os_free
LBB0_18:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<!DOCTYPE "

.subsections_via_symbols
