	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_get_pixel_aspect
_vivid_get_pixel_aspect:                ## @vivid_get_pixel_aspect
	.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, %rbx
	callq	_vivid_is_sdtv_cap
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	jne	LBB0_9
LBB0_2:
	movq	_TPG_PIXEL_ASPECT_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	callq	_vivid_is_hdmi_cap
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	cmpl	$720, 16(%rbx)                  ## imm = 0x2D0
	jne	LBB0_8
## %bb.5:
	movl	20(%rbx), %eax
	cmpl	$576, %eax                      ## imm = 0x240
	jg	LBB0_8
## %bb.6:
	cmpl	$480, %eax                      ## imm = 0x1E0
	jne	LBB0_2
LBB0_9:
	movq	_TPG_PIXEL_ASPECT_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_TPG_PIXEL_ASPECT_SQUARE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_TPG_PIXEL_ASPECT_NTSC,4,2      ## @TPG_PIXEL_ASPECT_NTSC
	.comm	_TPG_PIXEL_ASPECT_PAL,4,2       ## @TPG_PIXEL_ASPECT_PAL
	.comm	_TPG_PIXEL_ASPECT_SQUARE,4,2    ## @TPG_PIXEL_ASPECT_SQUARE
	.no_dead_strip	_vivid_get_pixel_aspect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_get_pixel_aspect
_vivid_get_pixel_aspect:                ; @vivid_get_pixel_aspect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_vivid_is_sdtv_cap
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	adrp	x10, _TPG_PIXEL_ASPECT_NTSC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TPG_PIXEL_ASPECT_NTSC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _TPG_PIXEL_ASPECT_PAL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TPG_PIXEL_ASPECT_PAL@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_vivid_is_hdmi_cap
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #16]
	cmp	w8, #720
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #20]
	cmp	w8, #576
	b.gt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x9, _TPG_PIXEL_ASPECT_NTSC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TPG_PIXEL_ASPECT_NTSC@GOTPAGEOFF]
Lloh9:
	adrp	x10, _TPG_PIXEL_ASPECT_PAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TPG_PIXEL_ASPECT_PAL@GOTPAGEOFF]
	cmp	w8, #480
	csel	x8, x9, x10, eq
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _TPG_PIXEL_ASPECT_SQUARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TPG_PIXEL_ASPECT_SQUARE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_TPG_PIXEL_ASPECT_NTSC,4,2      ; @TPG_PIXEL_ASPECT_NTSC
	.comm	_TPG_PIXEL_ASPECT_PAL,4,2       ; @TPG_PIXEL_ASPECT_PAL
	.comm	_TPG_PIXEL_ASPECT_SQUARE,4,2    ; @TPG_PIXEL_ASPECT_SQUARE
	.no_dead_strip	_vivid_get_pixel_aspect
.subsections_via_symbols
