	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmapro_window
_wmapro_window:                         ## @wmapro_window
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movl	16(%rdi), %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	24(%r14), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rcx,%r12,4), %r13
	shlq	$4, %r13
	movl	(%rax,%r13), %ecx
	movl	%ecx, %edx
	subl	%ebx, %edx
	sarl	%edx
	cmpl	%ebx, %ecx
	cmovll	%ecx, %ebx
	movl	$0, %esi
	cmovlel	%esi, %edx
	sarl	%ecx
	negl	%ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	addq	8(%rax,%r13), %rcx
	movslq	%edx, %rax
	leaq	(%rcx,%rax,4), %r15
	movl	%ebx, %edi
	callq	_av_log2
	movq	_WMAPRO_BLOCK_MIN_BITS@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	sarl	%ebx
	movq	40(%r14), %rax
	movslq	%ebx, %r8
	leaq	(%r15,%r8,4), %rdx
	movq	%r15, %rdi
	movq	%r15, %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	*(%rax)
	movl	16(%r14), %ebx
	movq	32(%r14), %rax
	movl	%ebx, (%rax,%r13)
	incq	%r12
	movslq	(%r14), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMAPRO_BLOCK_MIN_BITS,8,3      ## @WMAPRO_BLOCK_MIN_BITS
	.no_dead_strip	_wmapro_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmapro_window
_wmapro_window:                         ; @wmapro_window
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	ldr	x9, [x0, #32]
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x23, _WMAPRO_BLOCK_MIN_BITS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WMAPRO_BLOCK_MIN_BITS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldrsw	x10, [x10, x22, lsl #2]
	lsl	x24, x10, #4
	add	x9, x9, x24
	ldr	w10, [x9]
	ldr	x9, [x9, #8]
	neg	w11, w10, asr #1
	add	x9, x9, w11, sxtw #2
	subs	w11, w10, w8
	asr	w11, w11, #1
	csel	w20, w10, w8, lt
	csel	w8, w11, wzr, gt
	add	x21, x9, w8, sxtw #2
	ldr	x25, [x19, #24]
	mov	x0, x20
	bl	_av_log2
	ldr	x8, [x23]
	sub	x8, x0, x8
	ldr	x3, [x25, x8, lsl #3]
	asr	w4, w20, #1
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	add	x2, x21, w4, sxtw #2
	mov	x0, x21
	mov	x1, x21
	blr	x8
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #32]
	str	w8, [x9, x24]
	add	x22, x22, #1
	ldrsw	x10, [x19]
	cmp	x22, x10
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WMAPRO_BLOCK_MIN_BITS,8,3      ; @WMAPRO_BLOCK_MIN_BITS
	.no_dead_strip	_wmapro_window
.subsections_via_symbols
