	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powerpc_va2off
_powerpc_va2off:                        ## @powerpc_va2off
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	16(%r15), %r14
	movl	4(%rax), %edi
	callq	_be16toh
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_be16toh
	addq	%rax, %r14
	decl	%ebx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_be32toh
	cmpq	%r12, %rax
	jg	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_be32toh
	movq	%rax, %r13
	movl	4(%r14), %edi
	callq	_be32toh
	addq	%r13, %rax
	cmpq	%r12, %rax
	jle	LBB0_2
## %bb.5:
	movl	8(%r14), %edi
	movq	(%r15), %r15
	addq	%r12, %r15
	callq	_be32toh
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_be32toh
	addq	%r15, %rbx
	subq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	4(%r14), %edi
	callq	_be32toh
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_be32toh
	subq	%r12, %rbx
	addq	%rax, %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_powerpc_va2off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function powerpc_va2off
_powerpc_va2off:                        ; @powerpc_va2off
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x24, [x0]
	ldp	x8, x23, [x24, #8]
	ldr	w0, [x8, #4]
	bl	_be16toh
	mov	x21, x0
	cbnz	w21, LBB0_3
LBB0_1:
	mov	x0, #0
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, #1
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_be16toh
	add	x23, x0, x23
	cbz	w21, LBB0_1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_be32toh
	cmp	x0, x19
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	bl	_be32toh
	mov	x22, x0
	ldr	w0, [x23, #4]
	bl	_be32toh
	add	x8, x0, x22
	cmp	x8, x19
	b.le	LBB0_2
; %bb.5:
	ldr	x22, [x24]
	ldr	w0, [x23, #8]
	bl	_be32toh
	mov	x21, x0
	ldr	w0, [x23]
	bl	_be32toh
	add	x8, x22, x19
	add	x8, x8, x21
	sub	x8, x8, x0
	str	x8, [x20]
	ldr	w0, [x23, #4]
	bl	_be32toh
	mov	x20, x0
	ldr	w0, [x23]
	bl	_be32toh
	sub	x8, x20, x19
	add	x0, x8, x0
LBB0_6:
	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
	.no_dead_strip	_powerpc_va2off
.subsections_via_symbols
