	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_icy
_store_icy:                             ## @store_icy
	.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	%r12
	pushq	%rbx
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rbx
	movq	(%rbx), %rsi
	subq	8(%rbx), %rsi
	jge	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	je	LBB0_3
LBB0_9:
	movl	%r14d, %edi
	callq	_FFMIN
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	leaq	-4132(%rbp), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_http_read_stream_all
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movslq	-4132(%rbp), %r12
	testq	%r12, %r12
	jle	LBB0_8
## %bb.5:
	shlq	$4, %r12
	leaq	-4128(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_http_read_stream_all
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	orq	$1, %r12
	movb	$0, -4128(%rbp,%r12)
	leaq	L_.str(%rip), %rsi
	leaq	-4128(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	leaq	-4128(%rbp), %rsi
	movq	%r15, %rdi
	callq	_update_metadata
LBB0_8:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rsi
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"icy_metadata_packet"

	.no_dead_strip	_store_icy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_icy
_store_icy:                             ; @store_icy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0]
	ldp	x8, x9, [x20]
	subs	x1, x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_FFMIN
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x21, x0
	mov	w8, #1
	add	x9, sp, #16
	stp	x9, x8, [sp]
	bl	_http_read_stream_all
	tbnz	w0, #31, LBB0_4
; %bb.7:
	ldrsw	x8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	lsl	x23, x8, #4
	add	x22, sp, #23
	stp	x22, x23, [sp]
	mov	x0, x21
	bl	_http_read_stream_all
	tbnz	w0, #31, LBB0_4
; %bb.9:
	orr	x8, x23, #0x1
	strb	wzr, [x22, x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #23
	mov	x0, x20
	mov	w3, #0
	bl	_av_opt_set
	tbnz	w0, #31, LBB0_4
; %bb.10:
	add	x1, sp, #23
	mov	x0, x21
	bl	_update_metadata
LBB0_11:
	str	xzr, [x20, #8]
	ldr	x1, [x20]
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"icy_metadata_packet"

	.no_dead_strip	_store_icy
.subsections_via_symbols
