	.file	"extr_obs-scene.c_render_item.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Item: %s"
	.text
	.p2align 4
	.type	render_item, @function
render_item:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	obs_source_get_name@PLT
	mov	edi, DWORD PTR GS_DEBUG_COLOR_ITEM[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	GS_DEBUG_MARKER_BEGIN_FORMAT@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L3
	mov	edi, DWORD PTR 0[rbp]
	call	obs_source_get_width@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, rax
	call	obs_source_get_height@PLT
	mov	r12, rax
	test	rbx, rbx
	je	.L4
	test	rax, rax
	je	.L4
	mov	rsi, rbx
	mov	rdi, rbp
	call	calc_cx@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	r13, rax
	call	calc_cy@PLT
	mov	r14, rax
	test	r13, r13
	je	.L3
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR 8[rbp]
	mov	rdx, rax
	mov	rsi, r13
	call	gs_texrender_begin@PLT
	test	rax, rax
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	gs_matrix_push@PLT
	lea	rdi, 16[rbp]
	call	gs_matrix_mul@PLT
	cmp	QWORD PTR 8[rbp], 0
	jne	.L21
	mov	edi, DWORD PTR 0[rbp]
	call	obs_source_video_render@PLT
.L7:
	xor	eax, eax
	call	gs_matrix_pop@PLT
.L4:
	xor	eax, eax
	call	GS_DEBUG_MARKER_END@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	call	render_item_texture@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	pxor	xmm3, xmm3
	cvtsi2ss	xmm1, rbx
	cvtsi2ss	xmm0, r13
	cvtsi2ss	xmm3, r12
	lea	r12, 20[rsp]
	mov	rdi, r12
	movaps	xmm6, xmm1
	movss	DWORD PTR 12[rsp], xmm1
	divss	xmm6, xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, r14
	movaps	xmm7, xmm3
	movss	DWORD PTR 4[rsp], xmm3
	divss	xmm7, xmm0
	movss	DWORD PTR 8[rsp], xmm6
	movss	DWORD PTR [rsp], xmm7
	call	vec4_zero@PLT
	mov	edi, DWORD PTR GS_CLEAR_COLOR[rip]
	xor	edx, edx
	mov	rsi, r12
	pxor	xmm0, xmm0
	call	gs_clear@PLT
	movss	xmm3, DWORD PTR 4[rsp]
	pxor	xmm2, xmm2
	movss	xmm5, DWORD PTR .LC2[rip]
	movss	xmm4, DWORD PTR .LC3[rip]
	movss	xmm1, DWORD PTR 12[rsp]
	movaps	xmm0, xmm2
	call	gs_ortho@PLT
	movss	xmm7, DWORD PTR [rsp]
	movss	xmm6, DWORD PTR 8[rsp]
	movss	xmm2, DWORD PTR .LC4[rip]
	movaps	xmm1, xmm7
	movaps	xmm0, xmm6
	call	gs_matrix_scale3f@PLT
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	movss	xmm2, DWORD PTR .LC5[rip]
	cvtsi2ss	xmm1, QWORD PTR 24[rbp]
	cvtsi2ss	xmm0, QWORD PTR 32[rbp]
	xorps	xmm1, xmm2
	xorps	xmm0, xmm2
	pxor	xmm2, xmm2
	call	gs_matrix_translate3f@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	obs_source_video_render@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	gs_texrender_end@PLT
	jmp	.L3
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	render_item, .-render_item
	.comm	GS_DEBUG_COLOR_ITEM,4,4
	.comm	GS_CLEAR_COLOR,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC2:
	.long	1120403456
	.align 4
.LC3:
	.long	3267887104
	.align 4
.LC4:
	.long	1065353216
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.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-scene.c_render_item.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Item: %s\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	render_item, %function
render_item:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	sub	sp, sp, #20
	ldr	r5, [r3]
	ldr	r3, .L20+4
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	obs_source_get_name
	ldr	r1, .L20+8
	mov	r2, r0
	mov	r0, r5
	bl	GS_DEBUG_MARKER_BEGIN_FORMAT
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r4]
	bl	obs_source_get_width
	mov	r7, r0
	ldr	r0, [r4]
	bl	obs_source_get_height
	clz	r3, r0
	cmp	r7, #0
	lsr	r3, r3, #5
	movne	r5, r3
	moveq	r5, #1
	cmp	r5, #0
	mov	r6, r0
	beq	.L17
.L4:
	bl	GS_DEBUG_MARKER_END
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r1, r7
	mov	r0, r4
	bl	calc_cx
	mov	r1, r6
	mov	r8, r0
	mov	r0, r4
	bl	calc_cy
	cmp	r8, #0
	cmpne	r0, #0
	mov	r9, r0
	beq	.L3
	mov	r2, r0
	mov	r1, r8
	ldr	r0, [r4, #4]
	bl	gs_texrender_begin
	cmp	r0, #0
	beq	.L3
	mov	r0, r7
	bl	__aeabi_i2f
	mov	r7, r0
	mov	r0, r8
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r7
	bl	__aeabi_fdiv
	mov	r8, r0
	mov	r0, r6
	bl	__aeabi_i2f
	mov	r6, r0
	mov	r0, r9
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fdiv
	mov	r9, r0
	add	r0, sp, #8
	bl	vec4_zero
	ldr	r2, .L20+12
	mov	r3, r5
	ldr	r0, [r2]
	add	r1, sp, #8
	mov	r2, #0
	bl	gs_clear
	mov	r2, #0
	ldr	ip, .L20+16
	ldr	r0, .L20+20
	mov	r3, r6
	str	ip, [sp, #4]	@ float
	mov	r1, r7
	str	r0, [sp]	@ float
	mov	r0, r2
	bl	gs_ortho
	mov	r1, r9
	mov	r2, #1065353216
	mov	r0, r8
	bl	gs_matrix_scale3f
	ldr	r0, [r4, #12]
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r0, [r4, #16]
	bl	__aeabi_i2f
	add	r5, r5, #-2147483648
	mov	r1, r5
	mov	r2, #0
	add	r0, r0, #-2147483648
	bl	gs_matrix_translate3f
	ldr	r0, [r4]
	bl	obs_source_video_render
	ldr	r0, [r4, #4]
	bl	gs_texrender_end
.L3:
	bl	gs_matrix_push
	add	r0, r4, #8
	bl	gs_matrix_mul
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r0, [r4]
	bl	obs_source_video_render
.L7:
	bl	gs_matrix_pop
	b	.L4
.L19:
	mov	r0, r4
	bl	render_item_texture
	b	.L7
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	GS_DEBUG_COLOR_ITEM
	.word	.LC1
	.word	.LC0
	.word	GS_CLEAR_COLOR
	.word	1120403456
	.word	-1027080192
	.size	render_item, .-render_item
	.comm	GS_DEBUG_COLOR_ITEM,4,4
	.comm	GS_CLEAR_COLOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
