	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_send_picture
_avcodec_send_picture:                  ## @avcodec_send_picture
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	64(%rbx), %rax
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_6
## %bb.1:
	movq	8(%rax), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_6
## %bb.2:
	movq	16(%rax), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_6
## %bb.3:
	movl	48(%rbx), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	movq	56(%rbx), %rdi
	movq	16(%rbx), %rsi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	28(%rax), %r9d
	movl	32(%rax), %r8d
	callq	_avpicture_layout
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	%eax, (%r15)
	movl	44(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	movl	40(%rbx), %eax
	movq	8(%r15), %rcx
	movl	%eax, 16(%rcx)
	movq	24(%rbx), %rax
	movq	32(%rbx), %rdx
	movq	(%rcx), %rsi
	movq	8(%rcx), %rcx
	movq	(%rdx), %rdi
	movq	%rdi, (%rcx)
	movl	(%rax), %edi
	movl	%edi, (%rsi)
	movq	8(%rdx), %rdi
	movq	%rdi, 8(%rcx)
	movl	4(%rax), %edi
	movl	%edi, 4(%rsi)
	movq	16(%rdx), %rdx
	movq	%rdx, 16(%rcx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_avcodec_send_event_format_changed
LBB0_7:
	movq	_MMAL_EAGAIN@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	48(%rbx), %edi
	movq	%r15, %rsi
	callq	_mmal_queue_put_back
	movq	16(%rbx), %rsi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	28(%r15), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_mmal_event_error_send
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EAGAIN,4,2                ## @MMAL_EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avpicture_layout failed: %i, %i, %i, %i"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_avcodec_send_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avcodec_send_picture
_avcodec_send_picture:                  ; @avcodec_send_picture
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22, #64]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x8, #8]
	ldr	x10, [x22, #8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x8, #16]
	ldr	x9, [x22, #16]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x22, #48]
	bl	_mmal_queue_get
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	x0, [x22, #56]
	ldp	x3, x1, [x22, #8]
	ldr	x2, [x22]
	ldp	w5, w4, [x21, #28]
	bl	_avpicture_layout
	tbnz	w0, #31, LBB0_9
; %bb.5:
	str	w0, [x21]
	ldp	w9, w8, [x22, #40]
	str	w8, [x21, #24]
	str	xzr, [x21, #16]
	ldr	x8, [x21, #8]
	str	w9, [x8, #16]
	ldp	x10, x9, [x22, #24]
	ldp	x8, x11, [x8]
	ldr	x12, [x9]
	str	x12, [x11]
	ldr	w12, [x10]
	str	w12, [x8]
	ldr	x12, [x9, #8]
	str	x12, [x11, #8]
	ldr	w12, [x10, #4]
	str	w12, [x8, #4]
	ldr	x9, [x9, #16]
	str	x9, [x11, #16]
	ldr	w9, [x10, #8]
	str	w9, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_mmal_port_buffer_header_callback
Lloh0:
	adrp	x19, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_avcodec_send_event_format_changed
LBB0_7:
Lloh2:
	adrp	x19, _MMAL_EAGAIN@GOTPAGE
Lloh3:
	ldr	x19, [x19, _MMAL_EAGAIN@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x22, #48]
	mov	x1, x21
	bl	_mmal_queue_put_back
	ldp	x3, x1, [x22, #8]
	ldr	x2, [x22]
	ldr	w4, [x21, #28]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh6:
	adrp	x19, _MMAL_EINVAL@GOTPAGE
Lloh7:
	ldr	x19, [x19, _MMAL_EINVAL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mmal_event_error_send
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EAGAIN,4,2                ; @MMAL_EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avpicture_layout failed: %i, %i, %i, %i"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_send_picture
.subsections_via_symbols
