	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_genlock_offset
_set_genlock_offset:                    ## @set_genlock_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$-499, %esi                     ## imm = 0xFE0D
	movl	$-500, %ecx                     ## imm = 0xFE0C
	cmovgel	%esi, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	cmpl	$501, %esi                      ## imm = 0x1F5
	movl	$756, %eax                      ## imm = 0x2F4
	cmovll	%ecx, %eax
	movl	$1025, %ecx                     ## imm = 0x401
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	jge	LBB0_3
## %bb.2:
	movq	_CurrentMode@GOTPCREL(%rip), %rcx
	movq	_VIDEO_MODE_PAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leal	1882(%rax), %esi
	addl	$1888, %eax                     ## imm = 0x760
	cmpq	%rdx, (%rcx)
	cmovnel	%esi, %eax
LBB0_3:
	movl	%eax, %ecx
LBB0_4:
	movq	_debNormal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XILINX_GLDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %r8d
	popq	%rbp
	jmp	_debiwrite                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMode,8,3                ## @CurrentMode
	.comm	_VIDEO_MODE_PAL,8,3             ## @VIDEO_MODE_PAL
	.comm	_debNormal,4,2                  ## @debNormal
	.comm	_XILINX_GLDELAY,4,2             ## @XILINX_GLDELAY
	.no_dead_strip	_set_genlock_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_genlock_offset
_set_genlock_offset:                    ; @set_genlock_offset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CurrentMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMode@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VIDEO_MODE_PAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VIDEO_MODE_PAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	cmn	w1, #500
	mov	w10, #-500
	csel	w10, w1, w10, gt
	add	w10, w10, #256
	mov	w11, #756
	cmp	w1, #500
	csel	w10, w11, w10, gt
	mov	w11, #1025
	cmp	x8, x9
	mov	w8, #1882
	mov	w9, #1888
	csel	w8, w9, w8, eq
	add	w8, w8, w10
	cmp	w10, #0
	csel	w8, w10, w8, gt
	cmp	w10, #1
	csel	w3, w11, w8, eq
Lloh6:
	adrp	x8, _debNormal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _debNormal@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _XILINX_GLDELAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XILINX_GLDELAY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w4, #2
	b	_debiwrite
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMode,8,3                ; @CurrentMode
	.comm	_VIDEO_MODE_PAL,8,3             ; @VIDEO_MODE_PAL
	.comm	_debNormal,4,2                  ; @debNormal
	.comm	_XILINX_GLDELAY,4,2             ; @XILINX_GLDELAY
	.no_dead_strip	_set_genlock_offset
.subsections_via_symbols
