	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_popfilesupto                   ## -- Begin function popfilesupto
	.p2align	4, 0x90
_popfilesupto:                          ## @popfilesupto
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_parsefile@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	cmpq	%rdi, %rcx
	setne	%al
	je	LBB0_5
## %bb.1:
	cmpq	_basepf@GOTPCREL(%rip), %rcx
	je	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movq	_basepf@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_popfile
	movq	(%r14), %rcx
	cmpq	%rbx, %rcx
	setne	%al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %rcx
	jne	LBB0_3
LBB0_5:
	testb	%al, %al
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parsefile,8,3                  ## @parsefile
	.comm	_basepf,4,2                     ## @basepf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"popfilesupto() misused"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_popfilesupto                   ; -- Begin function popfilesupto
	.p2align	2
_popfilesupto:                          ; @popfilesupto
	.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
Lloh0:
	adrp	x20, _parsefile@GOTPAGE
Lloh1:
	ldr	x20, [x20, _parsefile@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x9, x0
	cset	w8, ne
Lloh2:
	adrp	x21, _basepf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _basepf@GOTPAGEOFF]
	ccmp	x9, x21, #4, ne
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_popfile
	ldr	x9, [x20]
	cmp	x9, x19
	cset	w8, ne
	ccmp	x9, x21, #4, ne
	b.ne	LBB0_2
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_error
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_parsefile,8,3                  ; @parsefile
	.comm	_basepf,4,2                     ; @basepf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"popfilesupto() misused"

.subsections_via_symbols
