	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function knownHeaderBuffer
_knownHeaderBuffer:                     ## @knownHeaderBuffer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rdx
	movl	$8, %ecx
	callq	_r_buf_read_at
	xorl	%r14d, %r14d
	cmpl	$8, %eax
	jne	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_2:
	leaq	32(%rbx), %r12
	movq	%r15, %rdi
	callq	_r_buf_size
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.3:
	addq	$24, %rbx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$8, %ecx
	callq	_r_buf_read_at
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PE"

L_.str.1:                               ## @.str.1
	.asciz	"\013\001"

L_.str.2:                               ## @.str.2
	.asciz	"NE"

L_.str.3:                               ## @.str.3
	.asciz	"LE"

L_.str.4:                               ## @.str.4
	.asciz	"LX"

L_.str.5:                               ## @.str.5
	.asciz	"PL"

	.no_dead_strip	_knownHeaderBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function knownHeaderBuffer
_knownHeaderBuffer:                     ; @knownHeaderBuffer
	.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	x20, x1
	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, #8]
	mov	x2, sp
	mov	w3, #8
	bl	_r_buf_read_at
	cmp	w0, #8
	b.ne	LBB0_10
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.3:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.4:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, sp
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.5:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_6:
	add	x21, x20, #32
	mov	x0, x19
	bl	_r_buf_size
	cmp	x21, x0
	b.ge	LBB0_10
; %bb.7:
	add	x1, x20, #24
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_r_buf_read_at
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, sp
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PE"

l_.str.1:                               ; @.str.1
	.asciz	"\013\001"

l_.str.2:                               ; @.str.2
	.asciz	"NE"

l_.str.3:                               ; @.str.3
	.asciz	"LE"

l_.str.4:                               ; @.str.4
	.asciz	"LX"

l_.str.5:                               ; @.str.5
	.asciz	"PL"

	.no_dead_strip	_knownHeaderBuffer
.subsections_via_symbols
