	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6x30_mode_init
_ov6x30_mode_init:                      ## @ov6x30_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edx, %edx
	cmpq	$0, 16(%rsi)
	setne	%dl
	shll	$5, %edx
	movl	$20, %esi
	movl	$32, %ecx
	callq	_ov_write_mask
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_I2C_HW_SMBUS_OV518@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	_VIDEO_PALETTE_GREY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	shll	$5, %edx
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$32, %ecx
	callq	_ov_write_mask
LBB0_2:
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_ov_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_PALETTE_GREY,8,3         ## @VIDEO_PALETTE_GREY
	.comm	_I2C_HW_SMBUS_OV518,8,3         ## @I2C_HW_SMBUS_OV518
	.no_dead_strip	_ov6x30_mode_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6x30_mode_init
_ov6x30_mode_init:                      ; @ov6x30_mode_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	cmp	x8, #0
	cset	w8, ne
	lsl	w2, w8, #5
	mov	w1, #20
	mov	w3, #32
	bl	_ov_write_mask
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _I2C_HW_SMBUS_OV518@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_HW_SMBUS_OV518@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _VIDEO_PALETTE_GREY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEO_PALETTE_GREY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	lsl	w2, w8, #5
	mov	x0, x19
	mov	w1, #19
	mov	w3, #32
	bl	_ov_write_mask
LBB0_2:
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #17
	bl	_ov_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_PALETTE_GREY,8,3         ; @VIDEO_PALETTE_GREY
	.comm	_I2C_HW_SMBUS_OV518,8,3         ; @I2C_HW_SMBUS_OV518
	.no_dead_strip	_ov6x30_mode_init
.subsections_via_symbols
