	.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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$120, %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
	xorl	%r14d, %r14d
	cmpl	$32, %eax
	jl	LBB0_7
## %bb.1:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	$0, -80(%rbp)
	leaq	-144(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$71, %ecx
	callq	_r_buf_read_at
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_r_buf_read_at
	cmpl	$32, %eax
	jne	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.4:
	cmpq	$0, -144(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	-144(%rbp), %rdi
	callq	_strstr
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movl	$1, %r14d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dyld"

L_.str.1:                               ## @.str.1
	.asciz	"arm64"

	.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, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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]
	stur	x8, [x29, #-24]
	bl	_r_buf_size
	cmp	w0, #32
	b.lt	LBB0_3
; %bb.1:
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #9
	mov	w3, #71
	bl	_r_buf_read_at
	mov	x20, x0
	sub	x2, x29, #56
	mov	x0, x19
	mov	w1, #0
	mov	w3, #32
	bl	_r_buf_read_at
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #32
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #56
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-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_10
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.7:
	ldr	x8, [sp]
	cbz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_strstr
	cbz	w0, LBB0_4
LBB0_9:
	mov	w0, #1
	b	LBB0_4
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dyld"

l_.str.1:                               ; @.str.1
	.asciz	"arm64"

	.no_dead_strip	_check_buffer
.subsections_via_symbols
