	.file	"extr_gui_photon.c_gui_ph_handle_menu_resize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gui_ph_handle_menu_resize, @function
gui_ph_handle_menu_resize:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	cmp	QWORD PTR gui[rip+32], 0
	mov	rax, QWORD PTR [rax]
	je	.L2
	mov	QWORD PTR gui[rip+24], rax
	mov	QWORD PTR gui[rip+16], 0
.L2:
	mov	esi, DWORD PTR Pt_ARG_POS[rip]
	xor	ecx, ecx
	mov	rdx, rsp
	mov	QWORD PTR [rsp], rax
	mov	QWORD PTR 8[rsp], 0
	mov	rdi, QWORD PTR gui[rip]
	call	PtSetResource@PLT
	xor	eax, eax
	call	gui_ph_resize_container@PLT
	mov	eax, DWORD PTR Pt_CONTINUE[rip]
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gui_ph_handle_menu_resize, .-gui_ph_handle_menu_resize
	.comm	pg_margin_top,4,4
	.comm	pg_margin_right,4,4
	.comm	pg_margin_left,4,4
	.comm	pg_margin_bottom,4,4
	.comm	gui,40,32
	.comm	Pt_CONTINUE,4,4
	.comm	Pt_ARG_POS,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_gui_photon.c_gui_ph_handle_menu_resize.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gui_ph_handle_menu_resize, %function
gui_ph_handle_menu_resize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r1, .L10
	sub	sp, sp, #20
	ldr	r3, [r1, #16]
	ldr	r2, [r2]
	cmp	r3, #0
	ldr	r3, .L10+4
	ldr	ip, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	movne	r3, #0
	strne	r3, [r1, #8]
	mov	r3, #0
	ldr	r2, .L10+8
	strne	ip, [r1, #12]
	ldr	r0, [r1]
	ldr	r1, [r2]
	add	r2, sp, #4
	str	r3, [sp, #8]
	str	ip, [sp, #4]
	bl	PtSetResource
	bl	gui_ph_resize_container
	ldr	r3, .L10+12
	ldr	r0, [r3]
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #20
	@ sp needed
	ldr	pc, [sp], #4
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	gui
	.word	.LC0
	.word	Pt_ARG_POS
	.word	Pt_CONTINUE
	.size	gui_ph_handle_menu_resize, .-gui_ph_handle_menu_resize
	.comm	pg_margin_top,4,4
	.comm	pg_margin_right,4,4
	.comm	pg_margin_left,4,4
	.comm	pg_margin_bottom,4,4
	.comm	gui,20,4
	.comm	Pt_CONTINUE,4,4
	.comm	Pt_ARG_POS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
