	.file	"extr_bus-gvariant.c_bus_gvariant_get_size.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown signature type"
	.text
	.p2align 4
	.globl	bus_gvariant_get_size
	.type	bus_gvariant_get_size, @function
bus_gvariant_get_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	BYTE PTR [rdi], 0
	je	.L11
	mov	r15, rdi
	xor	r12d, r12d
	lea	rbx, -64[rbp]
	lea	r13, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, rbx
	mov	rdi, r15
	call	signature_element_length@PLT
	mov	esi, eax
	test	eax, eax
	js	.L1
	mov	r8, QWORD PTR -64[rbp]
	mov	rcx, rsp
	mov	r14, rsp
	lea	rax, 16[r8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L5
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L5:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L6
	or	QWORD PTR -8[rsp+rdx], 0
.L6:
	mov	rsi, r15
	mov	rdx, r8
	mov	rdi, rsp
	call	memcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rsp
	mov	BYTE PTR [rsp+rax], 0
	call	bus_gvariant_get_alignment@PLT
	mov	esi, eax
	test	eax, eax
	js	.L19
	mov	edi, r12d
	call	ALIGN_TO@PLT
	mov	rdi, r13
	mov	rsp, r14
	mov	r12d, eax
	call	assert_not_reached@PLT
	add	r15, QWORD PTR -64[rbp]
	cmp	BYTE PTR [r15], 0
	jne	.L8
.L2:
	mov	rdi, QWORD PTR -72[rbp]
	call	bus_gvariant_get_alignment@PLT
	mov	esi, eax
	test	eax, eax
	js	.L1
	mov	edi, r12d
	call	ALIGN_TO@PLT
	mov	esi, eax
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -40[rbp]
	mov	eax, esi
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rsp, r14
	jmp	.L1
.L11:
	xor	r12d, r12d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bus_gvariant_get_size, .-bus_gvariant_get_size
	.comm	EINVAL,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_bus-gvariant.c_bus_gvariant_get_size.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown signature type\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bus_gvariant_get_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	bus_gvariant_get_size, %function
bus_gvariant_get_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldrb	r4, [r0]	@ zero_extendqisi2
	ldr	r3, .L27
	cmp	r4, #0
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L2
	mov	r4, #0
	mov	r5, r0
	mov	r7, r4
	ldr	r8, .L27+4
.L16:
	sub	r1, fp, #44
	mov	r0, r5
	bl	signature_element_length
	subs	r1, r0, #0
	blt	.L1
	ldr	r10, [fp, #-44]
	mov	r9, sp
	add	r3, r10, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, r5
	mov	r2, r10
	mov	r0, sp
	bl	memcpy
	mov	r0, sp
	strb	r7, [sp, r10]
	bl	bus_gvariant_get_alignment
	subs	r1, r0, #0
	blt	.L24
	mov	r0, r4
	bl	ALIGN_TO
	ldrb	r3, [r5]	@ zero_extendqisi2
	mov	r4, r0
	sub	r3, r3, #128
	mov	sp, r9
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L6
	.word	.L12
	.word	.L10
	.word	.L12
	.word	.L11
	.word	.L9
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L10
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L6
.L10:
	ldr	r2, [fp, #-44]
	add	r4, r0, #8
.L13:
	ldrb	r3, [r5, r2]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
.L2:
	mov	r0, r6
	bl	bus_gvariant_get_alignment
	subs	r1, r0, #0
	blt	.L1
	mov	r0, r4
	bl	ALIGN_TO
	mov	r1, r0
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r1
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, .L27+8
	ldr	r0, [r3]
	rsb	r1, r0, #0
	b	.L1
.L12:
	ldr	r2, [fp, #-44]
	add	r4, r0, #4
	b	.L13
.L9:
	ldr	r2, [fp, #-44]
	cmp	r2, #2
	moveq	r1, #1
	beq	.L14
	add	r3, r2, #6
	bic	r3, r3, #7
	sub	r10, r2, #2
	mov	r9, sp
	sub	sp, sp, r3
	add	r1, r5, #1
	mov	r2, r10
	mov	r0, sp
	bl	memcpy
	mov	r0, sp
	strb	r7, [sp, r10]
	bl	bus_gvariant_get_size
	subs	r1, r0, #0
	blt	.L26
	mov	sp, r9
	ldr	r2, [fp, #-44]
.L14:
	add	r4, r4, r1
	b	.L13
.L11:
	ldr	r2, [fp, #-44]
	add	r4, r0, #2
	b	.L13
.L8:
	ldr	r2, [fp, #-44]
	add	r4, r0, #1
	b	.L13
.L24:
	mov	sp, r9
	b	.L1
.L26:
	mov	sp, r9
	b	.L1
.L25:
	bl	__stack_chk_fail
.L5:
	mov	r0, r8
	bl	assert_not_reached
	ldr	r2, [fp, #-44]
	b	.L13
.L28:
	.align	2
.L27:
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	bus_gvariant_get_size, .-bus_gvariant_get_size
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
