	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_memcmp                    ## -- Begin function pbuf_memcmp
	.p2align	4, 0x90
_pbuf_memcmp:                           ## @pbuf_memcmp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$65535, %eax                    ## imm = 0xFFFF
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subq	(%rbx), %rcx
	jl	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	movq	%rcx, %r12
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	testq	%r15, %r15
	cmovleq	%rax, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %r15
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r13), %rsi
	movq	%rbx, %rdi
	callq	_pbuf_get_at
	movq	%rax, %rcx
	leaq	1(%r13), %rax
	cmpq	(%r14,%r13,8), %rcx
	movq	%rax, %r13
	je	LBB0_4
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_memcmp                    ; -- Begin function pbuf_memcmp
	.p2align	2
_pbuf_memcmp:                           ; @pbuf_memcmp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w19, #65535
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	subs	x8, x22, x8
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x21, #8]
	mov	x22, x8
	cbnz	x21, LBB0_2
	b	LBB0_9
LBB0_4:
	mov	w19, #65535
	b	LBB0_9
LBB0_5:
	mov	x19, #0
	cmp	x3, #0
	csel	x23, x3, xzr, gt
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x19
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x22, x19
	mov	x0, x21
	bl	_pbuf_get_at
	ldr	x8, [x20, x19, lsl #3]
	add	x19, x19, #1
	cmp	x0, x8
	b.eq	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
