	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_dv_timings
_vidioc_s_dv_timings:                   ## @vidioc_s_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_video_drvdata
	movl	$0, (%rbx)
	cmpq	$0, 24(%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_STATUS_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_hdpvr_dv_timings@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_match_dv_timings
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	xorl	%r13d, %r13d
LBB0_10:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_12
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r12), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%r14)
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 12(%r14)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_STATUS_IDLE,8,3                ## @STATUS_IDLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_hdpvr_dv_timings,8,3           ## @hdpvr_dv_timings
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_s_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_s_dv_timings
_vidioc_s_dv_timings:                   ; @vidioc_s_dv_timings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_video_drvdata
	str	wzr, [x21]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _STATUS_IDLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STATUS_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh5:
	adrp	x21, _hdpvr_dv_timings@GOTPAGE
Lloh6:
	ldr	x21, [x21, _hdpvr_dv_timings@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_match_dv_timings
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_13
; %bb.10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #0
	ldr	x8, [x21]
	mov	w9, w22
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x10, [x19, #16]
	ldr	d0, [x8, x9]
	str	d0, [x19, #8]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_STATUS_IDLE,8,3                ; @STATUS_IDLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_hdpvr_dv_timings,8,3           ; @hdpvr_dv_timings
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_s_dv_timings
.subsections_via_symbols
