	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_int32
_scan_int32:                            ## @scan_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	%ecx, %r8d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movl	16(%rdi), %r10d
	movq	_WV_MONO_DATA@GOTPCREL(%rip), %rax
	testl	%r10d, (%rax)
	je	LBB0_4
## %bb.1:
	testl	%r8d, %r8d
	jle	LBB0_35
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edx
	movl	$-1, %ecx
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	movl	$-1, %r12d
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rcx,8), %r8d
	movl	(%rsi,%r15,4), %ecx
	movzwl	%cx, %r14d
	movl	%ecx, %ebx
	sarl	$31, %ebx
	xorl	%ecx, %ebx
	movl	%ecx, %eax
	andl	$1, %eax
	negl	%eax
	xorl	%ecx, %eax
	andl	%ecx, %r12d
	orl	%ecx, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	addl	%r8d, %ecx
	leal	(%r14,%r14,2), %edi
	addl	%edi, %ecx
	orl	%ebx, %r11d
	orl	%eax, %r9d
	incq	%r15
	cmpq	%r15, %rdx
	jne	LBB0_3
	jmp	LBB0_7
LBB0_4:
	testl	%r8d, %r8d
	jle	LBB0_35
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	$-1, %ecx
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	movl	$-1, %r12d
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r15,4), %r14d
	leal	(%rcx,%rcx,8), %ecx
	movzwl	%r14w, %eax
	movl	%r14d, %edi
	sarl	$31, %edi
	xorl	%r14d, %edi
	movl	%r14d, %r8d
	andl	$1, %r8d
	negl	%r8d
	xorl	%r14d, %r8d
	andl	%r14d, %r12d
	orl	%r14d, %r13d
	movl	%r14d, %edx
	shrl	$16, %edx
	addl	%ecx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r15,4), %ecx
	leal	(%rax,%rax,2), %eax
	addl	%eax, %edx
	leal	(%rdx,%rdx,8), %eax
	movzwl	%cx, %edx
	leal	(%rdx,%rdx,2), %edx
	orl	%r11d, %edi
	movl	%ecx, %r11d
	sarl	$31, %r11d
	xorl	%ecx, %r11d
	orl	%r9d, %r8d
	movl	%ecx, %r9d
	andl	$1, %r9d
	negl	%r9d
	xorl	%ecx, %r9d
	andl	%ecx, %r12d
	orl	%ecx, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	addl	%edx, %ecx
	addl	%eax, %ecx
	orl	%edi, %r11d
	orl	%r8d, %r9d
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_6
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, 20(%r14)
	movq	_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %eax
	notl	%eax
	andl	%eax, %r10d
	movl	%r10d, 16(%r14)
	testl	%r11d, %r11d
	je	LBB0_8
## %bb.10:
	movq	_MAG_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	movl	%r11d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	%edi, %r10d
	sarl	%ebx
	cmpl	$1, %r11d
	movl	%ebx, %r11d
	ja	LBB0_11
## %bb.12:
	movl	%r10d, 16(%r14)
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_35:
	movl	$-1, 20(%r14)
	movq	_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %eax
	notl	%eax
	andl	%eax, %r10d
	movl	%r10d, 16(%r14)
	movl	$-1, %r12d
	xorl	%r13d, %r13d
	xorl	%r9d, %r9d
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_9:
	movq	_MAG_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_13:
	movl	%r10d, %eax
	andl	%r15d, %eax
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	testb	$1, %r13b
	jne	LBB0_19
## %bb.16:
	movl	$-1, %eax
	shll	%cl, %eax
	xorl	%r11d, %r11d
	movl	%r13d, %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	addl	%eax, %r10d
	incl	%r11d
	sarl	%edi
	testb	$2, %r13b
	movl	%edi, %r13d
	je	LBB0_17
## %bb.18:
	movl	%r10d, 16(%r14)
	movl	%r11d, 4(%r14)
	jmp	LBB0_27
LBB0_14:
	movq	_WV_INT32_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r10d
	movl	%r10d, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_19:
	testb	$1, %r12b
	jne	LBB0_20
## %bb.23:
	xorl	%r11d, %r11d
	testb	$2, %r9b
	jne	LBB0_27
## %bb.24:
	movl	$-1, %edi
	shll	%cl, %edi
	xorl	%r11d, %r11d
	movl	%r9d, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	addl	%edi, %r10d
	incl	%r11d
	sarl	%ebx
	testb	$4, %r9b
	movl	%ebx, %r9d
	je	LBB0_25
## %bb.26:
	movl	%r10d, 16(%r14)
	movl	%r11d, 12(%r14)
	jmp	LBB0_27
LBB0_20:
	movl	$-1, %eax
	shll	%cl, %eax
	xorl	%r11d, %r11d
	movl	%r12d, %edi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	addl	%eax, %r10d
	incl	%r11d
	sarl	%edi
	testb	$2, %r12b
	movl	%edi, %r12d
	jne	LBB0_21
## %bb.22:
	movl	%r10d, 16(%r14)
	movl	%r11d, 8(%r14)
LBB0_27:
	andl	%r10d, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r15d
	cmpl	$24, %r15d
	jl	LBB0_29
## %bb.28:
	leal	-23(%r15), %eax
	movl	%eax, (%r14)
	addl	%r15d, %r11d
	addl	$-23, %r11d
	movq	_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAG_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$23, %edx
	shll	%cl, %edx
	notl	%eax
	andl	%eax, %r10d
	addl	%edx, %r10d
	movl	%r10d, 16(%r14)
LBB0_29:
	testl	%r11d, %r11d
	je	LBB0_33
## %bb.30:
	movq	_WV_INT32_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %r10d
	movl	%r10d, 16(%r14)
	movq	_WV_MONO_DATA@GOTPCREL(%rip), %rax
	testl	%r10d, (%rax)
	je	LBB0_32
## %bb.31:
	movq	%rsi, %rdi
	movl	%r8d, %esi
	movl	%r11d, %edx
	callq	_shift_mono
	jmp	LBB0_33
LBB0_32:
	movq	%rsi, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r8d, %edx
	movl	%r11d, %ecx
	callq	_shift_stereo
LBB0_33:
	movl	(%r14), %eax
LBB0_34:
	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
	.comm	_MAG_MASK,4,2                   ## @MAG_MASK
	.comm	_MAG_LSB,4,2                    ## @MAG_LSB
	.comm	_WV_INT32_DATA,4,2              ## @WV_INT32_DATA
	.no_dead_strip	_scan_int32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_int32
_scan_int32:                            ; @scan_int32
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [x0]
	ldr	w13, [x0, #16]
Lloh0:
	adrp	x9, _WV_MONO_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WV_MONO_DATA@GOTPAGEOFF]
	ldr	w8, [x9]
	tst	w8, w13
	b.eq	LBB0_4
; %bb.1:
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w8, #0
	mov	w11, #0
	mov	w10, #0
	mov	w15, #-1
	mov	x14, x1
	mov	w12, #-1
	mov	w16, w3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w15, w15, w15, lsl #3
	ldr	w17, [x14], #4
	and	w0, w17, #0xffff
	add	w0, w0, w17, uxth #1
	add	w15, w15, w17, lsr #16
	add	w15, w15, w0
	eor	w0, w17, w17, asr #31
	orr	w8, w0, w8
	and	w0, w17, #0x1
	neg	w0, w0
	eor	w0, w17, w0
	orr	w10, w0, w10
	and	w12, w17, w12
	orr	w11, w17, w11
	subs	x16, x16, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_4:
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w8, #0
	mov	w11, #0
	mov	w10, #0
	mov	w15, #-1
	mov	x14, x1
	mov	x16, x2
	mov	w12, #-1
	mov	w17, w3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x14], #4
	add	w15, w15, w15, lsl #3
	and	w4, w0, #0xffff
	add	w4, w4, w0, uxth #1
	add	w15, w15, w0, lsr #16
	add	w15, w15, w4
	add	w15, w15, w15, lsl #3
	ldr	w4, [x16], #4
	and	w5, w4, #0xffff
	add	w5, w5, w4, uxth #1
	add	w5, w5, w4, lsr #16
	add	w15, w5, w15
	eor	w5, w0, w0, asr #31
	orr	w8, w5, w8
	eor	w5, w4, w4, asr #31
	orr	w8, w8, w5
	and	w5, w0, #0x1
	neg	w5, w5
	eor	w5, w0, w5
	orr	w10, w5, w10
	and	w5, w4, #0x1
	neg	w5, w5
	eor	w5, w4, w5
	orr	w10, w10, w5
	and	w12, w0, w12
	and	w12, w12, w4
	orr	w11, w0, w11
	orr	w11, w11, w4
	subs	x17, x17, #1
	b.ne	LBB0_6
LBB0_7:
Lloh2:
	adrp	x14, _MAG_MASK@GOTPAGE
Lloh3:
	ldr	x14, [x14, _MAG_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w14, [x14]
	bic	w13, w13, w14
	stp	w13, w15, [x19, #16]
	cbz	w8, LBB0_12
; %bb.8:
Lloh5:
	adrp	x15, _MAG_LSB@GOTPAGE
Lloh6:
	ldr	x15, [x15, _MAG_LSB@GOTPAGEOFF]
Lloh7:
	ldr	w15, [x15]
	mov	w16, #1
	lsl	w16, w16, w15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w13, w16
	asr	w17, w8, #1
	cmp	w8, #1
	mov	x8, x17
	b.hi	LBB0_9
; %bb.10:
	str	w13, [x19, #16]
	b	LBB0_13
LBB0_11:
	mov	w11, #0
	mov	w10, #0
	mov	w12, #-1
Lloh8:
	adrp	x8, _MAG_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAG_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w14, [x8]
	bic	w13, w13, w14
	stp	w13, w12, [x19, #16]
LBB0_12:
Lloh11:
	adrp	x8, _MAG_LSB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAG_LSB@GOTPAGEOFF]
Lloh13:
	ldr	w15, [x8]
LBB0_13:
	and	w8, w13, w14
	asr	w8, w8, w15
	cbz	w8, LBB0_18
; %bb.14:
	mov	w8, #0
	tbnz	w11, #0, LBB0_19
; %bb.15:
	mov	w10, #-1
	lsl	w10, w10, w15
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x12, x11
	add	w13, w13, w10
	add	w8, w8, #1
	asr	w11, w11, #1
	tbz	w12, #1, LBB0_16
; %bb.17:
	str	w13, [x19, #16]
	str	w8, [x19, #4]
	b	LBB0_27
LBB0_18:
	mov	w0, #0
Lloh14:
	adrp	x8, _WV_INT32_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WV_INT32_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w8, w13, w8
	str	w8, [x19, #16]
	b	LBB0_34
LBB0_19:
	tbnz	w12, #0, LBB0_24
; %bb.20:
	tbnz	w10, #1, LBB0_27
; %bb.21:
	mov	w11, #-1
	lsl	w11, w11, w15
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x12, x10
	add	w13, w13, w11
	add	w8, w8, #1
	asr	w10, w10, #1
	tbz	w12, #2, LBB0_22
; %bb.23:
	stp	w8, w13, [x19, #12]
	b	LBB0_27
LBB0_24:
	mov	w10, #-1
	lsl	w10, w10, w15
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x12
	add	w13, w13, w10
	add	w8, w8, #1
	asr	w12, w12, #1
	tbnz	w11, #1, LBB0_25
; %bb.26:
	str	w13, [x19, #16]
	str	w8, [x19, #8]
LBB0_27:
	and	w10, w13, w14
	asr	w10, w10, w15
	cmp	w10, #24
	b.lt	LBB0_29
; %bb.28:
	sub	w10, w10, #23
	str	w10, [x19]
	add	w8, w10, w8
Lloh17:
	adrp	x10, _MAG_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAG_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _MAG_LSB@GOTPAGE
Lloh21:
	ldr	x11, [x11, _MAG_LSB@GOTPAGEOFF]
	bic	w10, w13, w10
Lloh22:
	ldr	w11, [x11]
	mov	w12, #23
	lsl	w11, w12, w11
	add	w13, w11, w10
	str	w13, [x19, #16]
LBB0_29:
	cbz	w8, LBB0_33
; %bb.30:
Lloh23:
	adrp	x10, _WV_INT32_DATA@GOTPAGE
Lloh24:
	ldr	x10, [x10, _WV_INT32_DATA@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w10, w13, w10
	str	w10, [x19, #16]
	ldr	w9, [x9]
	mov	x0, x1
	tst	w9, w10
	b.eq	LBB0_32
; %bb.31:
	mov	x1, x3
	mov	x2, x8
	bl	_shift_mono
	b	LBB0_33
LBB0_32:
	mov	x1, x2
	mov	x2, x3
	mov	x3, x8
	bl	_shift_stereo
LBB0_33:
	ldr	w0, [x19]
LBB0_34:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WV_MONO_DATA,4,2               ; @WV_MONO_DATA
	.comm	_MAG_MASK,4,2                   ; @MAG_MASK
	.comm	_MAG_LSB,4,2                    ; @MAG_LSB
	.comm	_WV_INT32_DATA,4,2              ; @WV_INT32_DATA
	.no_dead_strip	_scan_int32
.subsections_via_symbols
