	.file	"extr_menu_setting.c_setting_uint_action_right_custom_viewport_height.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setting_uint_action_right_custom_viewport_height, @function
setting_uint_action_right_custom_viewport_height:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	video_viewport_get_system_av_info@PLT
	mov	r12, rax
	xor	eax, eax
	call	video_viewport_get_custom@PLT
	mov	rbx, rax
	xor	eax, eax
	call	config_get_ptr@PLT
	test	rax, rax
	je	.L7
	test	r12, r12
	je	.L7
	mov	rbp, rax
	mov	rdi, rsp
	call	video_driver_get_viewport_info@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L10
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	mov	DWORD PTR [rbx], eax
.L5:
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	mov	rdx, QWORD PTR ASPECT_RATIO_CUSTOM[rip]
	cvtsi2ss	xmm1, QWORD PTR 8[rbx]
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR aspectratio_lut[rip]
	divss	xmm1, xmm0
	movss	DWORD PTR [rax+rdx*4], xmm1
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	eax, eax
	call	retroarch_get_rotation@PLT
	test	al, 1
	mov	eax, DWORD PTR [rbx]
	je	.L4
	add	eax, DWORD PTR 8[r12]
	mov	DWORD PTR [rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setting_uint_action_right_custom_viewport_height, .-setting_uint_action_right_custom_viewport_height
	.comm	aspectratio_lut,8,8
	.comm	ASPECT_RATIO_CUSTOM,8,8
	.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_menu_setting.c_setting_uint_action_right_custom_viewport_height.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setting_uint_action_right_custom_viewport_height, %function
setting_uint_action_right_custom_viewport_height:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	video_viewport_get_system_av_info
	mov	r6, r0
	bl	video_viewport_get_custom
	mov	r4, r0
	bl	config_get_ptr
	cmp	r6, #0
	cmpne	r0, #0
	beq	.L7
	mov	r5, r0
	add	r0, sp, #4
	bl	video_driver_get_viewport_info
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L10
	ldr	r5, [r4]
	add	r5, r5, #1
	str	r5, [r4]
.L5:
	ldr	r3, .L12+4
	ldr	r2, .L12+8
	ldr	r0, [r4, #4]
	ldr	r6, [r3]
	ldr	r7, [r2]
	bl	__aeabi_i2f
	mov	r4, r0
	mov	r0, r5
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, #0
	str	r3, [r6, r7, lsl #2]	@ float
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	retroarch_get_rotation
	tst	r0, #1
	ldrne	r3, [r6, #4]
	ldreq	r3, [r6]
	ldr	r5, [r4]
	add	r5, r5, r3
	str	r5, [r4]
	b	.L5
.L7:
	mvn	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	aspectratio_lut
	.word	ASPECT_RATIO_CUSTOM
	.size	setting_uint_action_right_custom_viewport_height, .-setting_uint_action_right_custom_viewport_height
	.comm	aspectratio_lut,4,4
	.comm	ASPECT_RATIO_CUSTOM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
