	.file	"extr_info.c_test_EnumPorts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(%d) returned %d with %d and 0x%08x (expected '0' with ERROR_INVALID_LEVEL or '!=0' and 0x0)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Level %d not supported\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"(%d) returned %d with %d (expected '0' with ERROR_INSUFFICIENT_BUFFER)\n"
	.align 8
.LC3:
	.string	"(%d) returned %d with %d (expected '!=0')\n"
	.align 8
.LC4:
	.string	"(%d) returned %d (expected %d)\n"
	.align 8
.LC5:
	.string	"(%d) returned %d with %d (expected '0' with RPC_X_NULL_REF_POINTER or '!=0' with NO_ERROR)\n"
	.text
	.p2align 4
	.type	test_EnumPorts, @function
test_EnumPorts:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rbp, 36[rsp]
	lea	r14, 28[rsp]
	lea	r13, 32[rsp]
.L14:
	mov	edi, -559038737
	mov	DWORD PTR 28[rsp], -559038737
	mov	DWORD PTR 36[rsp], -559038737
	call	SetLastError@PLT
	xor	edi, edi
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, ebx
	mov	r9, rbp
	mov	r8, r14
	call	EnumPortsA@PLT
	mov	r12d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, r12d
	mov	esi, eax
	call	is_spooler_deactivated@PLT
	test	rax, rax
	jne	.L1
	test	ebx, ebx
	je	.L21
	cmp	ebx, 2
	jg	.L21
	xor	eax, eax
	test	r12d, r12d
	jne	.L8
	call	GetLastError@PLT
	cmp	eax, DWORD PTR ERROR_INVALID_LEVEL[rip]
	je	.L27
	xor	eax, eax
	call	GetLastError@PLT
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r8d, DWORD PTR 12[rsp]
	cmp	DWORD PTR ERROR_INSUFFICIENT_BUFFER[rip], eax
	sete	dil
.L18:
	mov	ecx, r12d
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR 28[rsp]
	lea	r12d, [rax+rax]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	edi, -559038737
	mov	DWORD PTR 32[rsp], -559038737
	call	SetLastError@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	r9, rbp
	xor	edi, edi
	mov	r8, r13
	mov	rdx, r12
	mov	esi, ebx
	call	EnumPortsA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	ecx, r15d
	mov	edi, r15d
	mov	edx, ebx
	mov	r8d, eax
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	ok@PLT
	mov	r8d, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR 32[rsp]
	xor	edi, edi
	mov	edx, ebx
	lea	rsi, .LC4[rip]
	cmp	r8d, ecx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, -559038737
	mov	DWORD PTR 32[rsp], -559038737
	mov	DWORD PTR 36[rsp], -559038737
	call	SetLastError@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	r9, rbp
	xor	edi, edi
	mov	r8, r13
	mov	rdx, r12
	mov	esi, ebx
	lea	ecx, 1[rax]
	call	EnumPortsA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	ecx, r15d
	mov	edi, r15d
	mov	edx, ebx
	mov	r8d, eax
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	ok@PLT
	mov	r8d, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR 32[rsp]
	xor	edi, edi
	mov	edx, ebx
	lea	rsi, .LC4[rip]
	cmp	r8d, ecx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, -559038737
	mov	DWORD PTR 32[rsp], -559038737
	call	SetLastError@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	r8, r13
	xor	edi, edi
	mov	r9, rbp
	mov	rdx, r12
	mov	esi, ebx
	lea	ecx, -1[rax]
	call	EnumPortsA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r8d, eax
	test	r15d, r15d
	je	.L28
.L11:
	mov	ecx, r15d
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ok@PLT
	mov	r8d, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR 32[rsp]
	xor	edi, edi
	mov	edx, ebx
	lea	rsi, .LC4[rip]
	cmp	r8d, ecx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, -559038737
	call	SetLastError@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	r9, rbp
	xor	r8d, r8d
	mov	rdx, r12
	mov	esi, ebx
	xor	edi, edi
	call	EnumPortsA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	test	r15d, r15d
	je	.L29
	call	GetLastError@PLT
	xor	edi, edi
	mov	r8d, DWORD PTR 12[rsp]
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	sete	dil
.L17:
	mov	ecx, r15d
	mov	edx, ebx
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edi, -559038737
	call	SetLastError@PLT
	mov	ecx, DWORD PTR 28[rsp]
	xor	r9d, r9d
	mov	r8, r13
	mov	rdx, r12
	mov	esi, ebx
	xor	edi, edi
	call	EnumPortsA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	test	r15d, r15d
	je	.L30
	call	GetLastError@PLT
	xor	edi, edi
	mov	r8d, DWORD PTR 12[rsp]
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	sete	dil
.L16:
	mov	edx, ebx
	lea	rsi, .LC5[rip]
	mov	ecx, r15d
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
.L6:
	add	ebx, 1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	call	GetLastError@PLT
	xor	edi, edi
	mov	r8d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	xor	eax, eax
	mov	r15d, DWORD PTR 36[rsp]
	call	GetLastError@PLT
	mov	r8d, eax
	test	r12d, r12d
	je	.L31
	mov	eax, DWORD PTR 36[rsp]
	xor	edi, edi
	test	eax, eax
	sete	dil
.L15:
	xor	eax, eax
	mov	r9d, r15d
	mov	ecx, r12d
	mov	edx, ebx
	lea	rsi, .LC0[rip]
	call	ok@PLT
	cmp	ebx, 3
	jne	.L6
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	call	GetLastError@PLT
	xor	edi, edi
	cmp	DWORD PTR RPC_X_NULL_REF_POINTER[rip], eax
	mov	r8d, DWORD PTR 12[rsp]
	sete	dil
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	call	GetLastError@PLT
	xor	edi, edi
	cmp	DWORD PTR RPC_X_NULL_REF_POINTER[rip], eax
	mov	r8d, DWORD PTR 12[rsp]
	sete	dil
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L28:
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	DWORD PTR ERROR_INSUFFICIENT_BUFFER[rip], eax
	mov	r8d, DWORD PTR 12[rsp]
	sete	dil
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	DWORD PTR ERROR_INVALID_LEVEL[rip], eax
	mov	r8d, DWORD PTR 12[rsp]
	sete	dil
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	call	skip@PLT
	jmp	.L6
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_EnumPorts, .-test_EnumPorts
	.comm	RPC_X_NULL_REF_POINTER,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INVALID_LEVEL,4,4
	.comm	ERROR_INSUFFICIENT_BUFFER,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_info.c_test_EnumPorts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%d) returned %d with %d and 0x%08x (expected '0' w"
	.ascii	"ith ERROR_INVALID_LEVEL or '!=0' and 0x0)\012\000"
	.align	2
.LC1:
	.ascii	"Level %d not supported\012\000"
	.align	2
.LC2:
	.ascii	"(%d) returned %d with %d (expected '0' with ERROR_I"
	.ascii	"NSUFFICIENT_BUFFER)\012\000"
	.align	2
.LC3:
	.ascii	"(%d) returned %d with %d (expected '!=0')\012\000"
	.align	2
.LC4:
	.ascii	"(%d) returned %d (expected %d)\012\000"
	.align	2
.LC5:
	.ascii	"(%d) returned %d with %d (expected '0' with RPC_X_N"
	.ascii	"ULL_REF_POINTER or '!=0' with NO_ERROR)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_EnumPorts, %function
test_EnumPorts:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L32
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, #0
	ldr	r7, .L32+4
	ldr	fp, .L32+8
	ldr	r10, .L32+12
	add	r8, sp, #24
.L13:
	ldr	r0, .L32+4
	str	r7, [sp, #16]
	str	r7, [sp, #24]
	bl	SetLastError
	mov	r3, #0
	add	r2, sp, #16
	mov	r0, r3
	mov	r1, r4
	str	r2, [sp]
	str	r8, [sp, #4]
	mov	r2, r3
	bl	EnumPortsA
	mov	r5, r0
	bl	GetLastError
	mov	r1, r0
	mov	r0, r5
	bl	is_spooler_deactivated
	subs	r6, r0, #0
	bne	.L1
	cmp	r4, #2
	movle	r3, #0
	movgt	r3, #1
	cmp	r4, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L24
	cmp	r5, #0
	movne	r9, r6
	beq	.L25
.L7:
	bl	GetLastError
	mov	r3, r5
	mov	r2, r4
	mov	r1, fp
	str	r0, [sp]
	mov	r0, r9
	bl	ok
	bl	GetProcessHeap
	ldr	r2, [sp, #16]
	mov	r1, #0
	lsl	r2, r2, #1
	bl	HeapAlloc
	subs	r5, r0, #0
	beq	.L5
	add	r9, sp, #20
	ldr	r0, .L32+4
	str	r7, [sp, #20]
	bl	SetLastError
	mov	r2, r5
	mov	r1, r4
	ldr	r3, [sp, #16]
	mov	r0, #0
	str	r8, [sp, #4]
	str	r9, [sp]
	bl	EnumPortsA
	str	r0, [sp, #12]
	bl	GetLastError
	ldr	r3, [sp, #12]
	mov	r2, r4
	ldr	r1, .L32+16
	str	r0, [sp]
	mov	r0, r3
	bl	ok
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	mov	r1, r10
	sub	r0, r3, r2
	clz	r0, r0
	str	r2, [sp]
	lsr	r0, r0, #5
	mov	r2, r4
	bl	ok
	ldr	r0, .L32+4
	str	r7, [sp, #20]
	str	r7, [sp, #24]
	bl	SetLastError
	ldr	r3, [sp, #16]
	mov	r2, r5
	mov	r1, r4
	add	r3, r3, #1
	mov	r0, #0
	str	r9, [sp]
	str	r8, [sp, #4]
	bl	EnumPortsA
	str	r0, [sp, #12]
	bl	GetLastError
	ldr	r3, [sp, #12]
	mov	r2, r4
	ldr	r1, .L32+16
	str	r0, [sp]
	mov	r0, r3
	bl	ok
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	mov	r1, r10
	sub	r0, r3, r2
	clz	r0, r0
	str	r2, [sp]
	lsr	r0, r0, #5
	mov	r2, r4
	bl	ok
	ldr	r0, .L32+4
	str	r7, [sp, #20]
	bl	SetLastError
	ldr	r3, [sp, #16]
	mov	r2, r5
	sub	r3, r3, #1
	mov	r1, r4
	mov	r0, #0
	str	r9, [sp]
	str	r8, [sp, #4]
	bl	EnumPortsA
	subs	r3, r0, #0
	beq	.L26
.L10:
	str	r3, [sp, #12]
	bl	GetLastError
	mov	r2, r4
	mov	r1, fp
	ldr	r3, [sp, #12]
	str	r0, [sp]
	mov	r0, r6
	bl	ok
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	mov	r1, r10
	sub	r0, r3, r2
	clz	r0, r0
	str	r2, [sp]
	lsr	r0, r0, #5
	mov	r2, r4
	bl	ok
	mov	r0, r7
	bl	SetLastError
	mov	r0, #0
	mov	r2, r5
	mov	r1, r4
	stm	sp, {r0, r8}
	ldr	r3, [sp, #16]
	bl	EnumPortsA
	subs	r6, r0, #0
	beq	.L27
	bl	GetLastError
	ldr	r3, .L32+20
	ldr	r2, [r3]
	sub	r2, r2, r0
	clz	r2, r2
	lsr	r2, r2, #5
.L16:
	str	r2, [sp, #12]
	bl	GetLastError
	ldr	r2, [sp, #12]
	mov	r3, r6
	ldr	r1, .L32+24
	str	r0, [sp]
	mov	r0, r2
	mov	r2, r4
	bl	ok
	mov	r0, r7
	bl	SetLastError
	mov	r0, #0
	mov	r2, r5
	mov	r1, r4
	ldr	r3, [sp, #16]
	str	r9, [sp]
	str	r0, [sp, #4]
	bl	EnumPortsA
	subs	r6, r0, #0
	beq	.L28
	bl	GetLastError
	ldr	r3, .L32+20
	ldr	r9, [r3]
	sub	r9, r9, r0
	clz	r9, r9
	lsr	r9, r9, #5
.L15:
	bl	GetLastError
	mov	r2, r4
	ldr	r1, .L32+24
	mov	r3, r6
	str	r0, [sp]
	mov	r0, r9
	bl	ok
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
.L5:
	add	r4, r4, #1
	b	.L13
.L24:
	cmp	r5, #0
	beq	.L29
	ldr	r6, [sp, #24]
	clz	r6, r6
	lsr	r6, r6, #5
.L14:
	bl	GetLastError
	ldr	r2, [sp, #24]
	str	r0, [sp]
	str	r2, [sp, #4]
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L32+28
	bl	ok
	cmp	r4, #3
	bne	.L5
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	bl	GetLastError
	ldr	r3, .L32+32
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L31
	bl	GetLastError
	ldr	r3, .L32+36
	ldr	r9, [r3]
	sub	r9, r9, r0
	clz	r9, r9
	lsr	r9, r9, #5
	b	.L7
.L26:
	str	r3, [sp, #12]
	bl	GetLastError
	ldr	r2, .L32+36
	ldr	r3, [sp, #12]
	ldr	r6, [r2]
	sub	r6, r6, r0
	clz	r6, r6
	lsr	r6, r6, #5
	b	.L10
.L28:
	bl	GetLastError
	ldr	r3, .L32+40
	ldr	r9, [r3]
	sub	r9, r9, r0
	clz	r9, r9
	lsr	r9, r9, #5
	b	.L15
.L27:
	bl	GetLastError
	ldr	r3, .L32+40
	ldr	r2, [r3]
	sub	r2, r2, r0
	clz	r2, r2
	lsr	r2, r2, #5
	b	.L16
.L29:
	bl	GetLastError
	ldr	r3, .L32+32
	ldr	r6, [r3]
	sub	r6, r6, r0
	clz	r6, r6
	lsr	r6, r6, #5
	b	.L14
.L31:
	mov	r1, r4
	ldr	r0, .L32+44
	bl	skip
	b	.L5
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC6
	.word	-559038737
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.word	ERROR_SUCCESS
	.word	.LC5
	.word	.LC0
	.word	ERROR_INVALID_LEVEL
	.word	ERROR_INSUFFICIENT_BUFFER
	.word	RPC_X_NULL_REF_POINTER
	.word	.LC1
	.size	test_EnumPorts, .-test_EnumPorts
	.comm	RPC_X_NULL_REF_POINTER,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INVALID_LEVEL,4,4
	.comm	ERROR_INSUFFICIENT_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
