	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_get_video_rotate_degrees   ## -- Begin function ffp_get_video_rotate_degrees
	.p2align	4, 0x90
_ffp_get_video_rotate_degrees:          ## @ffp_get_video_rotate_degrees
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	(%rax), %edi
	callq	_get_rotation
	movl	%eax, %edi
	callq	_fabs
	movl	%eax, %edi
	callq	_round
	cltq
	imulq	$-1240768329, %rax, %rcx        ## imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$8, %ecx
	addl	%edx, %ecx
	imull	$360, %ecx, %ecx                ## imm = 0x168
	subl	%ecx, %eax
	movl	%eax, %esi
	negl	%esi
	cmovsl	%eax, %esi
	cmpl	$179, %esi
	jg	LBB0_5
## %bb.2:
	testl	%esi, %esi
	je	LBB0_10
## %bb.3:
	cmpl	$90, %esi
	je	LBB0_10
	jmp	LBB0_8
LBB0_5:
	cmpl	$180, %esi
	je	LBB0_10
## %bb.6:
	cmpl	$270, %esi                      ## imm = 0x10E
	jne	LBB0_8
LBB0_10:
	movl	%esi, %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_ALOGW
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown rotate degress: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_get_video_rotate_degrees   ; -- Begin function ffp_get_video_rotate_degrees
	.p2align	2
_ffp_get_video_rotate_degrees:          ; @ffp_get_video_rotate_degrees
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w0, [x8]
	bl	_get_rotation
	bl	_fabs
	bl	_round
	mov	w8, #24759
	movk	w8, #46603, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #8
	add	w8, w9, w8, lsr #31
	mov	w9, #360
	msub	w8, w8, w9, w0
	cmp	w8, #0
	cneg	w1, w8, mi
	cmp	w1, #179
	b.gt	LBB0_4
; %bb.2:
	cbz	w1, LBB0_8
; %bb.3:
	cmp	w1, #90
	b.eq	LBB0_8
	b	LBB0_6
LBB0_4:
	cmp	w1, #180
	b.eq	LBB0_8
; %bb.5:
	cmp	w1, #270
	b.eq	LBB0_8
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ALOGW
LBB0_7:
	mov	w1, #0
LBB0_8:
	mov	x0, x1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown rotate degress: %d\n"

.subsections_via_symbols
