	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_query_dv_timings
_vidioc_query_dv_timings:               ## @vidioc_query_dv_timings
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_video_drvdata
	movl	$0, (%rbx)
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_17
LBB0_3:
	leaq	-88(%rbp), %rsi
	movq	%rax, %rdi
	callq	_get_video_info
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	cmpl	$0, -64(%rbp)
	je	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	cmpl	$31, -88(%rbp)
	setl	-44(%rbp)                       ## 1-byte Folded Spill
	movq	_hdpvr_dv_timings@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	xorl	%r13d, %r13d
	movl	$0, %r12d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movq	_hdpvr_dv_timings@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$32, %r14
	cmpq	%rax, %r12
	jge	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	leaq	(%r14,%r13), %rbx
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_WIDTH
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_HEIGHT
	movl	%eax, %ecx
	movl	24(%r13,%r14), %eax
	imull	%r15d, %ecx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%edx, %edx
	divl	%ecx
	movq	(%r13,%r14), %rcx
	cmpq	-80(%rbp), %rcx
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13,%r14), %rcx
	cmpq	-72(%rbp), %rcx
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r15d, 16(%r13,%r14)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-88(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%eax
	cmpl	%ecx, %eax
	jne	LBB0_14
LBB0_13:
	movq	_hdpvr_dv_timings@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movups	(%rax,%r14), %xmm0
	movups	16(%rax,%r14), %xmm1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
LBB0_15:
	xorl	%r13d, %r13d
LBB0_16:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	cmpl	%eax, %r12d
	cmovnel	%r13d, %ecx
LBB0_17:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOLCK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_ENOLCK,4,2                     ## @ENOLCK
	.comm	_hdpvr_dv_timings,8,3           ## @hdpvr_dv_timings
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_vidioc_query_dv_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_query_dv_timings
_vidioc_query_dv_timings:               ; @vidioc_query_dv_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	bl	_video_drvdata
	str	wzr, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_3:
	mov	x1, sp
	bl	_get_video_info
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_13
; %bb.5:
	ldr	w8, [sp]
	cmp	w8, #31
	cset	w24, lt
Lloh2:
	adrp	x22, _hdpvr_dv_timings@GOTPAGE
Lloh3:
	ldr	x22, [x22, _hdpvr_dv_timings@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x25, #0
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x25, x25, #32
	cmp	x23, w0, sxtw
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x22]
	add	x20, x26, x25
	mov	x0, x20
	bl	_V4L2_DV_BT_FRAME_WIDTH
	mov	x21, x0
	mov	x0, x20
	bl	_V4L2_DV_BT_FRAME_HEIGHT
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #16]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x26, x25
	ldr	w8, [x8, #16]
	cmp	w8, w24
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #24]
	mul	w9, w0, w21
	udiv	w8, w8, w9
	ldr	w9, [sp]
	add	w10, w8, #1
	cmp	w8, w9
	ccmp	w10, w9, #4, ne
	b.ne	LBB0_7
; %bb.12:
	ldr	x8, [x22]
	add	x8, x8, x25
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19]
	b	LBB0_15
LBB0_13:
Lloh4:
	adrp	x8, _ENOLCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOLCK@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	mov	w23, #0
LBB0_15:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w23, w0
	csneg	w0, wzr, w8, ne
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_ENOLCK,4,2                     ; @ENOLCK
	.comm	_hdpvr_dv_timings,8,3           ; @hdpvr_dv_timings
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_vidioc_query_dv_timings
.subsections_via_symbols
