	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_input_port_set_format
_avcodec_input_port_set_format:         ## @avcodec_input_port_set_format
	.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	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	8(%r12), %rcx
	movq	(%rcx), %r13
	movl	28(%rax), %edi
	callq	_encoding_to_codecid
	movl	%eax, %ebx
	movq	_CODEC_ID_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_avcodec_find_decoder
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_AVCODEC_MAX_AUDIO_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r13)
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_av_free
	movl	8(%r13), %edi
LBB0_5:
	callq	_av_malloc
	movq	%rax, 16(%r13)
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	movl	12(%rcx), %edx
	movq	(%r13), %rdi
	movl	%edx, 48(%rdi)
	movl	8(%rcx), %edx
	movl	%edx, 44(%rdi)
	movl	4(%rcx), %edx
	movl	%edx, 40(%rdi)
	movl	24(%rax), %edx
	movl	%edx, 36(%rdi)
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rdi)
	movq	(%rax), %rsi
	movq	%rsi, 24(%rdi)
	movq	_FF_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	callq	_vcos_calloc
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rcx
	movl	8(%rcx), %esi
	movq	(%rcx), %rdx
	movq	%rax, %rdi
	callq	_memcpy
LBB0_7:
	movq	_CODEC_CAP_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.9:
	movq	_CODEC_FLAG_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rdi
	orl	%eax, 8(%rdi)
	jmp	LBB0_10
LBB0_2:
	movq	(%r15), %rdx
	addq	$28, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	(%r13), %rdi
LBB0_10:
	movq	%r14, %rsi
	callq	_avcodec_open
	testq	%rax, %rax
	js	LBB0_11
## %bb.12:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	_AV_SAMPLE_FMT_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_14:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	(%r15), %rsi
	callq	_mmal_format_copy
	movq	(%r13), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_LOG_DEBUG
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_samplefmt_to_encoding
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_samplefmt_to_sample_size
	movq	(%r12), %rcx
	movq	(%rcx), %rdi
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EIO@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODEC_ID_NONE,4,2              ## @CODEC_ID_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffmpeg codec id %d (for %4.4s) not recognized"

	.comm	_MMAL_ENXIO,4,2                 ## @MMAL_ENXIO
	.comm	_AVCODEC_MAX_AUDIO_FRAME_SIZE,4,2 ## @AVCODEC_MAX_AUDIO_FRAME_SIZE
	.comm	_FF_INPUT_BUFFER_PADDING_SIZE,8,3 ## @FF_INPUT_BUFFER_PADDING_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"avcodec extradata"

	.comm	_CODEC_CAP_TRUNCATED,4,2        ## @CODEC_CAP_TRUNCATED
	.comm	_CODEC_FLAG_TRUNCATED,4,2       ## @CODEC_FLAG_TRUNCATED
L_.str.2:                               ## @.str.2
	.asciz	"could not open codec"

	.comm	_MMAL_EIO,4,2                   ## @MMAL_EIO
	.comm	_AV_SAMPLE_FMT_NONE,8,3         ## @AV_SAMPLE_FMT_NONE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ## @AV_SAMPLE_FMT_S16
L_.str.3:                               ## @.str.3
	.asciz	"avcodec output format %i"

	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_avcodec_input_port_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avcodec_input_port_set_format
_avcodec_input_port_set_format:         ; @avcodec_input_port_set_format
	.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
	ldp	x8, x22, [x0]
	ldr	x9, [x22, #8]
	ldr	x23, [x9]
	ldr	w0, [x8, #28]
	bl	_encoding_to_codecid
	mov	x21, x0
Lloh0:
	adrp	x8, _CODEC_ID_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODEC_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _AVCODEC_MAX_AUDIO_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVCODEC_MAX_AUDIO_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	w0, [x23, #8]
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_av_free
	ldr	w0, [x23, #8]
LBB0_4:
	bl	_av_malloc
	str	x0, [x23, #16]
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	ldr	w10, [x9, #12]
	ldr	x11, [x23]
	str	w10, [x11, #48]
	ldur	d0, [x9, #4]
	str	d0, [x11, #40]
	ldr	w10, [x8, #24]
	ldr	w9, [x9]
	stp	w9, w10, [x11, #32]
	ldr	x8, [x8]
	str	x8, [x11, #24]
Lloh6:
	adrp	x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vcos_calloc
	ldr	x8, [x23]
	str	x0, [x8, #16]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	bl	_memcpy
LBB0_6:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _CODEC_CAP_TRUNCATED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CODEC_CAP_TRUNCATED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh14:
	adrp	x8, _CODEC_FLAG_TRUNCATED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CODEC_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x0, [x23]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	add	x8, x8, #28
	stp	x21, x8, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh19:
	adrp	x8, _MMAL_ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMAL_ENXIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
	ldr	x0, [x23]
LBB0_10:
	mov	x1, x20
	bl	_avcodec_open
	tbnz	x0, #63, LBB0_14
; %bb.11:
	ldr	x8, [x23]
	ldr	x9, [x8]
Lloh21:
	adrp	x10, _AV_SAMPLE_FMT_NONE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AV_SAMPLE_FMT_NONE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
Lloh24:
	adrp	x9, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_13:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	x1, [x19]
	bl	_mmal_format_copy
	ldr	x8, [x23]
	ldr	x1, [x8]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_DEBUG
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_samplefmt_to_encoding
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	str	w0, [x8, #8]
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_samplefmt_to_sample_size
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldp	x10, x9, [x8]
	ldr	x9, [x9]
	str	w0, [x9]
	ldr	x9, [x10]
	mov	x0, x8
	blr	x9
Lloh29:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
Lloh33:
	adrp	x8, _MMAL_EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MMAL_EIO@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CODEC_ID_NONE,4,2              ; @CODEC_ID_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffmpeg codec id %d (for %4.4s) not recognized"

	.comm	_MMAL_ENXIO,4,2                 ; @MMAL_ENXIO
	.comm	_AVCODEC_MAX_AUDIO_FRAME_SIZE,4,2 ; @AVCODEC_MAX_AUDIO_FRAME_SIZE
	.comm	_FF_INPUT_BUFFER_PADDING_SIZE,8,3 ; @FF_INPUT_BUFFER_PADDING_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"avcodec extradata"

	.comm	_CODEC_CAP_TRUNCATED,4,2        ; @CODEC_CAP_TRUNCATED
	.comm	_CODEC_FLAG_TRUNCATED,4,2       ; @CODEC_FLAG_TRUNCATED
l_.str.2:                               ; @.str.2
	.asciz	"could not open codec"

	.comm	_MMAL_EIO,4,2                   ; @MMAL_EIO
	.comm	_AV_SAMPLE_FMT_NONE,8,3         ; @AV_SAMPLE_FMT_NONE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ; @AV_SAMPLE_FMT_S16
l_.str.3:                               ; @.str.3
	.asciz	"avcodec output format %i"

	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_input_port_set_format
.subsections_via_symbols
