	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function av_display_rotation_get
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_av_display_rotation_get
	.p2align	4, 0x90
_av_display_rotation_get:               ## @av_display_rotation_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_CONV_FP
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movl	12(%rbx), %edi
	callq	_CONV_FP
	movaps	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_hypot
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_CONV_FP
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_CONV_FP
	movaps	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_hypot
	xorpd	%xmm2, %xmm2
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm2, %xmm1
	jne	LBB0_1
	jnp	LBB0_2
LBB0_1:
	ucomisd	%xmm2, %xmm0
	jne	LBB0_3
	jnp	LBB0_2
LBB0_3:
	movl	4(%rbx), %edi
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_CONV_FP
	divsd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_CONV_FP
	movapd	%xmm0, %xmm1
	divsd	-24(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_atan2
	imull	$180, %eax, %eax
	movq	_M_PI@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	xorpd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_4
LBB0_2:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_M_PI,4,2                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_display_rotation_get        ; -- Begin function av_display_rotation_get
	.p2align	2
_av_display_rotation_get:               ; @av_display_rotation_get
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldr	w0, [x0]
	bl	_CONV_FP
	fmov	d8, d0
	ldr	w0, [x19, #12]
	bl	_CONV_FP
	fmov	d1, d0
	fmov	d0, d8
	bl	_hypot
	fmov	d8, d0
	ldr	w0, [x19, #4]
	bl	_CONV_FP
	fmov	d9, d0
	ldr	w0, [x19, #16]
	bl	_CONV_FP
	fmov	d1, d0
	fmov	d0, d9
	bl	_hypot
	fcmp	d8, #0.0
	b.eq	LBB0_3
; %bb.1:
	fmov	d9, d0
	fcmp	d0, #0.0
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_CONV_FP
	ldr	w0, [x19]
	fdiv	d9, d0, d9
	bl	_CONV_FP
	fdiv	d1, d0, d8
	fmov	d0, d9
	bl	_atan2
	mov	w8, #180
Lloh0:
	adrp	x9, _M_PI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_PI@GOTPAGEOFF]
	mul	w8, w0, w8
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	scvtf	d0, w8
	fneg	d0, d0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _NAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
