	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_buffer
_check_buffer:                          ## @check_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_r_buf_read_at
	cmpl	$32, %eax
	jb	LBB0_7
## %bb.1:
	leaq	l_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	movl	$1, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	l_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	l_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	leaq	l_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	l_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"dex\n035\000"

l_.str.1:                               ## @.str.1
	.asciz	"dex\n036\000"

l_.str.2:                               ## @.str.2
	.asciz	"dex\n038\000"

l_.str.3:                               ## @.str.3
	.asciz	"dex\n009\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"dex\n"

	.no_dead_strip	_check_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_buffer
_check_buffer:                          ; @check_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	add	x2, sp, #8
	mov	w1, #0
	mov	w3, #32
	bl	_r_buf_read_at
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #32
	b.lo	LBB0_8
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-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_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	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,__const
l_.str:                                 ; @.str
	.asciz	"dex\n035\000"

l_.str.1:                               ; @.str.1
	.asciz	"dex\n036\000"

l_.str.2:                               ; @.str.2
	.asciz	"dex\n038\000"

l_.str.3:                               ; @.str.3
	.asciz	"dex\n009\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"dex\n"

	.no_dead_strip	_check_buffer
.subsections_via_symbols
