	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfr_buf_next                   ## -- Begin function pfr_buf_next
	.p2align	4, 0x90
_pfr_buf_next:                          ## @pfr_buf_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	(%rdi), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	_PFRB_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jae	LBB0_14
## %bb.3:
	movslq	8(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.4:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.5:
	movq	_buf_esize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rsi, %rax
	subq	16(%rdi), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.6:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_9:
	movq	16(%rdi), %rcx
	jmp	LBB0_14
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	decq	%r8
	cmpq	%r8, %rax
	jae	LBB0_13
## %bb.12:
	addq	%rsi, %rcx
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFRB_MAX,8,3                   ## @PFRB_MAX
	.comm	_buf_esize,8,3                  ## @buf_esize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfr_buf_next                   ; -- Begin function pfr_buf_next
	.p2align	2
_pfr_buf_next:                          ; @pfr_buf_next
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PFRB_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PFRB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #2, ne
	b.hs	LBB0_7
; %bb.2:
	ldrsw	x9, [x0, #8]
	cbz	w9, LBB0_7
; %bb.3:
	cbz	x1, LBB0_8
; %bb.4:
Lloh3:
	adrp	x10, _buf_esize@GOTPAGE
Lloh4:
	ldr	x10, [x10, _buf_esize@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x10, [x0, #16]
	sub	x10, x1, x10
	udiv	x10, x10, x8
	sub	x9, x9, #1
	cmp	x10, x9
	b.hs	LBB0_7
; %bb.5:
	add	x0, x8, x1
LBB0_6:
	ret
LBB0_7:
	mov	x0, #0
	ret
LBB0_8:
	ldr	x0, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PFRB_MAX,8,3                   ; @PFRB_MAX
	.comm	_buf_esize,8,3                  ; @buf_esize
.subsections_via_symbols
