	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_lang_to_iso639          ## -- Begin function ff_mov_lang_to_iso639
	.p2align	4, 0x90
_ff_mov_lang_to_iso639:                 ## @ff_mov_lang_to_iso639
	.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
	movl	%edi, %ebx
	xorl	%r15d, %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$1024, %ebx                     ## imm = 0x400
	jb	LBB0_3
## %bb.1:
	cmpl	$32767, %ebx                    ## imm = 0x7FFF
	je	LBB0_3
## %bb.2:
	movl	%ebx, %eax
	andb	$31, %al
	orb	$96, %al
	movb	%al, 2(%r14)
	movl	%ebx, %eax
	shrl	$5, %eax
	andb	$31, %al
	orb	$96, %al
	movb	%al, 1(%r14)
	shrl	$10, %ebx
	andb	$31, %bl
	orb	$96, %bl
	movb	%bl, (%r14)
	jmp	LBB0_6
LBB0_3:
	movq	_mov_mdhd_language_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%ebx, %eax
	jbe	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mov_mdhd_language_map,8,3      ## @mov_mdhd_language_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_lang_to_iso639          ; -- Begin function ff_mov_lang_to_iso639
	.p2align	2
_ff_mov_lang_to_iso639:                 ; @ff_mov_lang_to_iso639
	.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
	mov	x0, x1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cmp	w20, #1024
	b.lo	LBB0_3
; %bb.1:
	mov	w8, #32767
	cmp	w20, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #96
	mov	w9, #96
	bfxil	w9, w20, #0, #5
	strb	w9, [x19, #2]
	mov	w9, #96
	bfxil	w9, w20, #5, #5
	strb	w9, [x19, #1]
	bfxil	w8, w20, #10, #5
	strb	w8, [x19]
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x21, _mov_mdhd_language_map@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mov_mdhd_language_map@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w20
	b.ls	LBB0_7
; %bb.4:
	ldr	x8, [x21]
	ldr	x1, [x8, w20, uxtw #3]
	ldr	w8, [x1]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mov_mdhd_language_map,8,3      ; @mov_mdhd_language_map
.subsections_via_symbols
