	.file	"extr_javascript.c_script_write_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"file://"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"File name must be prefixed with '%s'"
	.section	.rodata.str1.1
.LC2:
	.string	"Writing file '%s'\n"
.LC3:
	.string	"wb"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Cannot open file for writing: '%s'"
	.section	.rodata.str1.1
.LC5:
	.string	"Cannot write to file: '%s'"
	.text
	.p2align 4
	.type	script_write_file, @function
script_write_file:
.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	r14, rsi
	mov	esi, 1
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	js_tostring@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	rbx, rax
	call	js_tostring@PLT
	lea	rdx, .LC0[rip]
	mov	ecx, 7
	mov	rsi, rbx
	mov	rdi, rdx
	mov	r13, rax
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	js_error@PLT
.L2:
	lea	rdi, .LC0[rip]
	call	strlen@PLT
	mov	rdi, rbp
	movsx	r12, eax
	call	jctx@PLT
	add	r12, rbx
	mov	rdi, r14
	mov	rax, QWORD PTR [rax]
	mov	rdx, r12
	mov	esi, DWORD PTR [rax]
	call	mp_get_user_path@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	jctx@PLT
	mov	rdx, r15
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	MP_VERBOSE@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r15
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
.L3:
	mov	rsi, r12
	mov	rdi, r14
	call	add_af_file@PLT
	mov	rdi, r13
	call	strlen@PLT
	mov	rcx, r12
	mov	esi, 1
	mov	rdi, r13
	mov	edx, eax
	mov	ebx, eax
	call	fwrite@PLT
	cmp	ebx, eax
	jne	.L11
	add	rsp, 8
	.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
.L11:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r15
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	lea	rsi, .LC5[rip]
	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
	jmp	js_error@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, r15
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	js_error@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	script_write_file, .-script_write_file
	.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_javascript.c_script_write_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"file://\000"
	.align	2
.LC1:
	.ascii	"File name must be prefixed with '%s'\000"
	.align	2
.LC2:
	.ascii	"Writing file '%s'\012\000"
	.align	2
.LC3:
	.ascii	"wb\000"
	.align	2
.LC4:
	.ascii	"Cannot open file for writing: '%s'\000"
	.align	2
.LC5:
	.ascii	"Cannot write to file: '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	script_write_file, %function
script_write_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r1, #1
	mov	r4, r0
	bl	js_tostring
	mov	r1, #2
	mov	r5, r0
	mov	r0, r4
	bl	js_tostring
	mov	r2, #7
	mov	r8, r0
	ldr	r1, .L11
	mov	r0, r5
	bl	strncmp
	cmp	r0, #0
	beq	.L2
	mov	r0, r4
	ldr	r2, .L11
	ldr	r1, .L11+4
	bl	js_error
.L2:
	mov	r0, r4
	bl	jctx
	ldr	r3, [r0]
	add	r2, r5, #7
	ldr	r1, [r3]
	mov	r0, r7
	bl	mp_get_user_path
	mov	r6, r0
	mov	r0, r4
	bl	jctx
	mov	r2, r6
	ldr	r1, .L11+8
	bl	MP_VERBOSE
	mov	r0, r6
	ldr	r1, .L11+12
	bl	fopen
	subs	r5, r0, #0
	beq	.L10
.L3:
	mov	r1, r5
	mov	r0, r7
	bl	add_af_file
	mov	r0, r8
	bl	strlen
	mov	r7, r0
	mov	r3, r5
	mov	r0, r8
	mov	r2, r7
	mov	r1, #1
	bl	fwrite
	cmp	r7, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r2, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L11+16
	b	js_error
.L10:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, .L11+20
	bl	js_error
	b	.L3
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.word	.LC4
	.size	script_write_file, .-script_write_file
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
