	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6650_reg_write
_ov6650_reg_write:                      ## @ov6650_reg_write
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movb	%r14b, -26(%rbp)
	movb	%dl, -25(%rbp)
	movl	$2, -56(%rbp)
	leaq	-26(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -40(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -36(%rbp)
	movl	4(%rdi), %edi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %r15d
	movl	$100, %edi
	callq	_udelay
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jns	LBB0_2
## %bb.1:
	movzbl	%r14b, %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	%r15d, %eax
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed writing register 0x%02x!\n"

	.no_dead_strip	_ov6650_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6650_reg_write
_ov6650_reg_write:                      ; @ov6650_reg_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	strb	w1, [sp, #30]
	strb	w2, [sp, #31]
	mov	w8, #2
	str	w8, [sp]
	add	x8, sp, #30
	str	x8, [sp, #8]
	ldp	w0, w8, [x0, #4]
	stp	wzr, w8, [sp, #16]
	mov	x1, sp
	mov	w2, #1
	bl	_i2c_transfer
	mov	x21, x0
	mov	w0, #100
	bl	_udelay
	mov	w0, #0
	tbz	w21, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	mov	x0, x21
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed writing register 0x%02x!\n"

	.no_dead_strip	_ov6650_reg_write
.subsections_via_symbols
