	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_int32
_pack_int32:                            ## @pack_int32
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	movl	8(%rdi), %ebx
	leaq	20(%rdi), %r12
	addl	4(%rdi), %ebx
	addl	12(%rdi), %ebx
	movq	_WV_MONO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.2:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:
	movl	%ecx, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r14,4), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_put_sbits
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_4
	jmp	LBB0_8
LBB0_5:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.6:
	movq	%rdx, %r14
	movl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r13,4), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_put_sbits
	movl	(%r14,%r13,4), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_put_sbits
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incq	%r13
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WV_MONO_DATA,4,2               ## @WV_MONO_DATA
	.no_dead_strip	_pack_int32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_int32
_pack_int32:                            ; @pack_int32
	.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
	ldr	w20, [x0]
	cbz	w20, LBB0_8
; %bb.1:
	mov	x19, x1
	add	x21, x0, #20
	ldp	w8, w9, [x0, #4]
	ldp	w10, w11, [x0, #12]
	add	w8, w9, w8
	add	w23, w8, w10
Lloh0:
	adrp	x8, _WV_MONO_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WV_MONO_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_5
; %bb.2:
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w22, w3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19], #4
	asr	w2, w8, w23
	mov	x0, x21
	mov	x1, x20
	bl	_put_sbits
	subs	x22, x22, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_5:
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x22, x2
	mov	w24, w3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19], #4
	asr	w2, w8, w23
	mov	x0, x21
	mov	x1, x20
	bl	_put_sbits
	ldr	w8, [x22], #4
	asr	w2, w8, w23
	mov	x0, x21
	mov	x1, x20
	bl	_put_sbits
	subs	x24, x24, #1
	b.ne	LBB0_7
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WV_MONO_DATA,4,2               ; @WV_MONO_DATA
	.no_dead_strip	_pack_int32
.subsections_via_symbols
