	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	%rbx, %rdi
	callq	_r_buf_size
	cmpl	$5, %eax
	jb	LBB0_11
## %bb.1:
	movl	%eax, %r12d
	movq	_sb@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_r_buf_fread_at
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$3, (%r14)
	jne	LBB0_11
## %bb.3:
	movslq	%r12d, %rax
	movslq	4(%r14), %rcx
	addq	$4, %rcx
	cmpq	%rax, %rcx
	ja	LBB0_11
## %bb.4:
	movl	12(%r14), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_11
## %bb.5:
	cmpl	%r12d, 8(%r14)
	jg	LBB0_11
## %bb.6:
	cmpl	%eax, 32(%r14)
	jl	LBB0_11
## %bb.7:
	cmpl	$983039, 28(%r14)               ## imm = 0xEFFFF
	jg	LBB0_11
## %bb.8:
	cmpl	%eax, 20(%r14)
	jl	LBB0_11
## %bb.9:
	cmpl	$983039, 24(%r14)               ## imm = 0xEFFFF
	jg	LBB0_11
## %bb.10:
	movl	36(%r14), %eax
	decl	%eax
	xorl	%r15d, %r15d
	cmpl	$64, %eax
	setb	%r15b
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sb,40,2                        ## @sb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"10i"

	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	mov	w1, #0
	bl	_r_return_val_if_fail
	mov	x0, x21
	bl	_r_buf_size
	mov	x20, x0
	mov	w0, #0
	cmp	w20, #5
	b.lo	LBB0_6
; %bb.1:
Lloh0:
	adrp	x19, _sb@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sb@GOTPAGEOFF]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	mov	w4, #1
	bl	_r_buf_fread_at
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	cmp	w8, #0
	ccmp	w9, #3, #0, ne
	b.ne	LBB0_6
; %bb.2:
	sxtw	x8, w20
	ldrsw	x9, [x19, #4]
	add	x9, x9, #4
	cmp	x9, x8
	b.hi	LBB0_4
; %bb.3:
	ldp	w10, w9, [x19, #8]
	ldp	w12, w11, [x19, #28]
	ldp	w13, w14, [x19, #20]
	mov	w15, #983039
	cmp	w9, #256
	ccmp	w10, w8, #0, ge
	ccmp	w11, w9, #8, le
	ccmp	w12, w15, #0, ge
	ccmp	w13, w9, #8, le
	ccmp	w14, w15, #0, ge
	b.le	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #36]
	sub	w8, w8, #1
	cmp	w8, #64
	cset	w0, lo
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sb,40,2                        ; @sb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"10i"

	.no_dead_strip	_check_buffer
.subsections_via_symbols
