	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp3_write_xing
_mp3_write_xing:                        ## @mp3_write_xing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %r15
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movq	(%rbx), %rdx
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdx)
	je	LBB0_27
## %bb.1:
	cmpl	$0, 56(%r14)
	je	LBB0_27
## %bb.2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_avpriv_mpa_freq_tab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%r15d, %r15d
	movl	$1, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movl	(%rdi,%r15,4), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	cmpl	%edx, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r15
	jl	LBB0_4
	jmp	LBB0_11
LBB0_8:
	movl	$1, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_9:
	movl	$1572864, %r12d                 ## imm = 0x180000
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_10:
	movl	$1048576, %r12d                 ## imm = 0x100000
LBB0_11:
	movq	(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r15d
	jne	LBB0_13
## %bb.12:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_25
LBB0_13:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$2, %eax
	jne	LBB0_24
## %bb.15:
	movq	_MPA_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_MPA_MONO@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	shll	$10, %r15d
	orl	%r12d, %r15d
	shll	$6, %eax
	orl	%r15d, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	$-1, %r15d
	movl	$1, %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_avpriv_mpa_bitrate_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	16(%rax), %rax
	imull	$1000, (%rax,%rbx,4), %edi      ## imm = 0x3E8
	subl	8(%r12), %edi
	callq	_FFABS
	cmpl	%r14d, %eax
	cmovll	%ebx, %r15d
	cmovll	%eax, %r14d
	incq	%rbx
	cmpq	$15, %rbx
	jne	LBB0_18
## %bb.19:
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert0
	movl	$-1, %r13d
	cmpl	$15, %r15d
	je	LBB0_27
## %bb.20:
	movl	-108(%rbp), %r12d               ## 4-byte Reload
	orl	$-1900544, %r12d                ## imm = 0xFFE30000
	movl	%r15d, %r14d
	shll	$12, %r14d
	movl	%r14d, %r13d
	notl	%r13d
	addl	$-15, %r15d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	orl	%r14d, %ebx
	leaq	-104(%rbp), %rdi
	movl	%ebx, %esi
	callq	_avpriv_mpegaudio_decode_header
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_av_assert0
	movq	_xing_offtbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$1, -104(%rbp)
	sete	%cl
	movq	(%rax,%rcx,8), %rax
	xorl	%ecx, %ecx
	cmpl	$1, -100(%rbp)
	sete	%cl
	movl	(%rax,%rcx,4), %ecx
	addl	$4, %ecx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, 8(%rax)
	movq	_XING_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	cmpl	-96(%rbp), %ecx
	jle	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	andl	%r13d, %r12d
	addl	$4096, %r14d                    ## imm = 0x1000
	addl	$-4096, %r13d                   ## imm = 0xF000
	incl	%r15d
	jne	LBB0_21
	jmp	LBB0_26
LBB0_24:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_25:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
LBB0_26:
	movl	$-1, %r13d
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.28:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movl	%ecx, %r12d
	leaq	-72(%rbp), %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_38
## %bb.30:
	movq	-72(%rbp), %rdi
	movl	%ebx, %esi
	callq	_avio_wb32
	movq	-72(%rbp), %rdi
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movl	8(%r13), %edx
	addl	$-4, %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_ffio_fill
	movq	-72(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ffio_wfourcc
	movq	-72(%rbp), %rdi
	movl	$15, %esi
	callq	_avio_wb32
	movl	-96(%rbp), %eax
	movl	%eax, 12(%r13)
	movl	$1, 16(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r13)
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	_XING_TOC_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.31:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movsbl	%al, %esi
	callq	_avio_w8
	incl	%ebx
	movl	(%r14), %ecx
	addl	$255, %r15d
	cmpl	%ecx, %ebx
	jl	LBB0_32
LBB0_33:
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_39
## %bb.34:
	movb	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rbx), %rdi
	callq	_strlen
	movq	(%rbx), %rbx
	cmpl	$10, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_36
## %bb.35:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_41
LBB0_36:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %edi
	movl	$9, %esi
	callq	_FFMIN
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
LBB0_37:
	callq	_memcpy
	movq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$9, %edx
	callq	_avio_write
	jmp	LBB0_40
LBB0_38:
	movl	%eax, %r13d
	jmp	LBB0_27
LBB0_39:
	movq	-72(%rbp), %rdi
	leaq	l_.str.6(%rip), %rsi
	movl	$9, %edx
	callq	_avio_write
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_40:
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_ffio_fill
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	-72(%rbp), %rdi
	movl	-96(%rbp), %edx
	subl	%r12d, %edx
	xorl	%esi, %esi
	callq	_ffio_fill
	movq	-72(%rbp), %rdi
	leaq	24(%r13), %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, 20(%r13)
	movq	(%r14), %rdi
	callq	_avio_tell
	movl	%eax, 36(%r13)
	movq	(%r14), %rdi
	movq	24(%r13), %rsi
	movl	20(%r13), %edx
	callq	_avio_write
	movl	20(%r13), %eax
	movl	%eax, 32(%r13)
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_41:
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$9, %edx
	jmp	LBB0_37
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoder"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_avpriv_mpa_freq_tab,8,3        ## @avpriv_mpa_freq_tab
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported sample rate, not writing Xing header.\n"

	.comm	_MPA_MONO,4,2                   ## @MPA_MONO
	.comm	_MPA_STEREO,4,2                 ## @MPA_STEREO
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported number of channels, not writing Xing header.\n"

	.comm	_avpriv_mpa_bitrate_tab,8,3     ## @avpriv_mpa_bitrate_tab
	.comm	_xing_offtbl,8,3                ## @xing_offtbl
	.comm	_XING_SIZE,4,2                  ## @XING_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Xing"

	.comm	_XING_TOC_SIZE,4,2              ## @XING_TOC_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Lavc libmp3lame"

L_.str.5:                               ## @.str.5
	.asciz	"Lavf lame"

	.section	__TEXT,__const
l_.str.6:                               ## @.str.6
	.asciz	"Lavf\000\000\000\000\000"

	.no_dead_strip	_mp3_write_xing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp3_write_xing
_mp3_write_xing:                        ; @mp3_write_xing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldp	x8, x22, [x0, #8]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x21, [x8, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	ldr	w8, [x22, #56]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x20, x0
Lloh8:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x26, _avpriv_mpa_freq_tab@GOTPAGE
Lloh12:
	ldr	x26, [x26, _avpriv_mpa_freq_tab@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x25, #0
	mov	w24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26]
	ldr	w8, [x0, x25, lsl #2]
	ldr	w9, [x21]
	cmp	w9, w8
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	cinc	w10, w8, lt
	cmp	w9, w10, asr #1
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w8, #3
	cmp	w8, #0
	csel	w8, w10, w8, lt
	cmp	w9, w8, asr #2
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x25, w0, sxtw
	b.lt	LBB0_4
LBB0_8:
	mov	w27, #0
	b	LBB0_13
LBB0_9:
	mov	w0, #0
	b	LBB0_28
LBB0_10:
	mov	w25, #0
	mov	w27, #0
	mov	w24, #1
	b	LBB0_13
LBB0_11:
	mov	x24, #0
	mov	w27, #1572864
	b	LBB0_13
LBB0_12:
	mov	w27, #1048576
LBB0_13:
	ldr	x0, [x26]
	bl	_FF_ARRAY_ELEMS
	cmp	w25, w0
	b.ne	LBB0_15
; %bb.14:
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_15:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.16:
	cmp	w8, #2
	b.ne	LBB0_25
; %bb.17:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
Lloh18:
	adrp	x8, _MPA_STEREO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MPA_STEREO@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
Lloh20:
	adrp	x8, _MPA_MONO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MPA_MONO@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	orr	w9, w27, w25, lsl #10
	orr	w25, w9, w8, lsl #6
	mov	w20, #-1
	mov	w26, #1
Lloh22:
	adrp	x27, _avpriv_mpa_bitrate_tab@GOTPAGE
Lloh23:
	ldr	x27, [x27, _avpriv_mpa_bitrate_tab@GOTPAGEOFF]
	mov	w28, #1000
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x8, [x8, #16]
	ldr	w8, [x8, x26, lsl #2]
	ldr	w9, [x21, #8]
	neg	w9, w9
	madd	w0, w8, w28, w9
	bl	_FFABS
	cmp	w0, w23
	csel	w20, w26, w20, lt
	csel	w23, w0, w23, lt
	add	x26, x26, #1
	cmp	x26, #15
	b.ne	LBB0_20
; %bb.21:
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_av_assert0
	subs	w24, w20, #15
	b.eq	LBB0_27
; %bb.22:
	mov	w8, #-1900544
	orr	w25, w25, w8
	lsl	w26, w20, #12
	mvn	w27, w26
Lloh24:
	adrp	x28, _xing_offtbl@GOTPAGE
Lloh25:
	ldr	x28, [x28, _xing_offtbl@GOTPAGEOFF]
Lloh26:
	adrp	x20, _XING_SIZE@GOTPAGE
Lloh27:
	ldr	x20, [x20, _XING_SIZE@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	orr	w21, w25, w26
	add	x0, sp, #16
	mov	x1, x21
	bl	_avpriv_mpegaudio_decode_header
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_av_assert0
	ldr	x8, [x28]
	ldp	w9, w10, [sp, #16]
	cmp	w9, #1
	cset	w9, eq
	ldr	x8, [x8, w9, uxtw #3]
	cmp	w10, #1
	cset	w9, eq
	ldr	w8, [x8, w9, uxtw #2]
	add	w8, w8, #4
	str	w8, [x22, #8]
	ldr	w9, [x20]
	ldr	w10, [sp, #24]
	add	w23, w9, w8
	cmp	w23, w10
	b.le	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	and	w25, w25, w27
	add	w26, w26, #1, lsl #12           ; =4096
	sub	w27, w27, #1, lsl #12           ; =4096
	adds	w24, w24, #1
	b.lo	LBB0_23
	b	LBB0_27
LBB0_25:
Lloh28:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_26:
	mov	x0, x19
	bl	_av_log
LBB0_27:
	mov	w0, #-1
LBB0_28:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.29:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	add	x0, sp, #32
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_28
; %bb.31:
	ldr	x0, [sp, #32]
	mov	x1, x21
	bl	_avio_wb32
	ldr	x0, [sp, #32]
	ldr	w8, [x22, #8]
	sub	w2, w8, #4
	mov	w1, #0
	bl	_ffio_fill
	ldr	x0, [sp, #32]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ffio_wfourcc
	ldr	x0, [sp, #32]
	mov	w1, #15
	bl	_avio_wb32
	ldr	w8, [sp, #24]
	mov	w9, #1
	stp	w8, w9, [x22, #12]
	stp	xzr, xzr, [x22, #40]
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb32
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb32
Lloh38:
	adrp	x20, _XING_TOC_SIZE@GOTPAGE
Lloh39:
	ldr	x20, [x20, _XING_TOC_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.32:
	mov	w21, #0
	mov	w24, #0
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #32]
	sdiv	w8, w21, w8
	sxtb	w1, w8
	bl	_avio_w8
	add	w24, w24, #1
	ldr	w8, [x20]
	add	w21, w21, #255
	cmp	w24, w8
	b.lt	LBB0_33
LBB0_34:
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb32
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x20, LBB0_39
; %bb.35:
	strb	wzr, [sp, #48]
	str	xzr, [sp, #40]
	ldr	x0, [x20]
	bl	_strlen
	ldr	x20, [x20]
	cmp	w0, #10
	b.lo	LBB0_37
; %bb.36:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_41
LBB0_37:
	mov	x0, x20
	bl	_strlen
	mov	w1, #9
	bl	_FFMIN
	mov	x2, x0
	add	x0, sp, #40
	mov	x1, x20
LBB0_38:
	bl	_memcpy
	ldr	x0, [sp, #32]
	add	x1, sp, #40
	b	LBB0_40
LBB0_39:
	ldr	x0, [sp, #32]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_40:
	mov	w2, #9
	bl	_avio_write
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_ffio_fill
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb24
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_w8
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb16
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb32
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb16
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_avio_wb16
	ldr	x0, [sp, #32]
	ldr	w8, [sp, #24]
	sub	w2, w8, w23
	mov	w1, #0
	bl	_ffio_fill
	ldr	x0, [sp, #32]
	add	x1, x22, #24
	bl	_avio_close_dyn_buf
	str	w0, [x22, #20]
	ldr	x0, [x19]
	bl	_avio_tell
	str	w0, [x22, #36]
	ldr	x0, [x19]
	ldr	x1, [x22, #24]
	ldr	w2, [x22, #20]
	bl	_avio_write
	mov	w0, #0
	ldr	w8, [x22, #20]
	str	w8, [x22, #32]
	b	LBB0_28
LBB0_41:
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #40
	mov	w2, #9
	b	LBB0_38
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoder"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_avpriv_mpa_freq_tab,8,3        ; @avpriv_mpa_freq_tab
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported sample rate, not writing Xing header.\n"

	.comm	_MPA_MONO,4,2                   ; @MPA_MONO
	.comm	_MPA_STEREO,4,2                 ; @MPA_STEREO
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported number of channels, not writing Xing header.\n"

	.comm	_avpriv_mpa_bitrate_tab,8,3     ; @avpriv_mpa_bitrate_tab
	.comm	_xing_offtbl,8,3                ; @xing_offtbl
	.comm	_XING_SIZE,4,2                  ; @XING_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Xing"

	.comm	_XING_TOC_SIZE,4,2              ; @XING_TOC_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Lavc libmp3lame"

l_.str.5:                               ; @.str.5
	.asciz	"Lavf lame"

	.section	__TEXT,__const
l_.str.6:                               ; @.str.6
	.asciz	"Lavf\000\000\000\000\000"

	.no_dead_strip	_mp3_write_xing
.subsections_via_symbols
