	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_ablock
_trim_ablock:                           ## @trim_ablock
	.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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rsi), %edi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setb	%dil
	callq	_BUG_ON
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setb	%dil
	callq	_BUG_ON
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	cmpl	%r15d, %eax
	jbe	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %r13d
	decl	%ebx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_element_at
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	*%r14
	cmpl	%r15d, %ebx
	jbe	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	cmpl	%r15d, %ebx
	ja	LBB0_2
LBB0_6:
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trim_ablock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_ablock
_trim_ablock:                           ; @trim_ablock
	.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
	mov	x21, x0
	ldr	w0, [x1, #4]
	bl	_le32_to_cpu
	cmp	w0, w20
	cset	w0, lo
	bl	_BUG_ON
	ldr	w0, [x19]
	bl	_le32_to_cpu
	cmp	w0, w20
	cset	w0, lo
	bl	_BUG_ON
	ldr	w0, [x19]
	bl	_le32_to_cpu
	cmp	w0, w20
	b.ls	LBB0_5
; %bb.1:
	mov	x22, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x21]
	sub	w22, w22, #1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_element_at
	mov	x1, x0
	mov	x0, x23
	blr	x24
	cmp	w22, w20
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x21, #8]
	cbnz	x24, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, #1
	cmp	w22, w20
	b.hi	LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [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
	.no_dead_strip	_trim_ablock
.subsections_via_symbols
