	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_hdmi_set_video_timings
_adv748x_hdmi_set_video_timings:        ## @adv748x_hdmi_set_video_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	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_adv748x_hdmi_video_standards@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	8(%r15), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$250000, %edx                   ## imm = 0x3D090
	xorl	%ecx, %ecx
	callq	_v4l2_match_dv_timings
	incq	%r14
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	jae	LBB0_5
## %bb.6:
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %r12
	leaq	(%r15,%r12,4), %r14
	movl	(%r15,%r12,4), %eax
	cmpl	$83, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$94, %eax
	je	LBB0_10
## %bb.9:
	cmpl	$84, %eax
	jne	LBB0_11
LBB0_10:
	movl	$-44, %esi
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_7:
	movl	$-40, %esi
	jmp	LBB0_12
LBB0_11:
	xorl	%esi, %esi
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_adv748x_hdmi_set_de_timings
	movq	_ADV748X_IO_VID_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_io_write
	movq	_ADV748X_IO_DATAPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_IO_DATAPATH_VFREQ_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15,%r12,4), %eax
	movq	_ADV748X_IO_DATAPATH_VFREQ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_io_clrset
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adv748x_hdmi_video_standards,8,3 ## @adv748x_hdmi_video_standards
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADV748X_IO_VID_STD,4,2         ## @ADV748X_IO_VID_STD
	.comm	_ADV748X_IO_DATAPATH,4,2        ## @ADV748X_IO_DATAPATH
	.comm	_ADV748X_IO_DATAPATH_VFREQ_M,4,2 ## @ADV748X_IO_DATAPATH_VFREQ_M
	.comm	_ADV748X_IO_DATAPATH_VFREQ_SHIFT,4,2 ## @ADV748X_IO_DATAPATH_VFREQ_SHIFT
	.no_dead_strip	_adv748x_hdmi_set_video_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_set_video_timings
_adv748x_hdmi_set_video_timings:        ; @adv748x_hdmi_set_video_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _adv748x_hdmi_video_standards@GOTPAGE
Lloh1:
	ldr	x24, [x24, _adv748x_hdmi_video_standards@GOTPAGEOFF]
	ldr	x20, [x24]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x23, #0
	add	x22, x20, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #53392
	movk	w2, #3, lsl #16
	mov	w3, #0
	bl	_v4l2_match_dv_timings
	add	x23, x23, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x22, x22, #12
	cmp	x23, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.hs	LBB0_9
; %bb.5:
	mov	w21, w23
	mov	w8, #12
	umaddl	x22, w23, w8, x20
	ldr	w8, [x22]
	cmp	w8, #83
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #94
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #84
	b.ne	LBB0_11
LBB0_8:
	mov	w1, #-44
	b	LBB0_12
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	mov	w1, #-40
	b	LBB0_12
LBB0_11:
	mov	w1, #0
LBB0_12:
	mov	x0, x19
	bl	_adv748x_hdmi_set_de_timings
Lloh5:
	adrp	x8, _ADV748X_IO_VID_STD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADV748X_IO_VID_STD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_io_write
Lloh8:
	adrp	x8, _ADV748X_IO_DATAPATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADV748X_IO_DATAPATH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ADV748X_IO_DATAPATH_VFREQ_M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADV748X_IO_DATAPATH_VFREQ_M@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w8, #12
	madd	x8, x21, x8, x20
	ldr	w8, [x8, #4]
Lloh14:
	adrp	x9, _ADV748X_IO_DATAPATH_VFREQ_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADV748X_IO_DATAPATH_VFREQ_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	mov	x0, x19
	bl	_io_clrset
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_adv748x_hdmi_video_standards,8,3 ; @adv748x_hdmi_video_standards
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADV748X_IO_VID_STD,4,2         ; @ADV748X_IO_VID_STD
	.comm	_ADV748X_IO_DATAPATH,4,2        ; @ADV748X_IO_DATAPATH
	.comm	_ADV748X_IO_DATAPATH_VFREQ_M,4,2 ; @ADV748X_IO_DATAPATH_VFREQ_M
	.comm	_ADV748X_IO_DATAPATH_VFREQ_SHIFT,4,2 ; @ADV748X_IO_DATAPATH_VFREQ_SHIFT
	.no_dead_strip	_adv748x_hdmi_set_video_timings
.subsections_via_symbols
