	.file	"extr_ao_pcm.c_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"audiodump.wav"
.LC1:
	.string	"audiodump.pcm"
.LC2:
	.string	"WAVE"
.LC3:
	.string	"RAW PCM"
.LC4:
	.string	"ab"
.LC5:
	.string	"wb"
.LC6:
	.string	"Not supported on big endian.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"File: %s (%s)\nPCM: Samplerate: %d Hz Channels: %d Format: %s\n"
	.align 8
.LC8:
	.string	"Failed to open %s for writing!\n"
	.text
	.p2align 4
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 16[rbx], 0
	jne	.L2
	cmp	QWORD PTR 8[rbx], 0
	lea	rax, .LC1[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	cmove	rsi, rax
	call	talloc_strdup@PLT
	mov	QWORD PTR 16[rbx], rax
.L2:
	mov	edi, DWORD PTR 0[rbp]
	call	af_fmt_from_planar@PLT
	cmp	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	je	.L5
	mov	rax, QWORD PTR BIG_ENDIAN[rip]
	cmp	QWORD PTR BYTE_ORDER[rip], rax
	je	.L20
	lea	eax, -128[rdi]
	cmp	eax, 3
	ja	.L21
.L5:
	lea	r12, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	rdi, r12
	call	mp_chmap_sel_add_waveext@PLT
	lea	rdx, 16[rbp]
	mov	rsi, r12
	mov	rdi, rbp
	call	ao_chmap_sel_adjust@PLT
	test	eax, eax
	je	.L15
	mov	r12d, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 0[rbp]
	imul	r12d, DWORD PTR 8[rbp]
	call	af_fmt_to_bytes@PLT
	mov	edi, DWORD PTR 0[rbp]
	imul	r12d, eax
	mov	DWORD PTR 4[rbp], r12d
	call	af_fmt_to_str@PLT
	mov	r9d, DWORD PTR 16[rbp]
	mov	r8d, DWORD PTR 8[rbp]
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbx], 0
	lea	rdx, .LC3[rip]
	lea	rcx, .LC2[rip]
	cmove	rcx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdx, QWORD PTR 16[rbx]
	lea	rsi, .LC7[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	MP_INFO@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	cmp	QWORD PTR 24[rbx], 0
	lea	rax, .LC5[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, QWORD PTR 16[rbx]
	pop	rdx
	.cfi_def_cfa_offset 48
	cmove	rsi, rax
	call	fopen@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L22
	cmp	QWORD PTR 8[rbx], 0
	jne	.L23
.L12:
	mov	DWORD PTR 12[rbp], 1
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	call	af_fmt_is_spdif@PLT
	test	eax, eax
	jne	.L5
	mov	DWORD PTR 0[rbp], 130
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, 2147479552
	mov	esi, eax
	mov	rdi, rbp
	call	write_wave_header@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, -1
	jmp	.L1
.L22:
	mov	rdx, QWORD PTR 16[rbx]
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	call	MP_ERR@PLT
	mov	eax, -1
	jmp	.L1
.L20:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	MP_FATAL@PLT
	mov	eax, -1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.comm	BYTE_ORDER,8,8
	.comm	BIG_ENDIAN,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_ao_pcm.c_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"audiodump.wav\000"
	.align	2
.LC1:
	.ascii	"audiodump.pcm\000"
	.align	2
.LC2:
	.ascii	"WAVE\000"
	.align	2
.LC3:
	.ascii	"RAW PCM\000"
	.align	2
.LC4:
	.ascii	"ab\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"Not supported on big endian.\012\000"
	.align	2
.LC7:
	.ascii	"File: %s (%s)\012PCM: Samplerate: %d Hz Channels: %"
	.ascii	"d Format: %s\012\000"
	.align	2
.LC8:
	.ascii	"Failed to open %s for writing!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L28
	ldr	r5, [r0, #20]
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [r5, #8]
	mov	r4, r0
	cmp	r3, #0
	bne	.L2
	ldr	r1, [r5, #4]
	ldr	r2, .L28+4
	ldr	r3, .L28+8
	cmp	r1, #0
	mov	r0, r5
	movne	r1, r2
	moveq	r1, r3
	bl	talloc_strdup
	str	r0, [r5, #8]
.L2:
	ldr	r0, [r4]
	bl	af_fmt_from_planar
	ldr	r2, [r5, #4]
	str	r0, [r4]
	cmp	r2, #0
	beq	.L5
	ldr	r1, .L28+12
	ldr	r2, .L28+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L23
	sub	r3, r0, #128
	cmp	r3, #3
	bhi	.L24
.L5:
	mov	r3, #0
	add	r0, sp, #16
	str	r3, [sp, #16]
	bl	mp_chmap_sel_add_waveext
	mov	r0, r4
	add	r1, sp, #16
	add	r2, r4, #16
	bl	ao_chmap_sel_adjust
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r4, #8]
	ldr	r6, [r4, #16]
	ldr	r0, [r4]
	mul	r6, r3, r6
	bl	af_fmt_to_bytes
	mul	r6, r0, r6
	ldr	r1, [r5, #4]
	ldr	r3, .L28+20
	ldr	r2, .L28+24
	cmp	r1, #0
	str	r6, [r4, #4]
	ldr	r0, [r4]
	moveq	r6, r2
	movne	r6, r3
	ldr	r7, [r5, #8]
	ldr	r8, [r4, #8]
	ldr	r9, [r4, #16]
	bl	af_fmt_to_str
	mov	r3, r6
	mov	r2, r7
	ldr	r1, .L28+28
	str	r0, [sp, #8]
	stm	sp, {r8, r9}
	mov	r0, r4
	bl	MP_INFO
	ldr	r1, [r5, #12]
	ldr	r2, .L28+32
	ldr	r3, .L28+36
	cmp	r1, #0
	movne	r1, r2
	moveq	r1, r3
	ldr	r0, [r5, #8]
	bl	fopen
	cmp	r0, #0
	str	r0, [r5]
	beq	.L25
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L26
.L12:
	mov	r3, #1
	mov	r0, #0
	str	r3, [r4, #12]
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L24:
	bl	af_fmt_is_spdif
	cmp	r0, #0
	moveq	r3, #130
	streq	r3, [r4]
	b	.L5
.L26:
	mov	r1, r0
	ldr	r2, .L28+40
	mov	r0, r4
	bl	write_wave_header
	b	.L12
.L15:
	mvn	r0, #0
	b	.L1
.L25:
	mov	r0, r4
	ldr	r2, [r5, #8]
	ldr	r1, .L28+44
	bl	MP_ERR
	mvn	r0, #0
	b	.L1
.L23:
	mov	r0, r4
	ldr	r1, .L28+48
	bl	MP_FATAL
	mvn	r0, #0
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	BYTE_ORDER
	.word	BIG_ENDIAN
	.word	.LC2
	.word	.LC3
	.word	.LC7
	.word	.LC4
	.word	.LC5
	.word	2147479552
	.word	.LC8
	.word	.LC6
	.size	init, .-init
	.comm	BYTE_ORDER,4,4
	.comm	BIG_ENDIAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
