	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_mod_i                       ## -- Begin function av_mod_i
	.p2align	4, 0x90
_av_mod_i:                              ## @av_mod_i
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_av_log2_i
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_av_log2_i
	testq	%r13, %r13
	leaq	-72(%rbp), %r12
	movq	%r13, %rdx
	cmoveq	%r12, %rdx
	movq	_AV_INTEGER_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	$0, -4(%r14,%rcx,4)
	js	LBB0_1
## %bb.2:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	subl	%eax, %r13d
	movl	-4(%r15,%rcx,4), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert2
	movq	%r15, %rdi
	callq	_av_log2_i
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_av_assert2
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.3:
	negl	%r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_av_shr_i
	movq	%rax, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_5
LBB0_1:
	movq	_zero_i@GOTPCREL(%rip), %rax
	movq	%rdx, %rbx
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_av_sub_i
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_av_mod_i
	movq	%rax, %rbx
	testq	%r13, %r13
	movq	_zero_i@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	cmovneq	%r13, %r12
	movq	(%r12), %rsi
	callq	_av_sub_i
	movq	%rax, (%r12)
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_av_sub_i
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r13d, %r13d
	js	LBB0_9
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmovneq	%rax, %r12
	notl	%ebx
	addl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_av_shr_i
	movq	%rax, %r15
	incl	%ebx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	$-1, %esi
	callq	_av_shr_i
	movq	%rax, (%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_av_cmp_i
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_av_sub_i
	movq	%rax, %r14
	movq	(%r12), %rax
	incl	(%rax)
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INTEGER_SIZE,4,2            ## @AV_INTEGER_SIZE
	.comm	_zero_i,8,3                     ## @zero_i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_mod_i                       ; -- Begin function av_mod_i
	.p2align	2
_av_mod_i:                              ; @av_mod_i
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_av_log2_i
	mov	x22, x0
	mov	x0, x20
	bl	_av_log2_i
	add	x25, sp, #8
	cmp	x21, #0
	csel	x24, x25, x21, eq
Lloh0:
	adrp	x8, _AV_INTEGER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_INTEGER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	ldr	w9, [x19, x8, lsl #2]
	tbnz	w9, #31, LBB0_3
; %bb.1:
	mov	x23, x0
	sub	w25, w22, w23
	ldr	w8, [x20, x8, lsl #2]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_av_assert2
	mov	x0, x20
	bl	_av_log2_i
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_av_assert2
	cmp	w25, #1
	b.lt	LBB0_4
; %bb.2:
	neg	w1, w25
	mov	x0, x20
	bl	_av_shr_i
	mov	x20, x0
	mov	x0, x24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x22, _zero_i@GOTPAGE
Lloh4:
	ldr	x22, [x22, _zero_i@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	x1, x19
	bl	_av_sub_i
	mov	x1, x0
	mov	x0, x24
	mov	x2, x20
	bl	_av_mod_i
	mov	x19, x0
	ldr	x0, [x22]
	cmp	x21, #0
	csel	x20, x25, x21, eq
	ldr	x1, [x20]
	bl	_av_sub_i
	str	x0, [x20]
	ldr	x0, [x22]
	mov	x1, x19
	bl	_av_sub_i
	mov	x19, x0
	b	LBB0_9
LBB0_4:
	mov	x0, x24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	tbnz	w25, #31, LBB0_9
LBB0_5:
	add	x8, sp, #8
	cmp	x21, #0
	csel	x21, x8, x21, eq
	mvn	w8, w22
	add	w22, w8, w23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_av_shr_i
	mov	x20, x0
	adds	w22, w22, #1
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	w1, #-1
	bl	_av_shr_i
	str	x0, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_av_cmp_i
	tbnz	x0, #63, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_av_sub_i
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INTEGER_SIZE,4,2            ; @AV_INTEGER_SIZE
	.comm	_zero_i,8,3                     ; @zero_i
.subsections_via_symbols
