	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_output_port_set_format
_avcodec_output_port_set_format:        ## @avcodec_output_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	48(%rbx), %rax
	movl	(%rax), %edi
	callq	_pixfmt_to_encoding
	movq	16(%r14), %rcx
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	48(%rbx), %rax
	movl	(%rax), %edx
	movl	%edx, 40(%rbx)
	movq	8(%rcx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 36(%rbx)
	movl	(%rax), %r8d
	movl	%r8d, 32(%rbx)
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_avpicture_fill
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	movq	24(%rbx), %rcx
	movl	$1, 8(%rbx)
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	$2, 8(%rbx)
	cmpl	$0, 4(%rcx)
	je	LBB0_5
## %bb.4:
	movl	$3, 8(%rbx)
	cmpl	$1, 8(%rcx)
	movl	$4, %ecx
	sbbl	$0, %ecx
	movl	%ecx, 8(%rbx)
LBB0_5:
	movq	%rax, (%r14)
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	$0, 16(%rax)
	callq	_mmal_component_action_trigger
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_avcodec_output_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_output_port_set_format
_avcodec_output_port_set_format:        ; @avcodec_output_port_set_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x20, #48]
	ldr	w0, [x8]
	bl	_pixfmt_to_encoding
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cmp	x0, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x20, #48]
	ldr	w2, [x9]
	str	w2, [x20, #40]
	ldr	x8, [x8, #8]
	ldp	w4, w3, [x8]
	stp	w4, w3, [x20, #32]
	add	x0, x20, #24
	mov	w1, #0
	bl	_avpicture_fill
	str	x0, [x20]
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	x8, [x20, #24]
	mov	w9, #1
	str	w9, [x20, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.3:
	mov	w9, #2
	str	w9, [x20, #8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_5
; %bb.4:
	mov	w9, #3
	str	w9, [x20, #8]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w9, ne
	str	w8, [x20, #8]
LBB0_5:
	str	x0, [x19]
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	str	xzr, [x8, #16]
	bl	_mmal_component_action_trigger
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_output_port_set_format
.subsections_via_symbols
