	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_guess_sample_aspect_ratio   ## -- Begin function av_guess_sample_aspect_ratio
	.p2align	4, 0x90
_av_guess_sample_aspect_ratio:          ## @av_guess_sample_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	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movups	8(%rdx), %xmm0
	movups	24(%rdx), %xmm1
	movaps	%xmm1, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm1, -96(%rbp)
	jmp	LBB0_5
LBB0_1:
	movups	l___const.av_guess_sample_aspect_ratio.undef+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movups	l___const.av_guess_sample_aspect_ratio.undef(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
LBB0_2:
	movups	l___const.av_guess_sample_aspect_ratio.undef+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movups	l___const.av_guess_sample_aspect_ratio.undef(%rip), %xmm0
LBB0_5:
	movaps	%xmm0, -112(%rbp)
	testq	%rcx, %rcx
	leaq	-112(%rbp), %rax
	cmovneq	%rcx, %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rcx
	movq	_INT_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	callq	_av_reduce
	cmpq	$0, -40(%rbp)
	jle	LBB0_7
## %bb.6:
	cmpq	$0, -32(%rbp)
	jg	LBB0_8
LBB0_7:
	movups	l___const.av_guess_sample_aspect_ratio.undef+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movups	l___const.av_guess_sample_aspect_ratio.undef(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
LBB0_8:
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movl	(%r14), %r8d
	callq	_av_reduce
	cmpq	$0, -72(%rbp)
	jle	LBB0_10
## %bb.9:
	cmpq	$0, -64(%rbp)
	jg	LBB0_11
LBB0_10:
	movups	l___const.av_guess_sample_aspect_ratio.undef+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	l___const.av_guess_sample_aspect_ratio.undef(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
LBB0_11:
	cmpq	$0, -40(%rbp)
	leaq	-80(%rbp), %rax
	leaq	-48(%rbp), %rcx
	cmoveq	%rax, %rcx
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	%rbx, %rax
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	3                               ## @__const.av_guess_sample_aspect_ratio.undef
l___const.av_guess_sample_aspect_ratio.undef:
	.long	0                               ## 0x0
	.space	4
	.quad	1                               ## 0x1
	.quad	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4

	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_guess_sample_aspect_ratio   ; -- Begin function av_guess_sample_aspect_ratio
	.p2align	2
_av_guess_sample_aspect_ratio:          ; @av_guess_sample_aspect_ratio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x8
Lloh0:
	adrp	x20, l___const.av_guess_sample_aspect_ratio.undef@PAGE
Lloh1:
	add	x20, x20, l___const.av_guess_sample_aspect_ratio.undef@PAGEOFF
	cbz	x1, LBB0_3
; %bb.1:
	ldur	q0, [x1, #8]
	ldur	q1, [x1, #24]
	stp	q0, q1, [sp, #64]
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.2:
	ldp	q0, q1, [x8]
	b	LBB0_5
LBB0_3:
	ldp	q0, q1, [x20]
	stp	q0, q1, [sp, #64]
LBB0_4:
	ldp	q0, q1, [x20]
LBB0_5:
	stp	q0, q1, [sp, #32]
	add	x8, sp, #32
	cmp	x2, #0
	csel	x8, x8, x2, eq
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	add	x8, sp, #64
	orr	x0, x8, #0x8
	add	x1, x8, #16
	ldp	x2, x3, [sp, #72]
Lloh2:
	adrp	x21, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _INT_MAX@GOTPAGEOFF]
	ldr	w4, [x21]
	bl	_av_reduce
	ldr	x8, [sp, #72]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [sp, #80]
	cmp	x8, #0
	b.gt	LBB0_8
LBB0_7:
	ldp	q0, q1, [x20]
	stp	q0, q1, [sp, #64]
LBB0_8:
	mov	x8, sp
	orr	x0, x8, #0x8
	add	x1, x8, #16
	ldp	x2, x3, [sp, #8]
	ldr	w4, [x21]
	bl	_av_reduce
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [sp, #16]
	cmp	x8, #0
	b.gt	LBB0_11
LBB0_10:
	ldp	q0, q1, [x20]
	stp	q0, q1, [sp]
LBB0_11:
	ldr	x8, [sp, #72]
	add	x9, sp, #64
	mov	x10, sp
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @__const.av_guess_sample_aspect_ratio.undef
l___const.av_guess_sample_aspect_ratio.undef:
	.long	0                               ; 0x0
	.space	4
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4

	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
