	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_rotation
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4076800000000000              ## double 360
LCPI0_2:
	.quad	0x3f647ae147ae147b              ## double 0.0025000000000000001
LCPI0_3:
	.quad	0x4056800000000000              ## double 90
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_rotation
	.p2align	4, 0x90
_get_rotation:                          ## @get_rotation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_AV_PKT_DATA_DISPLAYMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_av_stream_get_side_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_av_display_rotation_get
	xorpd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_3
LBB0_1:
	xorpd	%xmm0, %xmm0
LBB0_3:
	movapd	%xmm0, -16(%rbp)                ## 16-byte Spill
	divsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	callq	_floor
	imull	$360, %eax, %eax                ## imm = 0x168
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movapd	-16(%rbp), %xmm1                ## 16-byte Reload
	subsd	%xmm0, %xmm1
	movapd	%xmm1, -16(%rbp)                ## 16-byte Spill
	movapd	%xmm1, %xmm0
	divsd	LCPI0_3(%rip), %xmm0
	callq	_round
	imull	$90, %eax, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movapd	-16(%rbp), %xmm0                ## 16-byte Reload
	subsd	%xmm1, %xmm0
	callq	_fabs
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_5:
	movaps	-16(%rbp), %xmm0                ## 16-byte Reload
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_DISPLAYMATRIX,4,2  ## @AV_PKT_DATA_DISPLAYMATRIX
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Odd rotation angle.\nIf you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_rotation                   ; -- Begin function get_rotation
	.p2align	2
_get_rotation:                          ; @get_rotation
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -24
	.cfi_offset b9, -32
Lloh0:
	adrp	x8, _AV_PKT_DATA_DISPLAYMATRIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_DATA_DISPLAYMATRIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_av_stream_get_side_data
	cbz	x0, LBB0_2
; %bb.1:
	bl	_av_display_rotation_get
	fneg	d8, d0
	b	LBB0_3
LBB0_2:
	movi	d8, #0000000000000000
LBB0_3:
	mov	x8, #140737488355328
	movk	x8, #16502, lsl #48
	fmov	d0, x8
	fdiv	d0, d8, d0
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16228, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	bl	_floor
	mov	w8, #360
	mul	w8, w0, w8
	scvtf	d0, w8
	fsub	d8, d8, d0
	mov	x8, #140737488355328
	movk	x8, #16470, lsl #48
	fmov	d0, x8
	fdiv	d0, d8, d0
	bl	_round
	mov	w8, #90
	mul	w8, w0, w8
	scvtf	d0, w8
	fsub	d0, d8, d0
	bl	_fabs
	cmp	w0, #3
	b.lt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
LBB0_5:
	fmov	d0, d8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_DISPLAYMATRIX,4,2  ; @AV_PKT_DATA_DISPLAYMATRIX
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Odd rotation angle.\nIf you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)"

.subsections_via_symbols
