	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_hdmi_s_dv_timings
_adv748x_hdmi_s_dv_timings:             ## @adv748x_hdmi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_adv748x_sd_to_hdmi
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_adv748x_hdmi_to_state
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_match_dv_timings
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	_adv748x_hdmi_timings_cap@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_valid_dv_timings
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_adv748x_fill_optional_dv_timings
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_adv748x_hdmi_set_video_timings
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movq	_ADV748X_CP_VID_ADJ_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_CP_VID_ADJ_2_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	movl	%edx, %ecx
	cmovel	%ebx, %ecx
	movq	%r14, %rdi
	callq	_cp_clrset
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_adv748x_hdmi_timings_cap,4,2   ## @adv748x_hdmi_timings_cap
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ADV748X_CP_VID_ADJ_2,4,2       ## @ADV748X_CP_VID_ADJ_2
	.comm	_ADV748X_CP_VID_ADJ_2_INTERLACED,4,2 ## @ADV748X_CP_VID_ADJ_2_INTERLACED
	.no_dead_strip	_adv748x_hdmi_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 adv748x_hdmi_s_dv_timings
_adv748x_hdmi_s_dv_timings:             ; @adv748x_hdmi_s_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	x20, x1
	bl	_adv748x_sd_to_hdmi
	mov	x21, x0
	bl	_adv748x_hdmi_to_state
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_match_dv_timings
	mov	w22, #0
	cbnz	x0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x1, _adv748x_hdmi_timings_cap@GOTPAGE
Lloh1:
	ldr	x1, [x1, _adv748x_hdmi_timings_cap@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_v4l2_valid_dv_timings
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_adv748x_fill_optional_dv_timings
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_adv748x_hdmi_set_video_timings
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	str	x8, [x21]
Lloh2:
	adrp	x8, _ADV748X_CP_VID_ADJ_2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADV748X_CP_VID_ADJ_2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ADV748X_CP_VID_ADJ_2_INTERLACED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADV748X_CP_VID_ADJ_2_INTERLACED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	x8, [x20]
	cmp	x8, #0
	csel	w3, wzr, w2, eq
	mov	x0, x19
	bl	_cp_clrset
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
LBB0_9:
Lloh10:
	adrp	x8, _ERANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_adv748x_hdmi_timings_cap,4,2   ; @adv748x_hdmi_timings_cap
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ADV748X_CP_VID_ADJ_2,4,2       ; @ADV748X_CP_VID_ADJ_2
	.comm	_ADV748X_CP_VID_ADJ_2_INTERLACED,4,2 ; @ADV748X_CP_VID_ADJ_2_INTERLACED
	.no_dead_strip	_adv748x_hdmi_s_dv_timings
.subsections_via_symbols
