	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_set_image_size          ## -- Begin function av_opt_set_image_size
	.p2align	4, 0x90
_av_opt_set_image_size:                 ## @av_opt_set_image_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_find2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rdx
	movq	_AV_OPT_TYPE_IMAGE_SIZE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.6:
	movl	%r14d, %edx
	orl	%r15d, %edx
	js	LBB0_7
## %bb.8:
	movslq	8(%rax), %rdx
	movl	%r15d, (%rcx,%rdx,4)
	movslq	8(%rax), %rax
	movl	%r14d, 16(%rcx,%rax,4)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_AVERROR_OPTION_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%rax), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ## @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_IMAGE_SIZE,8,3     ## @AV_OPT_TYPE_IMAGE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The value set by option '%s' is not an image size.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid negative size value %dx%d for size '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_set_image_size          ; -- Begin function av_opt_set_image_size
	.p2align	2
_av_opt_set_image_size:                 ; @av_opt_set_image_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	add	x5, sp, #24
	mov	x2, #0
	mov	w3, #0
	bl	_av_opt_find2
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x9, [sp, #24]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x10, _AV_OPT_TYPE_IMAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_OPT_TYPE_IMAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.3:
	orr	w8, w21, w19
	tbnz	w8, #31, LBB0_7
; %bb.4:
	mov	w8, #0
	ldrsw	x10, [x0, #8]
	str	w19, [x9, x10, lsl #2]
	ldrsw	x10, [x0, #8]
	add	x9, x9, x10, lsl #2
	str	w21, [x9, #16]
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x0, #12]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x0, #12]
	stp	x21, x8, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
LBB0_8:
	bl	_av_log
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x8, x0
LBB0_9:
	mov	x0, x8
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ; @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_IMAGE_SIZE,8,3     ; @AV_OPT_TYPE_IMAGE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The value set by option '%s' is not an image size.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid negative size value %dx%d for size '%s'\n"

.subsections_via_symbols
