	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_i2c_write_mask_internal
_ov51x_i2c_write_mask_internal:         ## @ov51x_i2c_write_mask_internal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpb	$-1, %r12b
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_BCL_OV518@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movzbl	%r15b, %esi
	movq	%rbx, %rdi
	callq	_ov518_i2c_read_internal
	testl	%eax, %eax
	js	LBB0_8
LBB0_5:
	movl	%r12d, %ecx
	notl	%ecx
	andl	%ecx, %eax
	andb	%r12b, %r14b
	orb	%r14b, %al
	movl	%eax, %r14d
LBB0_6:
	movq	(%rbx), %rax
	movq	_BCL_OV518@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	movzbl	%r15b, %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov518_i2c_write_internal       ## TAILCALL
LBB0_7:
	movzbl	%r15b, %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov511_i2c_write_internal       ## TAILCALL
LBB0_3:
	movzbl	%r15b, %esi
	movq	%rbx, %rdi
	callq	_ov511_i2c_read_internal
	testl	%eax, %eax
	jns	LBB0_5
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCL_OV518,8,3                  ## @BCL_OV518
	.no_dead_strip	_ov51x_i2c_write_mask_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_i2c_write_mask_internal
_ov51x_i2c_write_mask_internal:         ; @ov51x_i2c_write_mask_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _BCL_OV518@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BCL_OV518@GOTPAGEOFF]
	cmp	w3, #255
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x3
	ldr	x8, [x20]
	ldr	x9, [x23]
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	bl	_ov518_i2c_read_internal
	tbnz	w0, #31, LBB0_8
LBB0_3:
	bic	w8, w0, w22
	and	w9, w22, w21
	orr	w21, w9, w8
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x23]
	and	w2, w21, #0xff
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ov518_i2c_write_internal
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ov511_i2c_write_internal
LBB0_7:
	bl	_ov511_i2c_read_internal
	tbz	w0, #31, LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCL_OV518,8,3                  ; @BCL_OV518
	.no_dead_strip	_ov51x_i2c_write_mask_internal
.subsections_via_symbols
