	.file	"extr_obs-output.c_get_video_conversion.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_video_conversion, @function
get_video_conversion:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	QWORD PTR 56[rdi], 0
	mov	rbx, rdi
	je	.L2
	cmp	QWORD PTR 8[rdi], 0
	je	.L11
	cmp	QWORD PTR [rbx], 0
	je	.L12
.L9:
	mov	rax, rbx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	has_scaling@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	edi, DWORD PTR 48[rbx]
	call	video_output_get_info@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR VIDEO_CS_DEFAULT[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR VIDEO_RANGE_DEFAULT[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR 40[rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR [rbx], rax
	mov	rax, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	call	obs_output_get_width@PLT
	cmp	QWORD PTR [rbx], 0
	mov	QWORD PTR 8[rbx], rax
	jne	.L9
.L12:
	mov	rdi, rbx
	call	obs_output_get_height@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, rbx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	get_video_conversion, .-get_video_conversion
	.comm	VIDEO_RANGE_DEFAULT,4,4
	.comm	VIDEO_CS_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_obs-output.c_get_video_conversion.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_video_conversion, %function
get_video_conversion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #32]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L11
.L8:
	mov	r0, r4
	pop	{r4, pc}
.L2:
	bl	has_scaling
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4, #28]
	bl	video_output_get_info
	ldr	r2, .L12
	ldr	r3, .L12+4
	ldr	ip, [r0]
	ldr	r1, [r3]
	ldr	r0, [r2]
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	str	r0, [r4, #12]
	str	ip, [r4, #16]
	mov	r0, r4
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	pop	{r4, pc}
.L10:
	bl	obs_output_get_width
	ldr	r3, [r4]
	str	r0, [r4, #4]
	cmp	r3, #0
	bne	.L8
.L11:
	mov	r0, r4
	bl	obs_output_get_height
	str	r0, [r4]
	mov	r0, r4
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	VIDEO_CS_DEFAULT
	.word	VIDEO_RANGE_DEFAULT
	.size	get_video_conversion, .-get_video_conversion
	.comm	VIDEO_RANGE_DEFAULT,4,4
	.comm	VIDEO_CS_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
