	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_cookie
_parse_cookie:                          ## @parse_cookie
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_parse_set_cookie
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_25
## %bb.1:
	movq	-56(%rbp), %rdi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r12
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.6:
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_parse_set_cookie_expiry_time
	testl	%eax, %eax
	je	LBB0_7
LBB0_18:
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	movq	%r13, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:
	movq	%rax, %rbx
	movl	%ebx, %esi
	subl	%r13d, %esi
	movq	%r13, %rdi
	callq	_av_strndup
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	_AV_DICT_DONT_STRDUP_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_av_dict_set
LBB0_24:
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_3:
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_25
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_av_timegm
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_av_gettime
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	cmpl	%eax, -76(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_24
LBB0_9:
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.11:
	movq	$0, -72(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_parse_set_cookie
	testq	%rax, %rax
	je	LBB0_12
LBB0_17:
	leaq	-72(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_18
LBB0_12:
	movq	-72(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	cmpq	$0, 8(%rax)
	je	LBB0_17
## %bb.14:
	movl	$0, -64(%rbp)
	movq	8(%r12), %rdi
	leaq	-64(%rbp), %rsi
	callq	_parse_set_cookie_expiry_time
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	leaq	-48(%rbp), %rdi
	callq	_av_timegm
	movl	%eax, %ebx
	leaq	-64(%rbp), %rdi
	callq	_av_timegm
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.16:
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	leaq	-72(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.1:                               ## @.str.1
	.asciz	"expires"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_DICT_DONT_STRDUP_KEY,4,2    ## @AV_DICT_DONT_STRDUP_KEY
	.no_dead_strip	_parse_cookie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_cookie
_parse_cookie:                          ; @parse_cookie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	str	xzr, [sp, #24]
	add	x1, sp, #24
	mov	x0, x20
	bl	_parse_set_cookie
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_16
LBB0_2:
	ldr	x0, [sp, #24]
Lloh0:
	adrp	x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_11
; %bb.3:
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x0, [sp, #24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_7
; %bb.6:
	str	wzr, [sp, #16]
	add	x1, sp, #16
	bl	_parse_set_cookie_expiry_time
	cbz	w0, LBB0_17
LBB0_7:
	add	x0, sp, #24
	bl	_av_dict_free
	mov	x0, x20
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_13
; %bb.8:
	mov	x21, x0
	sub	w1, w21, w20
	mov	x0, x20
	bl	_av_strndup
	cbz	x0, LBB0_14
; %bb.9:
	mov	x1, x0
Lloh7:
	adrp	x8, _AV_DICT_DONT_STRDUP_KEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_KEY@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_av_dict_set
LBB0_10:
	mov	w0, #0
	b	LBB0_16
LBB0_11:
	add	x0, sp, #24
LBB0_12:
	bl	_av_dict_free
	mov	w0, #-1
	b	LBB0_16
LBB0_13:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	add	x0, sp, #16
	bl	_av_timegm
	mov	x23, x0
	bl	_av_gettime
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	cmp	w23, w8
	b.ge	LBB0_19
; %bb.18:
	add	x0, sp, #24
	bl	_av_dict_free
	b	LBB0_10
LBB0_19:
	ldr	x0, [x19]
	ldr	x1, [x22]
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_7
; %bb.20:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.21:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_parse_set_cookie
	cbz	x0, LBB0_23
LBB0_22:
	add	x0, sp, #8
	bl	_av_dict_free
	b	LBB0_7
LBB0_23:
	ldr	x0, [sp, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_22
; %bb.24:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_22
; %bb.25:
	str	wzr, [sp]
	ldr	x0, [x21, #8]
	mov	x1, sp
	bl	_parse_set_cookie_expiry_time
	cbnz	w0, LBB0_22
; %bb.26:
	add	x0, sp, #16
	bl	_av_timegm
	mov	x21, x0
	mov	x0, sp
	bl	_av_timegm
	cmp	w21, w0
	b.ge	LBB0_22
; %bb.27:
	add	x0, sp, #24
	bl	_av_dict_free
	add	x0, sp, #8
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.1:                               ; @.str.1
	.asciz	"expires"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_DICT_DONT_STRDUP_KEY,4,2    ; @AV_DICT_DONT_STRDUP_KEY
	.no_dead_strip	_parse_cookie
.subsections_via_symbols
