	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkHeader
_checkHeader:                           ## @checkHeader
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_r_buf_size
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_r_buf_read_at
	cmpl	$768, %r15d                     ## imm = 0x300
	jl	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_r_buf_read_be32_at
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	leal	4(%rax), %ecx
	cmpl	%r15d, %ecx
	jge	LBB0_8
## %bb.4:
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_r_buf_read_at
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcmp
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\312\376\272\276"

L_.str.1:                               ## @.str.1
	.asciz	"\316\372\355\376"

L_.str.2:                               ## @.str.2
	.asciz	"\376\355\372\316"

L_.str.3:                               ## @.str.3
	.asciz	"\376\355\372\317"

L_.str.4:                               ## @.str.4
	.asciz	"\317\372\355\376"

	.no_dead_strip	_checkHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkHeader
_checkHeader:                           ; @checkHeader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_r_buf_size
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #4
	bl	_r_buf_read_at
	mov	w0, #0
	cmp	w20, #768
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_5
; %bb.2:
	mov	w0, #0
LBB0_3:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #16
	bl	_r_buf_read_be32_at
	mov	x1, x0
	mov	w0, #0
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.6:
	add	w8, w1, #4
	cmp	w8, w20
	b.ge	LBB0_3
; %bb.7:
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_r_buf_read_at
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.8:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_3
LBB0_11:
	mov	w0, #1
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\312\376\272\276"

l_.str.1:                               ; @.str.1
	.asciz	"\316\372\355\376"

l_.str.2:                               ; @.str.2
	.asciz	"\376\355\372\316"

l_.str.3:                               ; @.str.3
	.asciz	"\376\355\372\317"

l_.str.4:                               ; @.str.4
	.asciz	"\317\372\355\376"

	.no_dead_strip	_checkHeader
.subsections_via_symbols
