	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6x30_set_window
_ov6x30_set_window:                     ## @ov6x30_set_window
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ov6x30_mode_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rbx)
	sete	%r15b
	movl	(%rbx), %eax
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movq	_HWSBASE@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdx
	addq	(%rcx), %rdx
	movq	%r14, %rdi
	movl	$23, %esi
	callq	_ov_write
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movq	_HWEBASE@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdx
	addq	(%rcx), %rdx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_ov_write
	movl	8(%rbx), %eax
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movq	_VWSBASE@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdx
	addq	(%rcx), %rdx
	movq	%r14, %rdi
	movl	$25, %esi
	callq	_ov_write
	movl	12(%rbx), %eax
	addl	8(%rbx), %eax
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movq	_VWEBASE@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdx
	addq	(%rcx), %rdx
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_ov_write
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWSBASE,8,3                    ## @HWSBASE
	.comm	_HWEBASE,8,3                    ## @HWEBASE
	.comm	_VWSBASE,8,3                    ## @VWSBASE
	.comm	_VWEBASE,8,3                    ## @VWEBASE
	.no_dead_strip	_ov6x30_set_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6x30_set_window
_ov6x30_set_window:                     ; @ov6x30_set_window
	.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
	mov	x19, x0
	bl	_ov6x30_mode_init
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w21, eq
Lloh0:
	adrp	x8, _HWSBASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWSBASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x20]
	asr	w9, w9, w21
	add	x2, x8, w9, sxtw
	mov	x0, x19
	mov	w1, #23
	bl	_ov_write
Lloh3:
	adrp	x8, _HWEBASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWEBASE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	w9, w10, [x20]
	add	w9, w10, w9
	asr	w9, w9, w21
	add	x2, x8, w9, sxtw
	mov	x0, x19
	mov	w1, #24
	bl	_ov_write
Lloh6:
	adrp	x8, _VWSBASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VWSBASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x20, #8]
	asr	w9, w9, w21
	add	x2, x8, w9, sxtw
	mov	x0, x19
	mov	w1, #25
	bl	_ov_write
Lloh9:
	adrp	x8, _VWEBASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VWEBASE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	w9, w10, [x20, #8]
	add	w9, w10, w9
	asr	w9, w9, w21
	add	x2, x8, w9, sxtw
	mov	x0, x19
	mov	w1, #26
	bl	_ov_write
	mov	w0, #0
LBB0_2:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HWSBASE,8,3                    ; @HWSBASE
	.comm	_HWEBASE,8,3                    ; @HWEBASE
	.comm	_VWSBASE,8,3                    ; @VWSBASE
	.comm	_VWEBASE,8,3                    ; @VWEBASE
	.no_dead_strip	_ov6x30_set_window
.subsections_via_symbols
