	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_dv_timings_aspect_ratio   ## -- Begin function v4l2_dv_timings_aspect_ratio
	.p2align	4, 0x90
_v4l2_dv_timings_aspect_ratio:          ## @v4l2_dv_timings_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
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	_V4L2_DV_BT_656_1120@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_V4L2_DV_FL_HAS_PICTURE_ASPECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_4
## %bb.2:
	movl	20(%rdi), %edx
	movl	24(%rdi), %ecx
	imull	12(%rdi), %edx
	imull	16(%rdi), %ecx
	leaq	-16(%rbp), %r8
	leaq	-8(%rbp), %r9
	movl	%edx, %edi
	movl	%ecx, %esi
	callq	_rational_best_approximation
	movl	-16(%rbp), %eax
	movq	-8(%rbp), %rdx
	shlq	$32, %rdx
	orq	%rax, %rdx
	jmp	LBB0_5
LBB0_4:
	xorl	%edx, %edx
LBB0_5:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_DV_BT_656_1120,8,3        ## @V4L2_DV_BT_656_1120
	.comm	_V4L2_DV_FL_HAS_PICTURE_ASPECT,4,2 ## @V4L2_DV_FL_HAS_PICTURE_ASPECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_dv_timings_aspect_ratio   ; -- Begin function v4l2_dv_timings_aspect_ratio
	.p2align	2
_v4l2_dv_timings_aspect_ratio:          ; @v4l2_dv_timings_aspect_ratio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_DV_BT_656_1120@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_DV_BT_656_1120@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _V4L2_DV_FL_HAS_PICTURE_ASPECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_DV_FL_HAS_PICTURE_ASPECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldp	w8, w9, [x0, #12]
	ldp	w10, w11, [x0, #20]
	mul	w0, w10, w8
	mul	w1, w11, w9
	add	x4, sp, #8
	mov	x5, sp
	mov	x2, x0
	mov	x3, x1
	bl	_rational_best_approximation
	ldr	w1, [sp, #8]
	ldr	x8, [sp]
	bfi	x1, x8, #32, #32
	b	LBB0_4
LBB0_3:
	mov	x1, #0
LBB0_4:
	mov	x0, #4294967297
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_DV_BT_656_1120,8,3        ; @V4L2_DV_BT_656_1120
	.comm	_V4L2_DV_FL_HAS_PICTURE_ASPECT,4,2 ; @V4L2_DV_FL_HAS_PICTURE_ASPECT
.subsections_via_symbols
