	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_di_sync_config_interlaced
_ipu_di_sync_config_interlaced:         ## @ipu_di_sync_config_interlaced
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %r8d
	movl	4(%rsi), %eax
	movl	12(%rsi), %r12d
	movl	8(%rsi), %r10d
	addl	%eax, %r10d
	leal	(%r10,%r8), %edx
	movl	16(%rsi), %r9d
	movl	20(%rsi), %ebx
	movl	28(%rsi), %r15d
	movl	24(%rsi), %edi
	addl	%ebx, %edi
	leal	(%rdi,%r9), %r13d
	leal	(%r15,%r13), %ecx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -304(%rbp)
	movaps	%xmm0, -288(%rbp)
	movl	$0, -272(%rbp)
	leal	-1(%rcx,%rcx), %esi
	movl	%esi, -304(%rbp)
	leal	(%rdx,%r12), %r11d
	leal	-1(%r12,%rdx), %edx
	movl	$3, -300(%rbp)
	movl	%edx, -268(%rbp)
	movq	_DI_SYNC_CLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, -264(%rbp)
	movl	$1, -260(%rbp)
	movl	%esi, -256(%rbp)
	addl	%eax, %eax
	movl	%eax, -252(%rbp)
	leal	(%r15,%r13), %eax
	decl	%eax
	movups	%xmm0, -248(%rbp)
	movl	%eax, -232(%rbp)
	movabsq	$4294967300, %rax               ## imm = 0x100000004
	movq	%rax, -228(%rbp)
	movl	$4, -220(%rbp)
	addl	%ebx, %ebx
	movl	%ebx, -216(%rbp)
	movq	$0, -212(%rbp)
	movl	$0, -204(%rbp)
	movq	_DI_SYNC_CNT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -200(%rbp)
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movl	%ebx, -196(%rbp)
	movl	%r11d, %eax
	shrl	$31, %eax
	addl	%r11d, %eax
	movq	_DI_SYNC_HSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -192(%rbp)
	movq	$0, -188(%rbp)
	movl	$0, -180(%rbp)
	sarl	%eax
	movl	%eax, -176(%rbp)
	movl	%esi, -172(%rbp)
	movl	$2, -168(%rbp)
	movl	%edx, -164(%rbp)
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	movl	$0, -160(%rbp)
	movl	%ecx, -156(%rbp)
	movq	$0, -152(%rbp)
	movl	$0, -144(%rbp)
	sarl	%edx
	movl	%edx, -140(%rbp)
	movl	%ecx, -136(%rbp)
	movl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%r9d, %ecx
	sarl	%ecx
	movl	%ecx, -132(%rbp)
	movq	_DI_SYNC_CNT4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -128(%rbp)
	movl	$0, -124(%rbp)
	movl	%esi, -120(%rbp)
	movq	$0, -116(%rbp)
	movl	$0, -108(%rbp)
	movl	%r10d, -104(%rbp)
	movl	%esi, -100(%rbp)
	movl	%r8d, -96(%rbp)
	movq	_DI_SYNC_CNT5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -92(%rbp)
	movups	%xmm0, -68(%rbp)
	movaps	%xmm0, -80(%rbp)
	decl	%eax
	movl	%eax, -88(%rbp)
	movl	%esi, -84(%rbp)
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ipu_di_sync_config
	decl	%ebx
	movq	_DI_SCR_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ipu_di_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DI_SYNC_CLK,4,2                ## @DI_SYNC_CLK
	.comm	_DI_SYNC_CNT1,4,2               ## @DI_SYNC_CNT1
	.comm	_DI_SYNC_HSYNC,4,2              ## @DI_SYNC_HSYNC
	.comm	_DI_SYNC_CNT4,4,2               ## @DI_SYNC_CNT4
	.comm	_DI_SYNC_CNT5,4,2               ## @DI_SYNC_CNT5
	.comm	_DI_SCR_CONF,4,2                ## @DI_SCR_CONF
	.no_dead_strip	_ipu_di_sync_config_interlaced
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ipu_di_sync_config_interlaced
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ipu_di_sync_config_interlaced:         ; @ipu_di_sync_config_interlaced
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	w8, w13, [x1]
	ldp	w9, w10, [x1, #8]
	add	w9, w9, w13
	add	w11, w9, w8
	add	w14, w11, w10
	ldp	w11, w15, [x1, #16]
	ldp	w10, w16, [x1, #24]
	add	w12, w10, w15
	add	w10, w12, w11
	add	w16, w10, w16
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	lsl	w10, w16, #1
	sub	w10, w10, #1
	mov	w17, #3
	stp	w10, w17, [sp, #8]
	sub	w10, w14, #1
	stp	wzr, w10, [sp, #40]
Lloh3:
	adrp	x10, _DI_SYNC_CLK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DI_SYNC_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w17, #1
	stp	w10, w17, [sp, #48]
	lsl	w13, w13, #1
	stp	w10, w13, [sp, #56]
	sub	w13, w16, #1
	stp	xzr, xzr, [sp, #64]
	str	w13, [sp, #80]
Lloh6:
	adrp	x13, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x13, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #84]
	mov	w13, #4
	lsl	w15, w15, #1
	stp	w13, w15, [sp, #92]
	movi.2d	v0, #0000000000000000
	stur	d0, [sp, #100]
Lloh8:
	adrp	x13, _DI_SYNC_CNT1@GOTPAGE
Lloh9:
	ldr	x13, [x13, _DI_SYNC_CNT1@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
	stp	wzr, w13, [sp, #108]
	cmp	w16, #0
	cinc	w15, w16, lt
	asr	w20, w15, #1
Lloh11:
	adrp	x15, _DI_SYNC_HSYNC@GOTPAGE
Lloh12:
	ldr	x15, [x15, _DI_SYNC_HSYNC@GOTPAGEOFF]
Lloh13:
	ldr	w15, [x15]
	stp	w20, w15, [sp, #116]
	stur	d0, [sp, #124]
	cmp	w14, #0
	cinc	w14, w14, lt
	asr	w14, w14, #1
	stp	wzr, w14, [sp, #132]
	mov	w16, #2
	stp	w10, w16, [sp, #140]
	stp	w13, wzr, [sp, #148]
	str	w15, [sp, #156]
	str	d0, [sp, #160]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	stp	wzr, w12, [sp, #168]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	stp	w15, w11, [sp, #176]
Lloh14:
	adrp	x11, _DI_SYNC_CNT4@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DI_SYNC_CNT4@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	stp	w11, wzr, [sp, #184]
	str	w10, [sp, #192]
	stur	d0, [sp, #196]
	stp	wzr, w9, [sp, #204]
	stp	w10, w8, [sp, #212]
Lloh17:
	adrp	x8, _DI_SYNC_CNT5@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DI_SYNC_CNT5@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #232]
	str	wzr, [sp, #256]
	str	xzr, [sp, #248]
	sub	w9, w14, #1
	stp	w8, w9, [sp, #220]
	str	w10, [sp, #228]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_ipu_di_sync_config
	sub	w1, w20, #1
Lloh20:
	adrp	x8, _DI_SCR_CONF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DI_SCR_CONF@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ipu_di_write
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DI_SYNC_CLK,4,2                ; @DI_SYNC_CLK
	.comm	_DI_SYNC_CNT1,4,2               ; @DI_SYNC_CNT1
	.comm	_DI_SYNC_HSYNC,4,2              ; @DI_SYNC_HSYNC
	.comm	_DI_SYNC_CNT4,4,2               ; @DI_SYNC_CNT4
	.comm	_DI_SYNC_CNT5,4,2               ; @DI_SYNC_CNT5
	.comm	_DI_SCR_CONF,4,2                ; @DI_SCR_CONF
	.no_dead_strip	_ipu_di_sync_config_interlaced
.subsections_via_symbols
