	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function set_roi_map
LCPI0_0:
	.long	0x427c0000                      ## float 63
LCPI0_1:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_roi_map:                           ## @set_roi_map
	.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	$584, %rsp                      ## imm = 0x248
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -584(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -600(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -608(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rbp), %eax
	movl	%eax, -564(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-560(%rbp), %rdi
	movl	$508, %esi                      ## imm = 0x1FC
	callq	___bzero
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$1, -308(%rbp)
	movq	8(%rbx), %rcx
	movslq	(%rcx), %r15
	leaq	L_.str(%rip), %r12
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	cltd
	idivl	%r15d
	testl	%edx, %edx
	je	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.5:
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	%r14, -576(%rbp)                ## 8-byte Spill
	movq	%rbx, -616(%rbp)                ## 8-byte Spill
	movl	%eax, -568(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	movq	%r15, -592(%rbp)                ## 8-byte Spill
	jle	LBB0_16
## %bb.7:
	movss	20(%rcx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	leaq	L_.str.1(%rip), %r12
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_8
	jnp	LBB0_14
LBB0_8:
	movl	-568(%rbp), %ebx                ## 4-byte Reload
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movss	24(%rcx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	mulss	LCPI0_0(%rip), %xmm1
	cvttss2si	%xmm1, %edi
	movl	$-63, %esi
	movl	$63, %edx
	callq	_av_clip
	cltq
	cmpl	$0, -308(%rbp,%rax,4)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	-564(%rbp), %r14d               ## 4-byte Folded Reload
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rcx
	addq	$63, %rcx
	movslq	%r14d, %rdx
	leal	1(%r14), %esi
	movl	%esi, -560(%rbp,%rcx,4)
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rdx,4)
	movl	%esi, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	decq	%rbx
	movq	-592(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-616(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	leaq	(%r15,%rax), %rcx
	movss	20(%r15,%rax), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addq	%rdx, %r15
	ucomiss	LCPI0_1(%rip), %xmm0
	jne	LBB0_9
	jp	LBB0_9
LBB0_14:
	movq	-576(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_3
LBB0_15:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movl	-564(%rbp), %ecx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_16:
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	movq	-600(%rbp), %rax                ## 8-byte Reload
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	%eax, 8(%r13)
	movq	-608(%rbp), %rax                ## 8-byte Reload
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, 12(%r13)
	imull	%eax, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_32
## %bb.17:
	movl	-568(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	jle	LBB0_30
## %bb.18:
	movl	%eax, %edx
	movq	-584(%rbp), %rax                ## 8-byte Reload
	decl	%eax
	movl	%eax, -564(%rbp)                ## 4-byte Spill
	movl	%edx, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$1, -600(%rbp)                  ## 8-byte Folded Reload
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	movq	-608(%rbp), %rax                ## 8-byte Reload
	jle	LBB0_30
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_29 Depth 3
	movq	%rax, -600(%rbp)                ## 8-byte Spill
	leaq	-1(%rax), %r14
	movq	-616(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	%r14, -608(%rbp)                ## 8-byte Spill
	imulq	%rcx, %r14
	movl	4(%rbx,%r14), %eax
	cltd
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	idivl	%ecx
	movq	%rcx, %r15
	movl	8(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, %r12d
	movl	8(%rbx,%r14), %eax
	addl	-564(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	%r15d
	movl	8(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, -568(%rbp)                ## 4-byte Spill
	movl	12(%rbx,%r14), %eax
	cltd
	idivl	%r15d
	movl	12(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, %r15d
	movl	16(%rbx,%r14), %eax
	addl	-564(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	-584(%rbp)                      ## 4-byte Folded Reload
	movl	12(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movss	24(%rbx,%r14), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	20(%rbx,%r14), %xmm0
	movl	%eax, %r14d
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	movl	$-63, %esi
	movl	$63, %edx
	callq	_av_clip
	movl	-568(%rbp), %r11d               ## 4-byte Reload
	cltq
	movl	-308(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%r11d, %r12d
	jge	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	decl	%eax
	movl	%r14d, %r8d
	subl	%r15d, %r8d
	leal	1(%r15), %r9d
	movl	%r14d, %r10d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	incl	%r12d
	cmpl	%r11d, %r12d
	je	LBB0_19
LBB0_24:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_29 Depth 3
	cmpl	%r15d, %r14d
	jle	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	16(%r13), %rdi
	movl	%r15d, %ecx
	testb	$1, %r8b
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	12(%r13), %ecx
	imull	%r12d, %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdi,%rcx,4)
	movl	%r9d, %ecx
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=2
	cmpl	%r9d, %r14d
	je	LBB0_23
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	movslq	%ecx, %rcx
	leal	1(%rcx), %edx
	movslq	%edx, %rdx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_20 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	12(%r13), %rsi
	movslq	%r12d, %rbx
	imulq	%rbx, %rsi
	addq	%rcx, %rsi
	movl	%eax, (%rdi,%rsi,4)
	movslq	12(%r13), %rsi
	imulq	%rbx, %rsi
	addq	%rdx, %rsi
	movl	%eax, (%rdi,%rsi,4)
	addq	$2, %rcx
	addq	$2, %rdx
	cmpl	%ecx, %r10d
	jne	LBB0_29
	jmp	LBB0_23
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.31:
	xorl	%eax, %eax
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %r12
	movq	-576(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_4
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid AVRegionOfInterest.self_size.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"AVRegionOfInterest.qoffset.den must not be zero.\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"ROI only supports %d segments (and segment 0 is reserved for non-ROIs), skipping the left ones.\n"

L_.str.3:                               ## @.str.3
	.asciz	"roi_map alloc failed.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_DELTA_Q,4,2                ## @MAX_DELTA_Q
	.no_dead_strip	_set_roi_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_roi_map
_set_roi_map:                           ; @set_roi_map
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #576
	mov	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x26, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x8, sp, #48
	add	x8, x8, #492
	movi.2d	v0, #0000000000000000
	str	q0, [x8]
	stp	q0, q0, [sp, #512]
	stp	q0, q0, [sp, #480]
	stp	q0, q0, [sp, #448]
	stp	q0, q0, [sp, #416]
	stp	q0, q0, [sp, #384]
	stp	q0, q0, [sp, #352]
	stp	q0, q0, [sp, #320]
	stp	q0, q0, [sp, #288]
	stp	q0, q0, [sp, #256]
	stp	q0, q0, [sp, #224]
	stp	q0, q0, [sp, #192]
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	str	q0, [sp, #48]
	mov	x0, x4
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w8, #1
	str	w8, [sp, #300]
	ldr	x8, [x21, #8]
	ldrsw	x22, [x8]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w9, [x21]
	sdiv	w27, w9, w22
	msub	w9, w27, w22, w9
	cbz	w9, LBB0_5
LBB0_2:
Lloh3:
	adrp	x28, _EINVAL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
Lloh5:
	adrp	x26, l_.str@PAGE
Lloh6:
	add	x26, x26, l_.str@PAGEOFF
LBB0_3:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x26
	bl	_av_log
	ldr	w0, [x28]
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.4:
	add	sp, sp, #576
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	stp	w26, w24, [sp, #16]             ; 8-byte Folded Spill
	stp	x23, x21, [sp, #24]             ; 16-byte Folded Spill
	cmp	w27, #1
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	b.lt	LBB0_16
; %bb.6:
	ldr	s0, [x8, #20]
	fcmp	s0, #0.0
	b.eq	LBB0_14
; %bb.7:
	mov	w23, #1
	add	x24, sp, #48
Lloh13:
	adrp	x28, _EINVAL@GOTPAGE
Lloh14:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
	mov	x21, x27
Lloh15:
	adrp	x26, l_.str.1@PAGE
Lloh16:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x8, #24]
	fdiv	s0, s1, s0
	mov	w8, #1115422720
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	mov	w1, #-63
	mov	w2, #63
	bl	_av_clip
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #63
	ldr	w9, [x24, x8, lsl #2]
	cbnz	w9, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w23, w25
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x20]
	str	w0, [x9, w23, sxtw #2]
	add	w23, w23, #1
	str	w23, [x24, x8, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	x21, x21, #1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x8, x22, x8
	add	x22, x22, x9
	ldr	s0, [x8, #20]
	fcmp	s0, #0.0
	b.ne	LBB0_8
; %bb.13:
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_14:
Lloh17:
	adrp	x28, _EINVAL@GOTPAGE
Lloh18:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
Lloh19:
	adrp	x26, l_.str.1@PAGE
Lloh20:
	add	x26, x26, l_.str.1@PAGEOFF
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_15:
Lloh21:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_av_log
LBB0_16:
	sub	w26, w19, #1
	ldp	w8, w9, [sp, #16]               ; 8-byte Folded Reload
	add	w8, w26, w8
	sdiv	w8, w8, w19
	add	w9, w26, w9
	sdiv	w9, w9, w19
	stp	w8, w9, [x20, #8]
	mul	w0, w9, w8
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x20, #16]
	cbz	x0, LBB0_27
; %bb.17:
	cmp	w27, #1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	b.ge	LBB0_21
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.19:
	mov	w0, #0
	add	sp, sp, #576
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	x27, #1
	mov	x27, x28
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	b.le	LBB0_18
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
	sub	x28, x27, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	mul	x9, x28, x9
	add	x21, x8, x9
	ldr	w8, [x21, #4]
	sdiv	w0, w8, w19
	ldr	w2, [x20, #8]
	mov	w1, #0
	bl	_av_clip
	mov	x22, x0
	ldr	w8, [x21, #8]
	add	w8, w26, w8
	ldr	w2, [x20, #8]
	sdiv	w0, w8, w19
	mov	w1, #0
	bl	_av_clip
	mov	x23, x0
	ldr	w8, [x21, #12]
	ldr	w2, [x20, #12]
	sdiv	w0, w8, w19
	mov	w1, #0
	bl	_av_clip
	mov	x24, x0
	ldr	w8, [x21, #16]
	add	w8, w26, w8
	ldr	w2, [x20, #12]
	sdiv	w0, w8, w19
	mov	w1, #0
	bl	_av_clip
	mov	x25, x0
	ldp	s1, s0, [x21, #20]
	fdiv	s0, s0, s1
	mov	w8, #1115422720
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	mov	w1, #-63
	mov	w2, #63
	bl	_av_clip
	add	x8, sp, #48
	add	x8, x8, w0, sxtw #2
	ldr	w8, [x8, #252]
	cmp	w8, #0
	ccmp	w22, w23, #0, ne
	b.ge	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	sub	w8, w8, #1
	sxtw	x9, w24
	mov	w10, w25
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	w22, w22, #1
	cmp	w22, w23
	b.eq	LBB0_20
LBB0_24:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
	cmp	w24, w25
	b.ge	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	x11, [x20, #16]
	mov	x12, x9
LBB0_26:                                ;   Parent Loop BB0_21 Depth=1
                                        ;     Parent Loop BB0_24 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x13, [x20, #12]
	sxtw	x14, w22
	madd	x13, x14, x13, x12
	str	w8, [x11, x13, lsl #2]
	add	x12, x12, #1
	cmp	w10, w12
	b.ne	LBB0_26
	b	LBB0_23
LBB0_27:
Lloh29:
	adrp	x28, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x28, [x28, _ENOMEM@GOTPAGEOFF]
Lloh31:
	adrp	x26, l_.str.3@PAGE
Lloh32:
	add	x26, x26, l_.str.3@PAGEOFF
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid AVRegionOfInterest.self_size.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"AVRegionOfInterest.qoffset.den must not be zero.\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"ROI only supports %d segments (and segment 0 is reserved for non-ROIs), skipping the left ones.\n"

l_.str.3:                               ; @.str.3
	.asciz	"roi_map alloc failed.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_DELTA_Q,4,2                ; @MAX_DELTA_Q
	.no_dead_strip	_set_roi_map
.subsections_via_symbols
