	.file	"extr_shlexec.c_test_commandline2argv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"expected NULL with ERROR_INVALID_PARAMETER got %p with %u\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"expected 1 args, got %d\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"wrong path to the current executable: %s instead of %s\n"
	.align 8
.LC3:
	.string	"expected NULL-terminated list of commandline arguments\n"
	.text
	.p2align 4
	.type	test_commandline2argv, @function
test_commandline2argv:
.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, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	r12, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L30
.L4:
	mov	rbx, QWORD PTR cmdline_tests[rip]
	mov	r14, rsp
	cmp	QWORD PTR [rbx], 0
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 8
	cmp	QWORD PTR [rbx], 0
	je	.L5
.L8:
	mov	rdi, rbx
	call	test_one_cmdline@PLT
	test	eax, eax
	jne	.L6
.L16:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r12
	jne	.L31
	lea	rsp, -40[rbp]
	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
.L5:
	.cfi_restore_state
	mov	edi, -559038737
	call	SetLastError@PLT
	lea	rdi, exeW.1954[rip]
	xor	esi, esi
	call	CommandLineToArgvW@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rcx, rax
	test	r13, r13
	je	.L32
.L9:
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edi, -559038737
	call	SetLastError@PLT
	xor	edi, edi
	xor	esi, esi
	call	CommandLineToArgvW@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rcx, rax
	test	r13, r13
	je	.L33
.L10:
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ok@PLT
	mov	BYTE PTR [r14], 0
	mov	rdi, r14
	lea	rsi, -60[rbp]
	call	CommandLineToArgvW@PLT
	mov	r15d, DWORD PTR -60[rbp]
	mov	edi, 1
	mov	r13, rax
	cmp	r15d, 1
	je	.L11
	setg	dil
	movzx	edi, dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L11:
	xor	eax, eax
	mov	edx, r15d
	lea	rsi, .LC1[rip]
	call	ok@PLT
	test	r13, r13
	je	.L12
	movsx	rax, DWORD PTR -60[rbp]
	mov	edi, 1
	cmp	QWORD PTR 0[r13+rax*8], 0
	je	.L13
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L13:
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	ok@PLT
	cmp	DWORD PTR -60[rbp], 1
	jne	.L15
.L14:
	mov	rdi, r14
	call	ARRAY_SIZE@PLT
	mov	rsi, r14
	xor	edi, edi
	mov	edx, eax
	call	GetModuleFileNameW@PLT
	mov	rdi, r14
	call	wine_dbgstr_w@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	rbx, rax
	call	wine_dbgstr_w@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, r14
	mov	r15, rax
	call	lstrcmpW@PLT
	xor	edi, edi
	mov	rcx, rbx
	mov	rdx, r15
	test	eax, eax
	lea	rsi, .LC2[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
.L15:
	mov	rdi, r13
	call	LocalFree@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L30:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	ok@PLT
	cmp	DWORD PTR -60[rbp], 1
	jne	.L16
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L33:
	xor	edi, edi
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	xor	edi, edi
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	jmp	.L9
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_commandline2argv, .-test_commandline2argv
	.section	.rodata
	.type	exeW.1954, @object
	.size	exeW.1954, 4
exeW.1954:
	.string	"exe"
	.comm	cmdline_tests,8,8
	.comm	MAX_PATH,4,4
	.comm	ERROR_INVALID_PARAMETER,8,8
	.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_shlexec.c_test_commandline2argv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"expected NULL with ERROR_INVALID_PARAMETER got %p w"
	.ascii	"ith %u\012\000"
	.align	2
.LC1:
	.ascii	"expected 1 args, got %d\012\000"
	.align	2
.LC2:
	.ascii	"wrong path to the current executable: %s instead of"
	.ascii	" %s\012\000"
	.align	2
.LC3:
	.ascii	"expected NULL-terminated list of commandline argume"
	.ascii	"nts\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_commandline2argv, %function
test_commandline2argv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L32
	ldr	r2, .L32+4
	ldr	r3, [r3]
	ldr	r4, [r2]
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	r2, [r4]
	mov	r6, sp
	sub	sp, sp, r3
	ldr	r3, .L32+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r5, sp
	bne	.L2
	b	.L7
.L5:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	beq	.L7
.L2:
	mov	r0, r4
	bl	test_one_cmdline
	cmp	r0, #0
	bne	.L5
.L14:
	ldr	r3, .L32+8
	mov	sp, r6
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	ldr	r0, .L32+12
	bl	SetLastError
	mov	r1, #0
	ldr	r0, .L32+16
	bl	CommandLineToArgvW
	mov	r4, r0
	bl	GetLastError
	cmp	r4, #0
	mov	r3, r0
	movne	r0, #0
	beq	.L30
.L4:
	mov	r2, r4
	ldr	r1, .L32+20
	bl	ok
	ldr	r0, .L32+12
	bl	SetLastError
	mov	r1, #0
	mov	r0, r1
	bl	CommandLineToArgvW
	mov	r4, r0
	bl	GetLastError
	mov	r3, r0
	cmp	r4, #0
	ldreq	r2, .L32+24
	movne	r0, #0
	ldreq	r0, [r2]
	ldr	r1, .L32+20
	subeq	r0, r0, r3
	clzeq	r0, r0
	mov	r2, r4
	lsreq	r0, r0, #5
	bl	ok
	mov	r3, #0
	mov	r0, r5
	strb	r3, [r5]
	sub	r1, fp, #28
	bl	CommandLineToArgvW
	ldr	r3, [fp, #-28]
	mov	r4, r0
	cmp	r3, #1
	moveq	r2, r3
	bne	.L31
.L9:
	mov	r0, r3
	ldr	r1, .L32+28
	bl	ok
	cmp	r4, #0
	beq	.L10
	ldr	r3, [fp, #-28]
	mov	r0, #1
	ldr	r3, [r4, r3, lsl #2]
	cmp	r3, #0
	beq	.L11
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
.L11:
	ldr	r1, .L32+32
	bl	ok
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L13
.L12:
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, #0
	bl	GetModuleFileNameW
	mov	r1, r5
	ldr	r0, [r4]
	bl	lstrcmpW
	mov	r7, r0
	ldr	r0, [r4]
	bl	wine_dbgstr_w
	mov	r2, r0
	mov	r0, r5
	mov	r5, r2
	bl	wine_dbgstr_w
	mov	r3, r0
	clz	r0, r7
	mov	r2, r5
	ldr	r1, .L32+36
	lsr	r0, r0, #5
	bl	ok
.L13:
	mov	r0, r4
	bl	LocalFree
	b	.L14
.L31:
	movgt	r0, #1
	movle	r0, #0
	bl	broken
	subs	r3, r0, #0
	movne	r3, #1
	ldr	r2, [fp, #-28]
	b	.L9
.L10:
	mov	r0, #1
	ldr	r1, .L32+32
	bl	ok
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L14
	b	.L12
.L30:
	ldr	r2, .L32+24
	ldr	r0, [r2]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L4
.L29:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	MAX_PATH
	.word	cmdline_tests
	.word	.LC4
	.word	-559038737
	.word	.LANCHOR0
	.word	.LC0
	.word	ERROR_INVALID_PARAMETER
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	test_commandline2argv, .-test_commandline2argv
	.comm	cmdline_tests,4,4
	.comm	MAX_PATH,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	exeW.4238, %object
	.size	exeW.4238, 4
exeW.4238:
	.ascii	"exe\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
