	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sccb_reg_write
_sccb_reg_write:                        ## @sccb_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
	pushq	%rax
	.cfi_offset %rbx, -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
	callq	_gspca_dbg
	movq	_OV534_REG_SUBADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ov534_reg_write
	movq	_OV534_REG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ov534_reg_write
	movq	_OV534_REG_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV534_OP_WRITE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ov534_reg_write
	movq	%rbx, %rdi
	callq	_sccb_check_status
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	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	"sccb write: %02x %02x\n"

	.comm	_OV534_REG_SUBADDR,4,2          ## @OV534_REG_SUBADDR
	.comm	_OV534_REG_WRITE,4,2            ## @OV534_REG_WRITE
	.comm	_OV534_REG_OPERATION,4,2        ## @OV534_REG_OPERATION
	.comm	_OV534_OP_WRITE_3,4,2           ## @OV534_OP_WRITE_3
L_.str.1:                               ## @.str.1
	.asciz	"sccb_reg_write failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sccb_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sccb_reg_write
_sccb_reg_write:                        ; @sccb_reg_write
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_USBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x20
	bl	_gspca_dbg
Lloh5:
	adrp	x8, _OV534_REG_SUBADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OV534_REG_SUBADDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ov534_reg_write
Lloh8:
	adrp	x8, _OV534_REG_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV534_REG_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ov534_reg_write
Lloh11:
	adrp	x8, _OV534_REG_OPERATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OV534_REG_OPERATION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _OV534_OP_WRITE_3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV534_OP_WRITE_3@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ov534_reg_write
	mov	x0, x19
	bl	_sccb_check_status
	cbnz	w0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_2:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sccb write: %02x %02x\n"

	.comm	_OV534_REG_SUBADDR,4,2          ; @OV534_REG_SUBADDR
	.comm	_OV534_REG_WRITE,4,2            ; @OV534_REG_WRITE
	.comm	_OV534_REG_OPERATION,4,2        ; @OV534_REG_OPERATION
	.comm	_OV534_OP_WRITE_3,4,2           ; @OV534_OP_WRITE_3
l_.str.1:                               ; @.str.1
	.asciz	"sccb_reg_write failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sccb_reg_write
.subsections_via_symbols
