	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_encryption_start
_hls_encryption_start:                  ## @hls_encryption_start
	.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	%rdi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	_KEYSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdx
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	*(%r15)
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi
	movq	8(%r14), %rsi
	movl	$8, %edx
	callq	_ff_get_line
	movq	8(%r14), %r12
	leaq	L_.str.1(%rip), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcspn
	movb	$0, (%r12,%rax)
	movq	-56(%rbp), %rdi
	movq	16(%r14), %rsi
	movl	$8, %edx
	callq	_ff_get_line
	movq	16(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcspn
	movb	$0, (%rbx,%rax)
	movq	-56(%rbp), %rdi
	movq	24(%r14), %rsi
	movl	$8, %edx
	callq	_ff_get_line
	movq	24(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcspn
	movb	$0, (%rbx,%rax)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_format_io_close
	movq	8(%r14), %rax
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	16(%r14), %rdx
	cmpb	$0, (%rdx)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_6
## %bb.7:
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	*(%r15)
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_avio_read
	movl	%eax, %r13d
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_format_io_close
	movslq	%r13d, %rax
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.13:
	movl	32(%r14), %edi
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_ff_data_to_hex
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_14
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_14:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rcx
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_2
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	testl	%r13d, %r13d
	jns	LBB0_12
## %bb.11:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_14
	jmp	LBB0_12
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYSIZE,4,2                    ## @KEYSIZE
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error opening key info file %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"no key URI specified in key info file\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"no key file specified in key info file\n"

L_.str.4:                               ## @.str.4
	.asciz	"error opening key file %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"error reading key file %s\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_hls_encryption_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hls_encryption_start
_hls_encryption_start:                  ; @hls_encryption_start
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x8, _KEYSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEYSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x20, x8, #2
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x7fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	x8, [x0]
	ldr	x2, [x19]
Lloh8:
	adrp	x26, _AVIO_FLAG_READ@GOTPAGE
Lloh9:
	ldr	x26, [x26, _AVIO_FLAG_READ@GOTPAGEOFF]
	ldr	w3, [x26]
	sub	x1, x29, #80
	mov	x4, #0
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldur	x0, [x29, #-80]
	ldr	x1, [x19, #8]
	mov	w2, #8
	bl	_ff_get_line
	ldr	x23, [x19, #8]
Lloh10:
	adrp	x24, l_.str.1@PAGE
Lloh11:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	bl	_strcspn
	strb	wzr, [x23, x0]
	ldur	x0, [x29, #-80]
	ldr	x1, [x19, #16]
	mov	w2, #8
	bl	_ff_get_line
	ldr	x23, [x19, #16]
	mov	x0, x23
	mov	x1, x24
	bl	_strcspn
	strb	wzr, [x23, x0]
	ldur	x0, [x29, #-80]
	ldr	x1, [x19, #24]
	mov	w2, #8
	bl	_ff_get_line
	ldr	x23, [x19, #24]
	mov	x0, x23
	mov	x1, x24
	bl	_strcspn
	strb	wzr, [x23, x0]
	sub	x1, x29, #80
	mov	x0, x21
	bl	_ff_format_io_close
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	x2, [x19, #16]
	ldrb	w8, [x2]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	x8, [x21]
	ldr	w3, [x26]
	sub	x1, x29, #80
	mov	x0, x21
	mov	x4, #0
	blr	x8
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldur	x0, [x29, #-80]
	mov	x1, x22
	mov	x2, x20
	bl	_avio_read
	mov	x23, x0
	sub	x1, x29, #80
	mov	x0, x21
	bl	_ff_format_io_close
	cmp	x20, w23, sxtw
	b.ne	LBB0_15
; %bb.5:
	ldr	w0, [x19, #32]
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	bl	_ff_data_to_hex
	mov	w23, #0
	b	LBB0_12
LBB0_6:
	mov	x23, x0
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x19]
	str	x8, [sp, #-16]!
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_av_log
	add	sp, sp, #16
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_av_log
LBB0_11:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
LBB0_12:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.13:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x23, x0
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_15:
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh41:
	adrp	x2, l_.str.5@PAGE
Lloh42:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	sp, sp, #16
	tbz	w23, #31, LBB0_11
; %bb.16:
Lloh43:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_12
	b	LBB0_11
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYSIZE,4,2                    ; @KEYSIZE
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error opening key info file %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"no key URI specified in key info file\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"no key file specified in key info file\n"

l_.str.4:                               ; @.str.4
	.asciz	"error opening key file %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"error reading key file %s\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_hls_encryption_start
.subsections_via_symbols
