	.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)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	leaq	-48(%rbp), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$20, %ecx
	callq	_r_buf_read_at
	movq	_ELFMAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SELFMAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_memcmp
	testl	%eax, %eax
	sete	%al
	cmpl	$2, -32(%rbp)
	setne	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-16(%rbp), %rdx
	jne	LBB0_2
## %bb.1:
	andb	%cl, %al
	movzbl	%al, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ELFMAG,4,2                     ## @ELFMAG
	.comm	_SELFMAG,4,2                    ## @SELFMAG
	.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, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
	stp	xzr, xzr, [sp]
	str	wzr, [sp, #16]
	mov	x2, sp
	mov	w1, #0
	mov	w3, #20
	bl	_r_buf_read_at
Lloh3:
	adrp	x8, _ELFMAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELFMAG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SELFMAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SELFMAG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, sp
	bl	_memcmp
	cmp	w0, #0
	ldr	w8, [sp, #16]
	ccmp	w8, #2, #4, eq
	cset	w0, ne
	ldur	x8, [x29, #-8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ELFMAG,4,2                     ; @ELFMAG
	.comm	_SELFMAG,4,2                    ; @SELFMAG
	.no_dead_strip	_check_buffer
.subsections_via_symbols
