	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptx_decode_frame
_ptx_decode_frame:                      ## @ptx_decode_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rcx), %r14
	cmpq	$13, %r14
	jle	LBB0_6
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rbx
	movq	%rbx, %rdi
	callq	_AV_RL16
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	32(%rbx), %rdi
	callq	_AV_RL16
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	40(%rbx), %rdi
	callq	_AV_RL16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	48(%rbx), %rdi
	callq	_AV_RL16
	andl	$-8, %eax
	cmpl	$16, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_AV_PIX_FMT_BGR555LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	cmpq	%r15, %r14
	jl	LBB0_6
## %bb.3:
	leaq	(%rbx,%r14,4), %r14
	cmpl	$44, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_avpriv_request_sample
LBB0_5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r15,4), %r15
	subq	%r15, %r14
	movq	%r14, %rax
	sarq	$2, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rsi,%rsi), %r13d
	cmpq	%r13, %rax
	jge	LBB0_10
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_18
## %bb.11:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.13:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %eax
	movq	(%rcx), %rbx
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	jl	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %r14
	addq	%rax, %r15
	decl	%r12d
	jne	LBB0_14
LBB0_16:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	imull	-44(%rbp), %r13d                ## 4-byte Folded Reload
	addl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jmp	LBB0_9
LBB0_18:
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_19:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Image format not RGB15"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_PIX_FMT_BGR555LE,4,2        ## @AV_PIX_FMT_BGR555LE
L_.str.1:                               ## @.str.1
	.asciz	"offset != 0x2c"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"incomplete packet\n"

	.no_dead_strip	_ptx_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptx_decode_frame
_ptx_decode_frame:                      ; @ptx_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrsw	x26, [x3]
	cmp	w26, #13
	b.le	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x25, [x3, #8]
	mov	x0, x25
	bl	_AV_RL16
	mov	x22, x0
	add	x0, x25, #32
	bl	_AV_RL16
	mov	x27, x0
	add	x0, x25, #40
	bl	_AV_RL16
	mov	x28, x0
	add	x0, x25, #48
	bl	_AV_RL16
	and	w8, w0, #0xfffffff8
	cmp	w8, #16
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _AV_PIX_FMT_BGR555LE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_BGR555LE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w23, w22
	cmp	x26, x23
	b.lt	LBB0_6
; %bb.3:
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	add	x28, x25, x26, lsl #2
	cmp	w22, #44
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
LBB0_5:
	add	x26, x25, x23, lsl #2
	sub	x28, x28, x26
	lsl	w25, w27, #1
	cmp	x25, x28, asr #2
	b.le	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
Lloh9:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x27
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_9
; %bb.11:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.12:
Lloh11:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_16
; %bb.13:
	ldp	x8, x9, [x24]
	ldr	w8, [x8]
	ldr	x24, [x9]
	lsl	x8, x8, #2
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	x27, x25, #2
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x28, asr #2
	b.gt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x24, x8
	sub	x28, x28, x27
	add	x26, x26, x27
	subs	w23, w23, #1
	b.ne	LBB0_14
LBB0_16:
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	madd	w0, w25, w8, w22
	b	LBB0_9
LBB0_17:
	mov	w8, #1
	str	w8, [x21]
Lloh14:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w0, [x19]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Image format not RGB15"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_PIX_FMT_BGR555LE,4,2        ; @AV_PIX_FMT_BGR555LE
l_.str.1:                               ; @.str.1
	.asciz	"offset != 0x2c"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"incomplete packet\n"

	.no_dead_strip	_ptx_decode_frame
.subsections_via_symbols
