	.file	"extr_unit_test.c_test_mqtt_subscribe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/stuff"
	.text
	.p2align 4
	.type	test_mqtt_subscribe, @function
test_mqtt_subscribe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	create_test_connection@PLT
	mov	rbp, rax
	xor	eax, eax
	call	mg_time@PLT
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], r12
	movsd	QWORD PTR 8[rsp], xmm0
	mov	DWORD PTR 24[rsp], 1
	call	mg_set_protocol_mqtt@PLT
	mov	edi, 2
	call	msleep@PLT
	mov	ecx, 42
	mov	edx, 1
	mov	rdi, rbp
	lea	rsi, 16[rsp]
	call	mg_mqtt_subscribe@PLT
	mov	rbx, QWORD PTR 8[rbp]
	movsx	edi, BYTE PTR 16[rbp]
	mov	esi, 13
	call	ASSERT_EQ@PLT
	movzx	edi, BYTE PTR [rbx]
	mov	esi, DWORD PTR MG_MQTT_CMD_SUBSCRIBE[rip]
	and	edi, -16
	sal	esi, 4
	movsx	edi, dil
	call	ASSERT_EQ@PLT
	movsx	esi, BYTE PTR 16[rbp]
	movsx	edi, BYTE PTR 1[rbx]
	sub	esi, 2
	call	ASSERT_EQ@PLT
	movsx	edi, BYTE PTR 2[rbx]
	xor	esi, esi
	call	ASSERT_EQ@PLT
	movsx	edi, BYTE PTR 3[rbx]
	mov	esi, 42
	call	ASSERT_EQ@PLT
	movsx	edi, BYTE PTR 4[rbx]
	xor	esi, esi
	call	ASSERT_EQ@PLT
	movsx	edi, BYTE PTR 5[rbx]
	mov	esi, 6
	call	ASSERT_EQ@PLT
	lea	rdi, 6[rbx]
	mov	rsi, r12
	call	ASSERT_STREQ_NZ@PLT
	movsx	edi, BYTE PTR 12[rbx]
	mov	esi, 1
	call	ASSERT_EQ@PLT
	mov	rax, QWORD PTR 0[rbp]
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	ASSERT_GT@PLT
	mov	rdi, rbp
	call	destroy_test_connection@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_mqtt_subscribe, .-test_mqtt_subscribe
	.comm	MG_MQTT_CMD_SUBSCRIBE,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_unit_test.c_test_mqtt_subscribe.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/stuff\000"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_mqtt_subscribe, %function
test_mqtt_subscribe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L6
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	create_test_connection
	mov	r4, r0
	bl	mg_time
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L6+4
	add	r5, sp, #4
	ldm	r3, {r0, r1}
	stm	r5, {r0, r1}
	mov	r0, r4
	bl	mg_set_protocol_mqtt
	mov	r0, #2
	bl	msleep
	mov	r2, #1
	mov	r1, r5
	mov	r3, #42
	mov	r0, r4
	bl	mg_mqtt_subscribe
	mov	r1, #13
	ldrb	r0, [r4, #8]	@ zero_extendqisi2
	ldr	r5, [r4, #4]
	bl	ASSERT_EQ
	ldr	r3, .L6+8
	ldrb	r0, [r5]	@ zero_extendqisi2
	ldr	r1, [r3]
	and	r0, r0, #240
	lsl	r1, r1, #4
	bl	ASSERT_EQ
	ldrb	r1, [r4, #8]	@ zero_extendqisi2
	ldrb	r0, [r5, #1]	@ zero_extendqisi2
	sub	r1, r1, #2
	bl	ASSERT_EQ
	mov	r1, #0
	ldrb	r0, [r5, #2]	@ zero_extendqisi2
	bl	ASSERT_EQ
	mov	r1, #42
	ldrb	r0, [r5, #3]	@ zero_extendqisi2
	bl	ASSERT_EQ
	mov	r1, #0
	ldrb	r0, [r5, #4]	@ zero_extendqisi2
	bl	ASSERT_EQ
	mov	r1, #6
	ldrb	r0, [r5, #5]	@ zero_extendqisi2
	bl	ASSERT_EQ
	ldr	r1, .L6+12
	add	r0, r5, #6
	bl	ASSERT_STREQ_NZ
	mov	r1, #1
	ldrb	r0, [r5, #12]	@ zero_extendqisi2
	bl	ASSERT_EQ
	ldr	r1, [r4]
	mov	r2, r6
	mov	r3, r7
	ldr	r0, [r1]
	bl	ASSERT_GT
	mov	r0, r4
	bl	destroy_test_connection
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LANCHOR0
	.word	MG_MQTT_CMD_SUBSCRIBE
	.word	.LC0
	.size	test_mqtt_subscribe, .-test_mqtt_subscribe
	.comm	MG_MQTT_CMD_SUBSCRIBE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC2:
	.word	.LC0
	.word	1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
