	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp8_encode_set_roi
_vp8_encode_set_roi:                    ## @vp8_encode_set_roi
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	$4, (%rsp)
	leaq	-32(%rbp), %r8
	movq	%rcx, %rsi
	movl	%eax, %ecx
	movl	$16, %r9d
	callq	_set_roi_map
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_log_encoder_error
	jmp	LBB0_6
LBB0_2:
	movq	_VP8E_SET_ROI_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_vpx_codec_control
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_log_encoder_error
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-32(%rbp), %rdi
	callq	_av_freep
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set_roi_map.\n"

	.comm	_VP8E_SET_ROI_MAP,4,2           ## @VP8E_SET_ROI_MAP
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set VP8E_SET_ROI_MAP codec control.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_vp8_encode_set_roi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp8_encode_set_roi
_vp8_encode_set_roi:                    ; @vp8_encode_set_roi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x2
	mov	x2, x1
	mov	x19, x0
	ldr	x21, [x0]
	add	x4, sp, #8
	mov	x1, x3
	mov	x3, x8
	mov	w5, #16
	mov	w6, #4
	bl	_set_roi_map
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log_encoder_error
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _VP8E_SET_ROI_MAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VP8E_SET_ROI_MAP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_vpx_codec_control
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_log_encoder_error
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	add	x0, sp, #8
	bl	_av_freep
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set_roi_map.\n"

	.comm	_VP8E_SET_ROI_MAP,4,2           ; @VP8E_SET_ROI_MAP
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set VP8E_SET_ROI_MAP codec control.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_vp8_encode_set_roi
.subsections_via_symbols
