	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov511_i2c_w
_ov511_i2c_w:                           ## @ov511_i2c_w
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	$6, %r13d
	movq	_R511_I2C_CTL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	_R51x_I2C_SADDR_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_reg_w
	movq	_R51x_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_reg_w
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, %ecx
	andl	$1, %ecx
	je	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	andl	$-2147483646, %eax              ## imm = 0x80000002
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	$1, %r13d
	jae	LBB0_1
## %bb.6:
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_USBO,4,2                     ## @D_USBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ov511_i2c_w %02x %02x\n"

	.comm	_R51x_I2C_SADDR_3,4,2           ## @R51x_I2C_SADDR_3
	.comm	_R51x_I2C_DATA,4,2              ## @R51x_I2C_DATA
	.comm	_R511_I2C_CTL,4,2               ## @R511_I2C_CTL
L_.str.1:                               ## @.str.1
	.asciz	"i2c write retries exhausted\n"

	.no_dead_strip	_ov511_i2c_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov511_i2c_w
_ov511_i2c_w:                           ; @ov511_i2c_w
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _D_USBO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_USBO@GOTPAGEOFF]
	ldr	w1, [x22]
	stp	x21, x20, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
Lloh4:
	adrp	x23, _R51x_I2C_SADDR_3@GOTPAGE
Lloh5:
	ldr	x23, [x23, _R51x_I2C_SADDR_3@GOTPAGEOFF]
	mov	w8, #6
Lloh6:
	adrp	x24, _R51x_I2C_DATA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _R51x_I2C_DATA@GOTPAGEOFF]
	mov	w25, #2
	movk	w25, #32768, lsl #16
Lloh8:
	adrp	x26, _R511_I2C_CTL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _R511_I2C_CTL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x27, x8
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_reg_w
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_reg_w
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #1
	bl	_reg_w
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_reg_r
	and	w8, w0, #0x1
	cmp	w0, #1
	ccmp	w8, #0, #0, ge
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w8, w0, w25
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w27, #1
	cbnz	w27, LBB0_1
; %bb.5:
	ldr	w1, [x22]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_gspca_dbg
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ov511_i2c_w %02x %02x\n"

	.comm	_R51x_I2C_SADDR_3,4,2           ; @R51x_I2C_SADDR_3
	.comm	_R51x_I2C_DATA,4,2              ; @R51x_I2C_DATA
	.comm	_R511_I2C_CTL,4,2               ; @R511_I2C_CTL
l_.str.1:                               ; @.str.1
	.asciz	"i2c write retries exhausted\n"

	.no_dead_strip	_ov511_i2c_w
.subsections_via_symbols
