	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header_files
_read_header_files:                     ## @read_header_files
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$12, %esi
	movq	%rbx, %rdi
	callq	_read_or_die
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_2:
	movq	%r14, %rdi
	callq	_read8
	movq	%rax, %rdi
	callq	_skip
	movq	_header_page_size_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_long_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$13, %esi
	movq	%rbx, %rdi
	callq	_read_or_die
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$13, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_die
LBB0_4:
	movq	%r14, %rdi
	callq	_read8
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_malloc_or_die
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_read_or_die
	movq	%rbx, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header_page"

L_.str.1:                               ## @.str.1
	.asciz	"did not read header page"

	.comm	_header_page_size_size,4,2      ## @header_page_size_size
	.comm	_long_size,4,2                  ## @long_size
L_.str.2:                               ## @.str.2
	.asciz	"header_event"

L_.str.3:                               ## @.str.3
	.asciz	"did not read header event"

	.no_dead_strip	_read_header_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header_files
_read_header_files:                     ; @read_header_files
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x20
	mov	w1, #12
	bl	_read_or_die
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #12
	bl	_memcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_2:
	mov	x0, x19
	bl	_read8
	bl	_skip
Lloh12:
	adrp	x8, _header_page_size_size@GOTPAGE
Lloh13:
	ldr	x8, [x8, _header_page_size_size@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _long_size@GOTPAGE
Lloh16:
	ldr	x9, [x9, _long_size@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	mov	x0, x20
	mov	w1, #13
	bl	_read_or_die
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #13
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_4:
	mov	x0, x19
	bl	_read8
	mov	x19, x0
	bl	_malloc_or_die
	mov	x20, x0
	mov	x1, x19
	bl	_read_or_die
	mov	x0, x20
	bl	_free
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header_page"

l_.str.1:                               ; @.str.1
	.asciz	"did not read header page"

	.comm	_header_page_size_size,4,2      ; @header_page_size_size
	.comm	_long_size,4,2                  ; @long_size
l_.str.2:                               ; @.str.2
	.asciz	"header_event"

l_.str.3:                               ; @.str.3
	.asciz	"did not read header event"

	.no_dead_strip	_read_header_files
.subsections_via_symbols
