	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_encode_slice_header   ## -- Begin function ff_mpeg1_encode_slice_header
	.p2align	4, 0x90
_ff_mpeg1_encode_slice_header:          ## @ff_mpeg1_encode_slice_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$2801, 8(%rbx)                  ## imm = 0xAF1
	jl	LBB0_3
## %bb.2:
	movq	_SLICE_MIN_START_CODE@GOTPCREL(%rip), %rax
	movl	12(%rbx), %esi
	andl	$127, %esi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_put_header
	leaq	16(%rbx), %rdi
	movl	12(%rbx), %edx
	sarl	$7, %edx
	movl	$3, %esi
	callq	_put_bits
	jmp	LBB0_4
LBB0_3:
	movq	_SLICE_MIN_START_CODE@GOTPCREL(%rip), %rax
	movslq	12(%rbx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_put_header
LBB0_4:
	movq	%rbx, %rdi
	callq	_put_qscale
	addq	$16, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_SLICE_MIN_START_CODE,8,3       ## @SLICE_MIN_START_CODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_encode_slice_header   ; -- Begin function ff_mpeg1_encode_slice_header
	.p2align	2
_ff_mpeg1_encode_slice_header:          ; @ff_mpeg1_encode_slice_header
	.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]
Lloh0:
	adrp	x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #2801
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SLICE_MIN_START_CODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLICE_MIN_START_CODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x19, #12]
	and	x9, x9, #0x7f
	add	x1, x8, x9
	mov	x0, x19
	bl	_put_header
	add	x0, x19, #16
	ldr	w8, [x19, #12]
	asr	w2, w8, #7
	mov	w1, #3
	bl	_put_bits
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SLICE_MIN_START_CODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SLICE_MIN_START_CODE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #12]
	add	x1, x8, x9
	mov	x0, x19
	bl	_put_header
LBB0_4:
	mov	x0, x19
	bl	_put_qscale
	add	x0, x19, #16
	mov	w1, #1
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_SLICE_MIN_START_CODE,8,3       ; @SLICE_MIN_START_CODE
.subsections_via_symbols
