	.file	"extr_21746.c_request_tree_connect_andx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"\\\\%s\\IPC$"
.LC2:
	.string	"IPC"
	.text
	.p2align 4
	.globl	request_tree_connect_andx
	.type	request_tree_connect_andx, @function
request_tree_connect_andx:
.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
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	call	rand@PLT
	push	0
	.cfi_def_cfa_offset 136
	mov	esi, DWORD PTR SMB_TREE_CONNECT_ANDX[rip]
	xor	r8d, r8d
	push	QWORD PTR 20[rbp]
	.cfi_def_cfa_offset 144
	mov	r9, rax
	mov	ecx, 8193
	mov	rdi, r12
	mov	edx, 24
	call	build_smb_header@PLT
	mov	BYTE PTR 1[rbp], 0
	mov	rsi, r12
	lea	rdi, 4[rbp]
	movzx	eax, BYTE PTR SESSION_MESSAGE[rip]
	lea	r15, 48[rsp]
	mov	edx, 24
	mov	BYTE PTR 0[rbp], al
	call	memcpy@PLT
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	lea	rsi, .LC0[rip]
	movabs	rax, 1095216660484
	lea	rdi, 52[rbp]
	mov	QWORD PTR 48[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 56[rsp], 1
	call	push_string@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	strlen@PLT
	lea	rdi, 8[rax]
	call	malloc@PLT
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	r12, rax
	mov	rdi, rax
	call	sprintf@PLT
	mov	rsi, r12
	mov	rdi, rbx
	xor	eax, eax
	call	push_string@PLT
	mov	rdi, r12
	mov	r13, rax
	call	free@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	push_string@PLT
	mov	edx, 24
	mov	rsi, r15
	lea	rdi, 28[rbp]
	sub	rax, rbp
	sub	eax, 52
	mov	DWORD PTR 60[rsp], eax
	call	memcpy@PLT
	movsx	rdi, DWORD PTR 60[rsp]
	add	rdi, 48
	call	bswap16@PLT
	mov	rsi, rbp
	mov	edi, r14d
	mov	QWORD PTR 2[rbp], rax
	mov	eax, DWORD PTR 60[rsp]
	lea	edx, 52[rax]
	call	write@PLT
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 72
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	request_tree_connect_andx, .-request_tree_connect_andx
	.comm	SMB_TREE_CONNECT_ANDX,4,4
	.comm	SESSION_MESSAGE,1,1
	.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_21746.c_request_tree_connect_andx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"\\\\%s\\IPC$\000"
	.align	2
.LC2:
	.ascii	"IPC\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	request_tree_connect_andx
	.syntax unified
	.arm
	.fpu softvfp
	.type	request_tree_connect_andx, %function
request_tree_connect_andx:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L6
	mov	r4, r0
	sub	sp, sp, #68
	mov	r5, r2
	mov	r6, #0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	rand
	ldr	r2, [r4, #20]
	ldr	r3, .L6+4
	stmib	sp, {r0, r2, r6}
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r2, #24
	ldr	r3, .L6+8
	add	r0, sp, #20
	bl	build_smb_header
	ldr	r3, .L6+12
	mov	r2, #20
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r6, [r4, #1]
	add	r1, sp, #20
	strb	r3, [r4]
	add	r0, r4, #4
	bl	memcpy
	mov	ip, #4
	mov	r3, #1
	mov	r2, #255
	ldr	r1, .L6+16
	add	r0, r4, #44
	str	ip, [sp, #40]
	str	r3, [sp, #48]
	str	r2, [sp, #44]
	str	r6, [sp, #56]
	bl	push_string
	mov	r6, r0
	mov	r0, r5
	bl	strlen
	add	r0, r0, #8
	bl	malloc
	mov	r2, r5
	mov	r5, r0
	ldr	r1, .L6+20
	bl	sprintf
	mov	r1, r5
	mov	r0, r6
	bl	push_string
	mov	r6, r0
	mov	r0, r5
	bl	free
	ldr	r1, .L6+24
	mov	r0, r6
	bl	push_string
	sub	r5, r0, r4
	sub	r3, r5, #44
	mov	r2, #20
	add	r1, sp, #40
	add	r0, r4, #24
	str	r3, [sp, #52]
	bl	memcpy
	sub	r0, r5, #4
	bl	bswap16
	mov	r2, r5
	str	r0, [r4, #2]
	mov	r1, r4
	mov	r0, r7
	bl	write
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	SMB_TREE_CONNECT_ANDX
	.word	8193
	.word	SESSION_MESSAGE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	request_tree_connect_andx, .-request_tree_connect_andx
	.comm	SMB_TREE_CONNECT_ANDX,4,4
	.comm	SESSION_MESSAGE,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
