	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_setup
_queue_setup:                           ## @queue_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	$1, (%rdx)
	movq	(%rax), %rax
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	jne	LBB0_1
## %bb.2:
	movq	_VBI_LINE_PAL_COUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VBI_LINE_NTSC_COUNT@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_VBI_LINE_LENGTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rax), %edx
	addl	%edx, %edx
	movl	%edx, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_VBI_LINE_NTSC_COUNT,4,2        ## @VBI_LINE_NTSC_COUNT
	.comm	_VBI_LINE_LENGTH,4,2            ## @VBI_LINE_LENGTH
	.comm	_VBI_LINE_PAL_COUNT,4,2         ## @VBI_LINE_PAL_COUNT
	.no_dead_strip	_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_setup
_queue_setup:                           ; @queue_setup
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x2]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _VBI_LINE_PAL_COUNT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VBI_LINE_PAL_COUNT@GOTPAGEOFF]
Lloh5:
	adrp	x11, _VBI_LINE_NTSC_COUNT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VBI_LINE_NTSC_COUNT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
Lloh7:
	adrp	x9, _VBI_LINE_LENGTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VBI_LINE_LENGTH@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	mul	w8, w9, w8
	lsl	w8, w8, #1
	str	w8, [x3]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_VBI_LINE_NTSC_COUNT,4,2        ; @VBI_LINE_NTSC_COUNT
	.comm	_VBI_LINE_LENGTH,4,2            ; @VBI_LINE_LENGTH
	.comm	_VBI_LINE_PAL_COUNT,4,2         ; @VBI_LINE_PAL_COUNT
	.no_dead_strip	_queue_setup
.subsections_via_symbols
