	.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	20(%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
	xorl	%eax, %eax
	callq	_avcodec_alloc_frame
	movl	%eax, 8(%r13)
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movl	4(%rcx), %edx
	movq	(%r13), %rdi
	movl	%edx, 12(%rdi)
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdi)
	movq	8(%rax), %rsi
	movq	%rsi, 32(%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, 24(%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rcx
	movl	16(%rcx), %esi
	movq	8(%rcx), %rdx
	movq	%rax, %rdi
	callq	_memcpy
LBB0_5:
	movq	_CODEC_CAP_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.7:
	movq	_CODEC_FLAG_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rdi
	orl	%eax, 16(%rdi)
	jmp	LBB0_8
LBB0_2:
	movq	(%r15), %rdx
	addq	$20, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	(%r13), %rdi
LBB0_8:
	movq	%r14, %rsi
	callq	_avcodec_open
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	(%r13), %rax
	movq	(%rax), %rsi
	movq	_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_12
## %bb.11:
	movq	_PIX_FMT_YUV420P@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, (%rax)
LBB0_12:
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_LOG_DEBUG
	movq	(%r13), %rax
	movl	12(%rax), %ecx
	movq	(%r15), %rsi
	movq	(%rsi), %rdx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %eax
	movl	%eax, (%rdx)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_mmal_format_copy
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_pixfmt_to_encoding
	movq	(%r12), %rcx
	movq	(%rcx), %rdi
	movq	8(%rdi), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rcx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.14:
	cmpq	$0, (%rax)
	je	LBB0_15
LBB0_16:
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EIO@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_DEFAULT_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	cmpq	$0, (%rax)
	jne	LBB0_16
LBB0_15:
	movq	_DEFAULT_HEIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_16
	.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	_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	_PIX_FMT_NONE,8,3               ## @PIX_FMT_NONE
	.comm	_PIX_FMT_YUV420P,8,3            ## @PIX_FMT_YUV420P
L_.str.3:                               ## @.str.3
	.asciz	"avcodec output format %i (%ix%i)"

	.comm	_DEFAULT_WIDTH,8,3              ## @DEFAULT_WIDTH
	.comm	_DEFAULT_HEIGHT,8,3             ## @DEFAULT_HEIGHT
	.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, #20]
	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_6
; %bb.1:
	mov	x0, x21
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_avcodec_alloc_frame
	str	w0, [x23, #8]
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldp	x10, x8, [x8]
	ldr	d0, [x10]
	str	d0, [x9, #8]
	str	x8, [x9, #32]
Lloh3:
	adrp	x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vcos_calloc
	ldr	x8, [x23]
	str	x0, [x8, #24]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w1, [x8, #16]
	ldr	x2, [x8, #8]
	bl	_memcpy
LBB0_4:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _CODEC_CAP_TRUNCATED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CODEC_CAP_TRUNCATED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _CODEC_FLAG_TRUNCATED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CODEC_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x0, [x23]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	add	x8, x8, #20
	stp	x21, x8, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh16:
	adrp	x8, _MMAL_ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_ENXIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	ldr	x0, [x23]
LBB0_8:
	mov	x1, x20
	bl	_avcodec_open
	tbnz	x0, #63, LBB0_14
; %bb.9:
	ldr	x8, [x23]
	ldr	x1, [x8]
Lloh18:
	adrp	x9, _PIX_FMT_NONE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PIX_FMT_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_11
; %bb.10:
Lloh21:
	adrp	x9, _PIX_FMT_YUV420P@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x9]
	str	x1, [x8]
LBB0_11:
	ldp	w3, w2, [x8, #8]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_DEBUG
	ldr	x8, [x23]
	ldr	x1, [x19]
	ldr	x9, [x1]
	ldr	d0, [x8, #8]
	str	d0, [x9]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_mmal_format_copy
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_pixfmt_to_encoding
	mov	x8, x0
	ldr	x9, [x22]
	ldr	x0, [x9]
	ldr	x9, [x0, #8]
	str	w8, [x9, #8]
	ldr	x8, [x9]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_16
; %bb.12:
	ldr	x9, [x8]
	cbz	x9, LBB0_17
LBB0_13:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh26:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
Lloh30:
	adrp	x8, _MMAL_EIO@GOTPAGE
Lloh31:
	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
LBB0_16:
Lloh32:
	adrp	x9, _DEFAULT_WIDTH@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DEFAULT_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_13
LBB0_17:
Lloh35:
	adrp	x9, _DEFAULT_HEIGHT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	_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	_PIX_FMT_NONE,8,3               ; @PIX_FMT_NONE
	.comm	_PIX_FMT_YUV420P,8,3            ; @PIX_FMT_YUV420P
l_.str.3:                               ; @.str.3
	.asciz	"avcodec output format %i (%ix%i)"

	.comm	_DEFAULT_WIDTH,8,3              ; @DEFAULT_WIDTH
	.comm	_DEFAULT_HEIGHT,8,3             ; @DEFAULT_HEIGHT
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_input_port_set_format
.subsections_via_symbols
