	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_aspect_ratio
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_aspect_ratio:                      ## @get_aspect_ratio
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	40(%rdi), %r15
	movq	(%r15), %r13
	movl	32(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r12
	movq	_VARS_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movq	_VAR_W@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm0, (%rax,%rcx,8)
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movq	_VAR_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm1, (%rax,%rcx,8)
	divsd	%xmm1, %xmm0
	movq	_VAR_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm0, (%rax,%rcx,8)
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	16(%rbx), %xmm0
	jmp	LBB0_3
LBB0_1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_3:
	movq	_VAR_SAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	mulsd	(%rax,%rcx,8), %xmm0
	movq	_VAR_DAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm0, (%rax,%rcx,8)
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	movl	$1, %edx
	movq	_VAR_HSUB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm0, (%rax,%rcx,8)
	movb	4(%r12), %cl
	shll	%cl, %edx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	movq	_VAR_VSUB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	%xmm0, (%rax,%rcx,8)
	movl	(%r13), %esi
	movq	_var_names@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subq	$48, %rsp
	movq	%r15, 32(%rsp)
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rsp)
	movl	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	leaq	-56(%rbp), %rdi
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_av_expr_parse_and_eval
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movl	4(%r13), %edi
	callq	_av_d2q
	movq	%rax, (%r14)
	movq	%rdx, 8(%r14)
	testq	%rax, %rax
	jns	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	(%r13), %esi
	movl	4(%r13), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_av_parse_ratio
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jg	LBB0_10
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_12:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VARS_NB,4,2                    ## @VARS_NB
	.comm	_VAR_W,8,3                      ## @VAR_W
	.comm	_VAR_H,8,3                      ## @VAR_H
	.comm	_VAR_A,8,3                      ## @VAR_A
	.comm	_VAR_SAR,8,3                    ## @VAR_SAR
	.comm	_VAR_DAR,8,3                    ## @VAR_DAR
	.comm	_VAR_HSUB,8,3                   ## @VAR_HSUB
	.comm	_VAR_VSUB,8,3                   ## @VAR_VSUB
	.comm	_var_names,4,2                  ## @var_names
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error when evaluating the expression '%s'\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid string '%s' for aspect ratio\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_aspect_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_aspect_ratio
_get_aspect_ratio:                      ; @get_aspect_ratio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [x0, #40]
	ldr	x22, [x19]
	ldr	w0, [x0, #32]
	bl	_av_pix_fmt_desc_get
Lloh3:
	adrp	x8, _VARS_NB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VARS_NB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x3, x9, x8
	mov	sp, x3
Lloh8:
	adrp	x8, _VAR_W@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VAR_W@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	d0, d1, [x21]
	str	d0, [x3, x8, lsl #3]
Lloh11:
	adrp	x8, _VAR_H@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VAR_H@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	d1, [x3, x8, lsl #3]
	fdiv	d0, d0, d1
Lloh14:
	adrp	x8, _VAR_A@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VAR_A@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	d0, [x3, x8, lsl #3]
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_2
; %bb.1:
	scvtf	d0, x9
	ldr	d1, [x21, #16]
	fdiv	d0, d0, d1
	b	LBB0_3
LBB0_2:
	fmov	d0, #1.00000000
LBB0_3:
Lloh17:
	adrp	x9, _VAR_SAR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VAR_SAR@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	d0, [x3, x9, lsl #3]
	ldr	d1, [x3, x8, lsl #3]
	fmul	d0, d0, d1
Lloh20:
	adrp	x8, _VAR_DAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VAR_DAR@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	d0, [x3, x8, lsl #3]
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w8, w9, w8
	scvtf	d0, w8
Lloh23:
	adrp	x8, _VAR_HSUB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VAR_HSUB@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	d0, [x3, x8, lsl #3]
	ldr	w8, [x0, #4]
	lsl	w8, w9, w8
	scvtf	d0, w8
Lloh26:
	adrp	x8, _VAR_VSUB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VAR_VSUB@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	d0, [x3, x8, lsl #3]
	ldr	w1, [x22]
Lloh29:
	adrp	x8, _var_names@GOTPAGE
Lloh30:
	ldr	x8, [x8, _var_names@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	sub	sp, sp, #32
	str	x19, [sp, #16]
	str	wzr, [sp, #8]
	sub	x0, x29, #48
	str	xzr, [sp]
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_av_expr_parse_and_eval
	add	sp, sp, #32
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldur	d0, [x29, #-48]
	ldr	w0, [x22, #4]
	bl	_av_d2q
	stp	x0, x1, [x20]
	tbz	x0, #63, LBB0_7
	b	LBB0_9
LBB0_5:
	ldp	w1, w2, [x22]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	bl	_av_parse_ratio
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x0, [x20]
	tbnz	x0, #63, LBB0_9
LBB0_7:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	b.le	LBB0_9
; %bb.8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh35:
	adrp	x2, l_.str.1@PAGE
Lloh36:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_11
LBB0_10:
	mov	x21, x0
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh43:
	adrp	x2, l_.str@PAGE
Lloh44:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_VARS_NB,4,2                    ; @VARS_NB
	.comm	_VAR_W,8,3                      ; @VAR_W
	.comm	_VAR_H,8,3                      ; @VAR_H
	.comm	_VAR_A,8,3                      ; @VAR_A
	.comm	_VAR_SAR,8,3                    ; @VAR_SAR
	.comm	_VAR_DAR,8,3                    ; @VAR_DAR
	.comm	_VAR_HSUB,8,3                   ; @VAR_HSUB
	.comm	_VAR_VSUB,8,3                   ; @VAR_VSUB
	.comm	_var_names,4,2                  ; @var_names
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error when evaluating the expression '%s'\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid string '%s' for aspect ratio\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_aspect_ratio
.subsections_via_symbols
