	.file	"extr_resize.c_resize_set_floating.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot resize a hidden scratchpad container by ppt"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"invalid width unit"
.LC2:
	.string	"invalid height unit"
	.text
	.p2align 4
	.type	resize_set_floating, @function
resize_set_floating:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	lea	rcx, 20[rsp]
	lea	rdx, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rsi, 12[rsp]
	lea	rdi, 8[rsp]
	call	floating_calculate_constraints@PLT
	mov	r12d, DWORD PTR 0[r13]
	test	r12d, r12d
	je	.L2
	mov	eax, DWORD PTR 4[r13]
	cmp	eax, 130
	je	.L3
	jg	.L4
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L33
	mov	rdi, rbp
	call	container_is_scratchpad_hidden@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 4[r13], 128
	movsx	r12, eax
	sar	eax, 31
	imul	r12, r12, 1374389535
	sar	r12, 37
	sub	r12d, eax
	mov	DWORD PTR 0[r13], r12d
.L5:
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, r12d
	call	fmin@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	esi, eax
	call	fmax@PLT
	mov	r12d, eax
	sub	r12d, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[r13], eax
	mov	edx, r12d
	mov	DWORD PTR 0[rbp], eax
	shr	edx, 31
	add	edx, r12d
	sar	edx
	sub	DWORD PTR 4[rbp], edx
.L2:
	mov	edi, DWORD PTR [rbx]
	test	edi, edi
	je	.L16
.L38:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 130
	je	.L10
	jg	.L11
	cmp	eax, 128
	je	.L12
	cmp	eax, 129
	jne	.L35
	mov	rdi, rbp
	call	container_is_scratchpad_hidden@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], 128
	movsx	rdi, eax
	sar	eax, 31
	imul	rdi, rdi, 1374389535
	sar	rdi, 37
	sub	edi, eax
	mov	DWORD PTR [rbx], edi
.L12:
	mov	esi, DWORD PTR 20[rsp]
	call	fmin@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	esi, eax
	call	fmax@PLT
	mov	edi, eax
	sub	edi, DWORD PTR 8[rbp]
	mov	DWORD PTR [rbx], eax
	mov	edx, edi
	mov	DWORD PTR 8[rbp], eax
	shr	edx, 31
	add	edx, edi
	sar	edx
	sub	DWORD PTR 12[rbp], edx
	mov	ecx, edx
	neg	ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	eax, 131
	je	.L5
.L33:
	xor	r12d, r12d
.L40:
	mov	edi, DWORD PTR [rbx]
	test	edi, edi
	jne	.L38
.L16:
	xor	ecx, ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	eax, 131
	je	.L12
.L35:
	xor	ecx, ecx
	xor	edi, edi
.L9:
	mov	eax, r12d
	add	DWORD PTR 28[rbp], edi
	mov	rdi, rbp
	shr	eax, 31
	add	DWORD PTR 20[rbp], ecx
	add	eax, r12d
	add	DWORD PTR 24[rbp], r12d
	sar	eax
	sub	DWORD PTR 16[rbp], eax
	call	arrange_container@PLT
	mov	edi, DWORD PTR CMD_SUCCESS[rip]
	xor	esi, esi
	call	cmd_results_new@PLT
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L39
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	xor	edi, edi
	call	sway_assert@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rsi, .LC1[rip]
	xor	edi, edi
	xor	r12d, r12d
	call	sway_assert@PLT
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR CMD_FAILURE[rip]
	lea	rsi, .LC0[rip]
	call	cmd_results_new@PLT
	jmp	.L1
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	resize_set_floating, .-resize_set_floating
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_FAILURE,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_resize.c_resize_set_floating.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot resize a hidden scratchpad container by ppt\000"
	.align	2
.LC1:
	.ascii	"invalid width unit\000"
	.align	2
.LC2:
	.ascii	"invalid height unit\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	resize_set_floating, %function
resize_set_floating:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r1
	sub	sp, sp, #28
	ldr	ip, .L27
	mov	r4, r0
	mov	r6, r2
	add	r3, sp, #16
	add	r2, sp, #12
	add	r1, sp, #8
	add	r0, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	floating_calculate_constraints
	ldr	r5, [r7]
	cmp	r5, #0
	beq	.L2
	ldr	r3, [r7, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L4:
	.word	.L3
	.word	.L6
	.word	.L5
	.word	.L3
.L16:
	mov	r5, #0
.L2:
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L17
.L26:
	ldr	r3, [r6, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L18
.L11:
	.word	.L10
	.word	.L13
	.word	.L12
	.word	.L10
.L13:
	mov	r0, r4
	bl	container_is_scratchpad_hidden
	cmp	r0, #0
	bne	.L23
	mov	r2, #128
	ldr	r3, [r4, #32]
	ldr	r0, [r6]
	ldr	r3, [r3, #4]
	str	r2, [r6, #4]
	mul	r3, r0, r3
	ldr	r2, .L27+4
	asr	r0, r3, #31
	smull	r1, r3, r2, r3
	rsb	r0, r0, r3, asr #5
	str	r0, [r6]
.L10:
	ldr	r1, [sp, #16]
	ldr	r7, [sp, #12]
	bl	fmin
	mov	r1, r0
	mov	r0, r7
	bl	fmax
	mov	r2, r0
	ldr	r0, [r4, #8]
	ldr	ip, [r4, #12]
	sub	r0, r2, r0
	add	r1, r0, r0, lsr #31
	asr	r1, r1, #1
	sub	ip, ip, r1
	str	r2, [r6]
	rsb	r3, r1, #0
	str	r2, [r4, #8]
	str	ip, [r4, #12]
.L9:
	ldr	ip, [r4, #16]
	ldr	r1, [r4, #20]
	add	r2, r5, r5, lsr #31
	add	r1, r1, r3
	sub	ip, ip, r2, asr #1
	ldr	r3, [r4, #28]
	ldr	r2, [r4, #24]
	add	r0, r3, r0
	add	r5, r2, r5
	str	r1, [r4, #20]
	str	r0, [r4, #28]
	str	ip, [r4, #16]
	mov	r0, r4
	str	r5, [r4, #24]
	bl	arrange_container
	ldr	r3, .L27+8
	mov	r1, #0
	ldr	r0, [r3]
	bl	cmd_results_new
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r4
	bl	container_is_scratchpad_hidden
	cmp	r0, #0
	bne	.L23
	mov	r2, #128
	ldr	r3, [r4, #32]
	ldr	r5, [r7]
	ldr	r3, [r3]
	str	r2, [r7, #4]
	mul	r3, r5, r3
	ldr	r2, .L27+4
	asr	r5, r3, #31
	smull	r1, r3, r2, r3
	rsb	r5, r5, r3, asr #5
	str	r5, [r7]
.L3:
	mov	r0, r5
	ldr	r1, [sp, #8]
	ldr	r5, [sp, #4]
	bl	fmin
	mov	r1, r0
	mov	r0, r5
	bl	fmax
	ldr	r5, [r4]
	ldr	r3, [r4, #4]
	sub	r5, r0, r5
	add	r2, r5, r5, lsr #31
	str	r0, [r7]
	sub	r3, r3, r2, asr #1
	stm	r4, {r0, r3}
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L26
.L17:
	mov	r3, r0
	b	.L9
.L12:
	mov	r0, #0
	ldr	r1, .L27+12
	bl	sway_assert
	mov	r3, #0
	mov	r0, r3
	b	.L9
.L5:
	mov	r0, #0
	ldr	r1, .L27+16
	bl	sway_assert
	mov	r5, #0
	b	.L2
.L23:
	ldr	r3, .L27+20
	ldr	r1, .L27+24
	ldr	r0, [r3]
	bl	cmd_results_new
	b	.L1
.L25:
	bl	__stack_chk_fail
.L18:
	mov	r3, #0
	mov	r0, r3
	b	.L9
.L28:
	.align	2
.L27:
	.word	.LC3
	.word	1374389535
	.word	CMD_SUCCESS
	.word	.LC2
	.word	.LC1
	.word	CMD_FAILURE
	.word	.LC0
	.size	resize_set_floating, .-resize_set_floating
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
