	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_sg_list
_trim_sg_list:                          ## @trim_sg_list
	.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	%rcx, %r14
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	cmpq	%rbx, %rsi
	jbe	LBB0_8
## %bb.2:
	addq	$-4, %rsi
	movq	%rsi, %rax
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	cmpl	%edi, %ecx
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-4(%rax), %rsi
	subl	%edi, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rax
	movq	%rsi, %rax
	ja	LBB0_3
LBB0_7:
	addq	$4, %rsi
	jmp	LBB0_8
LBB0_4:
	subl	%ecx, %edi
	movl	%edi, (%rax)
	addq	$4, %rax
	movq	%rax, %rsi
LBB0_8:
	movq	%rbx, %r15
	subq	%rsi, %r15
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_abs
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	imull	(%rbx), %eax
	negl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_trim_sg_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_sg_list
_trim_sg_list:                          ; @trim_sg_list
	.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
	mov	x19, x3
	mov	x20, x0
	cbz	w2, LBB0_6
; %bb.1:
	cmp	x1, x20
	b.ls	LBB0_6
; %bb.2:
	sub	x1, x1, #4
	mov	x8, x2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1]
	subs	w9, w8, w10
	b.lo	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x10, x1, #4
	cmp	w9, #0
	ccmp	x1, x20, #0, ne
	mov	x1, x10
	mov	x8, x9
	b.hi	LBB0_3
; %bb.5:
	add	x1, x10, #4
LBB0_6:
	sub	x21, x20, x1
	cbz	w2, LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_abs
Lloh0:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	ldr	w10, [x20]
	mul	w9, w10, w9
	neg	w8, w8
	and	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	sub	w8, w10, w8
	str	w8, [x1], #4
	sub	x21, x20, x1
	cbnz	w2, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_trim_sg_list
.subsections_via_symbols
