	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tdsc_parse_tdsf
_tdsc_parse_tdsf:                       ## @tdsc_parse_tdsf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r15d
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movq	_BITMAPINFOHEADER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	cmpl	$24, %eax
	jne	LBB0_1
## %bb.4:
	negl	%r12d
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_bytestream2_skip
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %ecx
	jne	LBB0_6
## %bb.5:
	cmpl	%r12d, %r8d
	jne	LBB0_6
## %bb.8:
	movl	%ebx, (%r14)
	movq	8(%r14), %rdi
	movl	%ebx, (%rdi)
	movl	%r12d, 4(%r14)
	movl	%r12d, 4(%rdi)
	testl	%r15d, %r15d
	jne	LBB0_11
	jmp	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r9d
	movl	4(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movl	%ebx, (%r14)
	movq	8(%r14), %rdi
	movl	%ebx, (%rdi)
	movl	%r12d, 4(%r14)
	movl	%r12d, 4(%rdi)
LBB0_9:
	movl	$32, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tdsc_decode_tiles              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAPINFOHEADER_SIZE,4,2      ## @BITMAPINFOHEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Size update %dx%d -> %d%d.\n"

	.no_dead_strip	_tdsc_parse_tdsf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tdsc_parse_tdsf
_tdsc_parse_tdsf:                       ; @tdsc_parse_tdsf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #8]
	ldr	w25, [x8]
	add	x23, x24, #16
	mov	x0, x23
	bl	_bytestream2_get_le32
Lloh0:
	adrp	x8, _BITMAPINFOHEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAPINFOHEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x21, x0
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x22, x0
	mov	x0, x23
	bl	_bytestream2_get_le16
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x23
	bl	_bytestream2_get_le16
	cmp	w0, #24
	b.ne	LBB0_6
; %bb.3:
	neg	w22, w22
	mov	x0, x23
	mov	w1, #24
	bl	_bytestream2_skip
	ldp	w3, w4, [x20]
	cmp	w3, w21
	b.ne	LBB0_8
; %bb.4:
	cmp	w4, w22
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x24, #8]
	stp	w21, w22, [x24]
	stp	w21, w22, [x0]
	cbnz	w25, LBB0_11
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh6:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	w5, w6, [x24]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_7
; %bb.9:
	ldr	x0, [x24, #8]
	stp	w21, w22, [x24]
	stp	w21, w22, [x0]
LBB0_10:
	mov	w1, #32
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_7
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tdsc_decode_tiles
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAPINFOHEADER_SIZE,4,2      ; @BITMAPINFOHEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Size update %dx%d -> %d%d.\n"

	.no_dead_strip	_tdsc_parse_tdsf
.subsections_via_symbols
