	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_send_frame
_avcodec_send_frame:                    ## @avcodec_send_frame
	.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	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	56(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	(%rbx), %ecx
	jne	LBB0_6
## %bb.1:
	movl	4(%rax), %ecx
	cmpl	4(%rbx), %ecx
	jne	LBB0_6
## %bb.2:
	movq	8(%rax), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_6
## %bb.3:
	movl	52(%rbx), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r14
	movl	(%rbx), %ecx
	movl	16(%rbx), %edx
	movl	(%rax), %eax
	movl	24(%r14), %edi
	cmpl	%eax, %edx
	cmovll	%edx, %eax
	cltd
	idivl	%ecx
	shll	$3, %eax
	movl	20(%rbx), %esi
	cltd
	idivl	%esi
	movl	%eax, %r15d
	imull	%ecx, %esi
	imull	%eax, %esi
	leal	7(%rsi), %r13d
	testl	%esi, %esi
	cmovnsl	%esi, %r13d
	sarl	$3, %r13d
	movl	%r13d, 4(%r14)
	movq	24(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	$0, 32(%r14)
	movl	32(%rbx), %esi
	movl	%r13d, %edx
	callq	_memcpy
	subl	%r13d, 16(%rbx)
	addl	%r13d, 32(%rbx)
	movq	24(%rbx), %rcx
	movq	_MMAL_TIME_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_10
## %bb.5:
	movl	48(%rbx), %ecx
	jmp	LBB0_11
LBB0_6:
	movq	%r12, %rsi
	callq	_avcodec_send_event_format_changed
LBB0_7:
	movq	_MMAL_EAGAIN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rcx, 40(%rbx)
	xorl	%ecx, %ecx
LBB0_11:
	movq	%rax, 24(%rbx)
	addl	%r15d, %ecx
	movl	%ecx, 48(%rbx)
	movq	8(%r14), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_13
## %bb.12:
	imull	$1000000, %ecx, %eax            ## imm = 0xF4240
	cltd
	idivl	4(%rbx)
	movslq	%eax, %rdx
	addq	40(%rbx), %rdx
	movq	%rdx, 8(%r14)
LBB0_13:
	movq	%rdx, 16(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EAGAIN,4,2                ## @MMAL_EAGAIN
	.comm	_MMAL_TIME_UNKNOWN,8,3          ## @MMAL_TIME_UNKNOWN
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_avcodec_send_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avcodec_send_frame
_avcodec_send_frame:                    ; @avcodec_send_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22, #56]
	ldr	w9, [x8]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x8, #4]
	ldr	w10, [x22, #4]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x22, #52]
	bl	_mmal_queue_get
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	w8, [x0]
	ldp	w9, w10, [x22, #16]
	cmp	w9, w8
	csel	w8, w9, w8, lt
	ldr	w9, [x22]
	sdiv	w8, w8, w9
	lsl	w8, w8, #3
	sdiv	w23, w8, w10
	mul	w8, w10, w9
	mul	w8, w8, w23
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w21, w8, #3
	str	w21, [x0, #4]
	ldr	x8, [x22, #24]
	str	x8, [x0, #8]
	str	xzr, [x0, #32]
	ldr	w0, [x0, #24]
	ldr	w1, [x22, #32]
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x22, #16]
	sub	w8, w8, w21
	str	w8, [x22, #16]
	ldr	w8, [x22, #32]
	add	w8, w8, w21
	str	w8, [x22, #32]
	ldr	x10, [x22, #24]
Lloh0:
	adrp	x8, _MMAL_TIME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_TIME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_9
; %bb.5:
	ldr	w9, [x22, #48]
	b	LBB0_10
LBB0_6:
	mov	x1, x19
	bl	_avcodec_send_event_format_changed
LBB0_7:
Lloh3:
	adrp	x8, _MMAL_EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EAGAIN@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w9, #0
	str	x10, [x22, #40]
LBB0_10:
	str	x8, [x22, #24]
	add	w10, w9, w23
	str	w10, [x22, #48]
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x22, #40]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w9, w10, w9
	ldr	w10, [x22, #4]
	sdiv	w9, w9, w10
	add	x9, x8, w9, sxtw
	str	x9, [x20, #8]
LBB0_12:
	str	x9, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
Lloh5:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EAGAIN,4,2                ; @MMAL_EAGAIN
	.comm	_MMAL_TIME_UNKNOWN,8,3          ; @MMAL_TIME_UNKNOWN
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_send_frame
.subsections_via_symbols
