	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flv_encode_picture_header   ## -- Begin function ff_flv_encode_picture_header
	.p2align	4, 0x90
_ff_flv_encode_picture_header:          ## @ff_flv_encode_picture_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	48(%rdi), %r14
	movq	%r14, %rdi
	callq	_avpriv_align_put_bits
	movq	%r14, %rdi
	movl	$17, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%rbx), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	64(%rbx), %ecx
	movq	56(%rbx), %rsi
	imull	(%rsi), %ecx
	movl	%ecx, %eax
	shll	$5, %eax
	subl	%ecx, %eax
	subl	%ecx, %eax
	cltd
	idivl	4(%rsi)
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movl	4(%rbx), %eax
	cmpl	$175, %eax
	jle	LBB0_1
## %bb.4:
	cmpl	$176, %eax
	je	LBB0_13
## %bb.5:
	cmpl	$320, %eax                      ## imm = 0x140
	je	LBB0_15
## %bb.6:
	cmpl	$352, %eax                      ## imm = 0x160
	jne	LBB0_9
## %bb.7:
	movl	$2, %edx
	cmpl	$288, 8(%rbx)                   ## imm = 0x120
	je	LBB0_14
	jmp	LBB0_16
LBB0_1:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$160, %eax
	jne	LBB0_9
## %bb.3:
	movl	8(%rbx), %eax
	movl	$6, %edx
	cmpl	$120, %eax
	je	LBB0_14
LBB0_11:
	cmpl	$255, %eax
	jle	LBB0_12
	jmp	LBB0_16
LBB0_13:
	movl	8(%rbx), %eax
	movl	$3, %edx
	cmpl	$144, %eax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_15:
	movl	$5, %edx
	cmpl	$240, 8(%rbx)
	je	LBB0_14
	jmp	LBB0_16
LBB0_8:
	movl	8(%rbx), %eax
	movl	$4, %edx
	cmpl	$96, %eax
	jne	LBB0_11
LBB0_14:
	movq	%r14, %rdi
	movl	$3, %esi
	jmp	LBB0_17
LBB0_9:
	cmpl	$255, %eax
	jg	LBB0_16
## %bb.10:
	movl	8(%rbx), %eax
	cmpl	$255, %eax
	jg	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	jmp	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$16, %esi
LBB0_17:
	callq	_put_bits
	movq	16(%rbx), %rax
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	cmpq	$0, 40(%rbx)
	jne	LBB0_18
## %bb.19:
	movq	_ff_mpeg1_dc_scale_table@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_ff_aic_dc_scale_table@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	%eax, 32(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_ff_aic_dc_scale_table,4,2      ## @ff_aic_dc_scale_table
	.comm	_ff_mpeg1_dc_scale_table,4,2    ## @ff_mpeg1_dc_scale_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flv_encode_picture_header   ; -- Begin function ff_flv_encode_picture_header
	.p2align	2
_ff_flv_encode_picture_header:          ; @ff_flv_encode_picture_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
	add	x20, x0, #48
	mov	x0, x20
	bl	_avpriv_align_put_bits
	mov	x0, x20
	mov	w1, #17
	mov	w2, #1
	bl	_put_bits
	ldr	w8, [x19]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	ldr	w8, [x19, #64]
	ldr	x9, [x19, #56]
	ldp	w10, w9, [x9]
	mul	w8, w8, w10
	mov	w10, #30
	mul	w8, w8, w10
	sdiv	w8, w8, w9
	and	w2, w8, #0xff
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x19, #4]
	cmp	w8, #175
	b.le	LBB0_6
; %bb.1:
	cmp	w8, #176
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #320
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #352
	b.ne	LBB0_17
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #288
	b.ne	LBB0_21
; %bb.5:
	mov	w2, #2
	b	LBB0_16
LBB0_6:
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.7:
	cmp	w8, #160
	b.ne	LBB0_17
; %bb.8:
	ldr	w8, [x19, #8]
	cmp	w8, #120
	b.ne	LBB0_19
; %bb.9:
	mov	w2, #6
	b	LBB0_16
LBB0_10:
	ldr	w8, [x19, #8]
	cmp	w8, #144
	b.ne	LBB0_19
; %bb.11:
	mov	w2, #3
	b	LBB0_16
LBB0_12:
	ldr	w8, [x19, #8]
	cmp	w8, #240
	b.ne	LBB0_21
; %bb.13:
	mov	w2, #5
	b	LBB0_16
LBB0_14:
	ldr	w8, [x19, #8]
	cmp	w8, #96
	b.ne	LBB0_19
; %bb.15:
	mov	w2, #4
LBB0_16:
	mov	x0, x20
	mov	w1, #3
	b	LBB0_22
LBB0_17:
	cmp	w8, #255
	b.gt	LBB0_21
; %bb.18:
	ldr	w8, [x19, #8]
LBB0_19:
	cmp	w8, #255
	b.gt	LBB0_21
; %bb.20:
	mov	x0, x20
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #8
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	mov	w1, #3
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #16
LBB0_22:
	bl	_put_bits
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
Lloh3:
	adrp	x8, _ff_mpeg1_dc_scale_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_mpeg1_dc_scale_table@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ff_aic_dc_scale_table@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ff_aic_dc_scale_table@GOTPAGEOFF]
	ldr	x10, [x19, #40]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	stp	w8, w8, [x19, #28]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_ff_aic_dc_scale_table,4,2      ; @ff_aic_dc_scale_table
	.comm	_ff_mpeg1_dc_scale_table,4,2    ; @ff_mpeg1_dc_scale_table
.subsections_via_symbols
