	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_targa_y216
_mov_read_targa_y216:                   ## @mov_read_targa_y216
	.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
	movq	_AV_CODEC_ID_TARGA_Y216@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mov_read_extradata
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rbx
	cmpl	$40, (%rbx)
	jl	LBB0_4
## %bb.3:
	movl	$144, %edi
	addq	8(%rbx), %rdi
	callq	_AV_RB16
	movq	%rax, 24(%rbx)
	movl	$152, %edi
	addq	8(%rbx), %rdi
	callq	_AV_RB16
	movq	%rax, 16(%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_TARGA_Y216,4,2     ## @AV_CODEC_ID_TARGA_Y216
	.no_dead_strip	_mov_read_targa_y216
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_targa_y216
_mov_read_targa_y216:                   ; @mov_read_targa_y216
	.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	x20, x0
Lloh0:
	adrp	x8, _AV_CODEC_ID_TARGA_Y216@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_TARGA_Y216@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_mov_read_extradata
	mov	x19, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x20]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_1
; %bb.3:
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x20, [x8]
	ldr	w8, [x20]
	cmp	w8, #40
	b.lt	LBB0_1
; %bb.4:
	ldr	x8, [x20, #8]
	add	x0, x8, #144
	bl	_AV_RB16
	str	x0, [x20, #24]
	ldr	x8, [x20, #8]
	add	x0, x8, #152
	bl	_AV_RB16
	str	x0, [x20, #16]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_TARGA_Y216,4,2     ; @AV_CODEC_ID_TARGA_Y216
	.no_dead_strip	_mov_read_targa_y216
.subsections_via_symbols
