	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function mp3_update_xing
LCPI0_0:
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mp3_update_xing:                       ## @mp3_update_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 76(%r14)
	jne	LBB0_2
## %bb.1:
	movslq	(%r14), %r12
	shlq	$3, %r12
	addq	64(%r14), %r12
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$73, %edi
	movl	$110, %esi
	movl	$111, %edx
	callq	_MKTAG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
LBB0_2:
	movq	8(%r14), %rsi
	movq	64(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$64, %rdi
	callq	_AV_WB32
	movq	16(%r14), %rsi
	movq	64(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$96, %rdi
	callq	_AV_WB32
	movq	64(%r14), %rax
	movslq	(%r14), %rdx
	movq	$0, 128(%rax,%rdx,8)
	movq	_XING_TOC_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.3:
	leaq	(%rax,%rdx,8), %r13
	addq	$136, %r13
	movl	$1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cqto
	idivq	%rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	movl	$255, %esi
	callq	_FFMIN
	movq	%rax, (%r13)
	incq	%rbx
	movslq	(%r12), %rcx
	addq	$8, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r14), %eax
	imull	%ebx, %eax
	cltd
	idivl	%ecx
	movq	16(%r14), %rcx
	movq	32(%r14), %rdx
	cltq
	movq	(%rdx,%rax,8), %rax
	shlq	$8, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_7
LBB0_8:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_AV_PKT_DATA_REPLAYGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_av_stream_get_side_data
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	cmpl	$24, -48(%rbp)
	jb	LBB0_14
## %bb.10:
	movq	%rax, %r13
	movq	64(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %r12
	addq	$1048, %r12                     ## imm = 0x418
	movl	16(%r13), %edi
	movl	$8388608, %esi                  ## imm = 0x800000
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_av_rescale
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_AV_WB32
	movq	(%r13), %rax
	movq	_INT32_MIN@GOTPCREL(%rip), %rbx
	movabsq	$3777893186295716171, %r12      ## imm = 0x346DC5D63886594B
	cmpq	(%rbx), %rax
	je	LBB0_12
## %bb.11:
	imulq	%r12
	movq	%rdx, %rdi
	shrq	$63, %rdi
	shrq	$11, %rdx
	addl	%edx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	andl	$511, %eax                      ## imm = 0x1FF
	movq	(%r13), %rcx
	shrq	$54, %rcx
	andl	$512, %ecx                      ## imm = 0x200
	leal	(%rax,%rcx), %esi
	addl	$8192, %esi                     ## imm = 0x2000
	movq	64(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$1080, %rdi                     ## imm = 0x438
	callq	_AV_WB16
	movq	(%rbx), %rax
LBB0_12:
	movq	8(%r13), %rcx
	cmpq	%rax, %rcx
	je	LBB0_14
## %bb.13:
	movq	%rcx, %rax
	imulq	%r12
	movq	%rdx, %rdi
	shrq	$63, %rdi
	shrq	$11, %rdx
	addl	%edx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	andl	$511, %eax                      ## imm = 0x1FF
	movq	8(%r13), %rcx
	shrq	$54, %rcx
	andl	$512, %ecx                      ## imm = 0x200
	leal	(%rax,%rcx), %esi
	addl	$16384, %esi                    ## imm = 0x4000
	movq	64(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$1096, %rdi                     ## imm = 0x448
	callq	_AV_WB16
LBB0_14:
	cmpl	$4096, 40(%r14)                 ## imm = 0x1000
	jl	LBB0_16
## %bb.15:
	movl	$4095, 40(%r14)                 ## imm = 0xFFF
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_16:
	movl	44(%r14), %eax
	cmpl	$4096, %eax                     ## imm = 0x1000
	jl	LBB0_18
## %bb.17:
	movl	$4095, 44(%r14)                 ## imm = 0xFFF
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movl	44(%r14), %eax
LBB0_18:
	movq	64(%r14), %rcx
	movslq	(%r14), %rdx
	leaq	(%rcx,%rdx,8), %rdi
	addq	$1128, %rdi                     ## imm = 0x468
	movl	40(%r14), %esi
	shll	$12, %esi
	addl	%eax, %esi
	callq	_AV_WB24
	movslq	(%r14), %rax
	shlq	$3, %rax
	addq	64(%r14), %rax
	movq	_XING_SIZE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$-64, %rdi
	movq	48(%r14), %rsi
	callq	_AV_WB32
	movslq	(%r14), %rax
	shlq	$3, %rax
	addq	64(%r14), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$-32, %rdi
	movl	56(%r14), %esi
	callq	_AV_WB16
	movq	_AV_CRC_16_ANSI_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movq	64(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$190, %ecx
	callq	_av_crc
	movslq	(%r14), %rcx
	shlq	$3, %rcx
	addq	64(%r14), %rcx
	movslq	(%rbx), %rdx
	leaq	(%rcx,%rdx,8), %rdi
	addq	$-16, %rdi
	movl	%eax, %esi
	callq	_AV_WB16
	movl	(%r15), %edi
	movl	72(%r14), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_avio_seek
	movl	(%r15), %edi
	movq	64(%r14), %rsi
	movl	60(%r14), %edx
	callq	_avio_write
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_seek
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XING_TOC_SIZE,4,2              ## @XING_TOC_SIZE
	.comm	_AV_PKT_DATA_REPLAYGAIN,4,2     ## @AV_PKT_DATA_REPLAYGAIN
	.comm	_INT32_MIN,8,3                  ## @INT32_MIN
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many samples of initial padding.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Too many samples of trailing padding.\n"

	.comm	_XING_SIZE,4,2                  ## @XING_SIZE
	.comm	_AV_CRC_16_ANSI_LE,4,2          ## @AV_CRC_16_ANSI_LE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_mp3_update_xing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp3_update_xing
_mp3_update_xing:                       ; @mp3_update_xing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w0, [x0]
	bl	_avio_tell
	mov	x20, x0
	ldr	w8, [x23, #76]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x21, x8, x9, lsl #3
	mov	w8, #1120665600
	fmov	s0, w8
	mov	w0, #73
	mov	w1, #110
	mov	w2, #111
	bl	_MKTAG
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WL32
LBB0_2:
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #64
	ldr	x1, [x23, #8]
	bl	_AV_WB32
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #96
	ldr	x1, [x23, #16]
	bl	_AV_WB32
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x21, x8, x9, lsl #3
	str	xzr, [x21, #128]
Lloh0:
	adrp	x22, _XING_TOC_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XING_TOC_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w24, #17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23, #24]
	sub	w10, w24, #16
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	ldr	x9, [x23, #32]
	ldr	x8, [x9, w8, sxtw #3]
	lsl	x8, x8, #8
	ldr	x9, [x23, #16]
	sdiv	x0, x8, x9
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #255
	bl	_FFMIN
	str	x0, [x21, x24, lsl #3]
	ldrsw	x8, [x22]
	sub	x9, x24, #15
	add	x24, x24, #1
	cmp	x9, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _AV_PKT_DATA_REPLAYGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PKT_DATA_REPLAYGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_av_stream_get_side_data
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, #24
	b.lo	LBB0_11
; %bb.7:
	mov	x21, x0
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x22, x8, #1048
	ldr	w0, [x0, #16]
	mov	w1, #8388608
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_av_rescale
	mov	x1, x0
	mov	x0, x22
	bl	_AV_WB32
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _INT32_MIN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _INT32_MIN@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	mov	x9, #22859
	movk	x9, #14470, lsl #16
	movk	x9, #50646, lsl #32
	movk	x9, #13421, lsl #48
	smulh	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #11
	add	w0, w8, w9
	bl	_FFABS
	ldr	x8, [x21]
	lsr	x8, x8, #54
	and	w8, w8, #0x200
	bfxil	w8, w0, #0, #9
	orr	w1, w8, #0x2000
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #1080
	bl	_AV_WB16
	ldr	x8, [x22]
LBB0_9:
	ldr	x9, [x21, #8]
	cmp	x9, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x8, #22859
	movk	x8, #14470, lsl #16
	movk	x8, #50646, lsl #32
	movk	x8, #13421, lsl #48
	smulh	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #11
	add	w0, w8, w9
	bl	_FFABS
	ldr	x8, [x21, #8]
	lsr	x8, x8, #54
	and	w8, w8, #0x200
	bfxil	w8, w0, #0, #9
	orr	w1, w8, #0x4000
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #1096
	bl	_AV_WB16
LBB0_11:
	ldr	w8, [x23, #40]
Lloh7:
	adrp	x21, _AV_LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AV_LOG_WARNING@GOTPAGEOFF]
	cmp	w8, #1, lsl #12                 ; =4096
	b.lt	LBB0_13
; %bb.12:
	mov	w8, #4095
	str	w8, [x23, #40]
	ldr	w1, [x21]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_13:
	ldr	w8, [x23, #44]
	cmp	w8, #1, lsl #12                 ; =4096
	b.lt	LBB0_15
; %bb.14:
	mov	w8, #4095
	str	w8, [x23, #44]
	ldr	w1, [x21]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x23, #44]
LBB0_15:
	ldr	x9, [x23, #64]
	ldrsw	x10, [x23]
	add	x9, x9, x10, lsl #3
	add	x0, x9, #1128
	ldr	w9, [x23, #40]
	add	w1, w8, w9, lsl #12
	bl	_AV_WB24
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
Lloh13:
	adrp	x21, _XING_SIZE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _XING_SIZE@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	sub	x0, x8, #64
	ldr	x1, [x23, #48]
	bl	_AV_WB32
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	sub	x0, x8, #32
	ldr	w1, [x23, #56]
	bl	_AV_WB16
Lloh15:
	adrp	x8, _AV_CRC_16_ANSI_LE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CRC_16_ANSI_LE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	ldr	x2, [x23, #64]
	mov	w1, #0
	mov	w3, #190
	bl	_av_crc
	mov	x1, x0
	ldr	x8, [x23, #64]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #3
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	sub	x0, x8, #16
	bl	_AV_WB16
	ldr	w0, [x19]
	ldr	w1, [x23, #72]
Lloh18:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_avio_seek
	ldr	w0, [x19]
	ldr	x1, [x23, #64]
	ldr	w2, [x23, #60]
	bl	_avio_write
	ldr	w0, [x19]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_avio_seek
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XING_TOC_SIZE,4,2              ; @XING_TOC_SIZE
	.comm	_AV_PKT_DATA_REPLAYGAIN,4,2     ; @AV_PKT_DATA_REPLAYGAIN
	.comm	_INT32_MIN,8,3                  ; @INT32_MIN
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many samples of initial padding.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Too many samples of trailing padding.\n"

	.comm	_XING_SIZE,4,2                  ; @XING_SIZE
	.comm	_AV_CRC_16_ANSI_LE,4,2          ; @AV_CRC_16_ANSI_LE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_mp3_update_xing
.subsections_via_symbols
