	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7x10_mode_init
_ov7x10_mode_init:                      ## @ov7x10_mode_init
	.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, %r14
	xorl	%edx, %edx
	cmpl	$0, (%rsi)
	movq	%rdi, %r15
	setne	%dl
	shll	$5, %edx
	orl	$4, %edx
	movl	$20, %esi
	callq	_ov_write
	movq	8(%r14), %rax
	movq	_VIDEO_PALETTE_GREY@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movl	%ebx, %edx
	shll	$6, %edx
	shll	$5, %ebx
	movq	%r15, %rdi
	movl	$14, %esi
	movl	$64, %ecx
	callq	_ov_write_mask
	movq	%r15, %rdi
	movl	$19, %esi
	movl	%ebx, %edx
	movl	$32, %ecx
	callq	_ov_write_mask
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movl	$17, %esi
	callq	_ov_write
	cmpl	$640, 20(%r14)                  ## imm = 0x280
	jne	LBB0_2
## %bb.1:
	movl	$158, %edx
	cmpl	$480, 24(%r14)                  ## imm = 0x1E0
	je	LBB0_3
LBB0_2:
	movl	$30, %edx
LBB0_3:
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_ov_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_PALETTE_GREY,8,3         ## @VIDEO_PALETTE_GREY
	.no_dead_strip	_ov7x10_mode_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7x10_mode_init
_ov7x10_mode_init:                      ; @ov7x10_mode_init
	.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
	ldr	w8, [x1]
	mov	w9, #36
	mov	w10, #4
	cmp	w8, #0
	csel	w2, w10, w9, eq
	mov	w1, #20
	bl	_ov_write
Lloh0:
	adrp	x8, _VIDEO_PALETTE_GREY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_PALETTE_GREY@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
	lsl	w2, w8, #6
	lsl	w21, w8, #5
	mov	x0, x19
	mov	w1, #14
	mov	w3, #64
	bl	_ov_write_mask
	mov	x0, x19
	mov	w1, #19
	mov	x2, x21
	mov	w3, #32
	bl	_ov_write_mask
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #17
	bl	_ov_write
	ldr	w8, [x20, #20]
	cmp	w8, #640
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20, #24]
	cmp	w8, #480
	b.ne	LBB0_3
; %bb.2:
	mov	w2, #158
	b	LBB0_4
LBB0_3:
	mov	w2, #30
LBB0_4:
	mov	x0, x19
	mov	w1, #53
	bl	_ov_write
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_PALETTE_GREY,8,3         ; @VIDEO_PALETTE_GREY
	.no_dead_strip	_ov7x10_mode_init
.subsections_via_symbols
