	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_video_query_dv_timings
_aspeed_video_query_dv_timings:         ## @aspeed_video_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_VIDEO_RES_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movl	16(%r15), %ebx
	movq	_VIDEO_RES_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$12, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_EINTR@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movq	_V4L2_DV_BT_656_1120@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	8(%r15), %eax
	movl	%eax, (%r14)
	movq	_ENOLINK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpq	$0, (%r15)
	cmovel	%edx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_VIDEO_RES_CHANGE,4,2           ## @VIDEO_RES_CHANGE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_V4L2_DV_BT_656_1120,4,2        ## @V4L2_DV_BT_656_1120
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.no_dead_strip	_aspeed_video_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 aspeed_video_query_dv_timings
_aspeed_video_query_dv_timings:         ; @aspeed_video_query_dv_timings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _VIDEO_RES_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_RES_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w21, [x20, #16]
Lloh8:
	adrp	x8, _VIDEO_RES_CHANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIDEO_RES_CHANGE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_bit
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event_interruptible
	cbz	w0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _EINTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _V4L2_DV_BT_656_1120@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_DV_BT_656_1120@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w9, w8, [x19]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _ENOLINK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOLINK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, eq
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_VIDEO_RES_CHANGE,4,2           ; @VIDEO_RES_CHANGE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_V4L2_DV_BT_656_1120,4,2        ; @V4L2_DV_BT_656_1120
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.no_dead_strip	_aspeed_video_query_dv_timings
.subsections_via_symbols
