	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_srtp_set_crypto             ## -- Begin function ff_srtp_set_crypto
	.p2align	4, 0x90
_ff_srtp_set_crypto:                    ## @ff_srtp_set_crypto
	.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	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_ff_srtp_free
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.10:
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movabsq	$42949672970, %rax              ## imm = 0xA0000000A
LBB0_7:
	movq	%rax, (%rbx)
	leaq	-160(%rbp), %rdi
	movq	%r14, %rsi
	movl	$120, %edx
	callq	_av_base64_decode
	cmpl	$120, %eax
	jne	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	callq	_av_aes_alloc
	movl	%eax, 16(%rbx)
	movq	_AV_HMAC_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_hmac_alloc
	movl	%eax, 44(%rbx)
	cmpl	$0, 16(%rbx)
	je	LBB0_13
## %bb.12:
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	movl	40(%rbx), %edi
	leaq	-160(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	12(%rbx), %edi
	leaq	-96(%rbp), %rsi
	movl	$14, %edx
	callq	_memcpy
	movl	16(%rbx), %edi
	movl	40(%rbx), %esi
	xorl	%r14d, %r14d
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_av_aes_init
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	36(%rbx), %ecx
	xorl	%edx, %edx
	movl	$4, %r8d
	callq	_derive_key
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	32(%rbx), %ecx
	movl	$2, %edx
	movl	$4, %r8d
	callq	_derive_key
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	28(%rbx), %ecx
	movl	$1, %edx
	movl	$4, %r8d
	callq	_derive_key
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	24(%rbx), %ecx
	movl	$3, %edx
	movl	$4, %r8d
	callq	_derive_key
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	20(%rbx), %ecx
	movl	$5, %edx
	movl	$4, %r8d
	callq	_derive_key
	movl	16(%rbx), %edi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %esi
	movl	$4, %edx
	movl	$4, %r8d
	callq	_derive_key
	jmp	LBB0_16
LBB0_8:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	jmp	LBB0_7
LBB0_6:
	movabsq	$42949672964, %rax              ## imm = 0xA00000004
	jmp	LBB0_7
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AES_CM_128_HMAC_SHA1_80"

L_.str.1:                               ## @.str.1
	.asciz	"SRTP_AES128_CM_HMAC_SHA1_80"

L_.str.2:                               ## @.str.2
	.asciz	"AES_CM_128_HMAC_SHA1_32"

L_.str.3:                               ## @.str.3
	.asciz	"SRTP_AES128_CM_HMAC_SHA1_32"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"SRTP Crypto suite %s not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"Incorrect amount of SRTP params\n"

	.comm	_AV_HMAC_SHA1,4,2               ## @AV_HMAC_SHA1
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ff_srtp_set_crypto
lCPI0_0:
	.long	4                               ; 0x4
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_srtp_set_crypto
	.p2align	2
_ff_srtp_set_crypto:                    ; @ff_srtp_set_crypto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #144]              ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_ff_srtp_free
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	movi.2s	v8, #10
	cbz	w0, LBB0_8
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.4:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #144]              ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_AVERROR
LBB0_6:
	movi.2s	v8, #4
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
LBB0_8:
	str	d8, [x19]
	add	x0, sp, #16
	mov	x1, x20
	mov	w2, #120
	bl	_av_base64_decode
	cmp	w0, #120
	b.ne	LBB0_12
; %bb.9:
	bl	_av_aes_alloc
	str	w0, [x19, #16]
Lloh24:
	adrp	x8, _AV_HMAC_SHA1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_HMAC_SHA1@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_av_hmac_alloc
	str	w0, [x19, #44]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_13
; %bb.10:
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #40]
	add	x20, sp, #16
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x19, #12]
	add	x1, x20, #64
	mov	w2, #14
	bl	_memcpy
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #40]
	mov	w2, #128
	mov	w3, #0
	bl	_av_aes_init
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #36]
	mov	w2, #0
	mov	w4, #4
	bl	_derive_key
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #32]
	mov	w2, #2
	mov	w4, #4
	bl	_derive_key
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #28]
	mov	w2, #1
	mov	w4, #4
	bl	_derive_key
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #24]
	mov	w2, #3
	mov	w4, #4
	bl	_derive_key
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #20]
	mov	w2, #5
	mov	w4, #4
	bl	_derive_key
	ldp	w1, w0, [x19, #12]
	ldr	w3, [x19, #8]
	mov	w2, #4
	mov	w4, #4
	bl	_derive_key
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh27:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #144]              ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AES_CM_128_HMAC_SHA1_80"

l_.str.1:                               ; @.str.1
	.asciz	"SRTP_AES128_CM_HMAC_SHA1_80"

l_.str.2:                               ; @.str.2
	.asciz	"AES_CM_128_HMAC_SHA1_32"

l_.str.3:                               ; @.str.3
	.asciz	"SRTP_AES128_CM_HMAC_SHA1_32"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"SRTP Crypto suite %s not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"Incorrect amount of SRTP params\n"

	.comm	_AV_HMAC_SHA1,4,2               ; @AV_HMAC_SHA1
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
