	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sccb_check_status
_sccb_check_status:                     ## @sccb_check_status
	.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
	movq	%rdi, %rbx
	movl	$20, %edi
	callq	_msleep
	movq	_OV534_REG_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	cmpl	$3, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$4, %eax
	je	LBB0_20
## %bb.3:
	movq	_D_USBI@GOTPCREL(%rip), %rcx
	movq	_D_USBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_gspca_dbg
LBB0_4:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	testl	%eax, %eax
	je	LBB0_21
## %bb.5:
	cmpl	$3, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$4, %eax
	je	LBB0_20
## %bb.7:
	movq	_D_USBI@GOTPCREL(%rip), %rcx
	movq	_D_USBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	$2, %r8d
	callq	_gspca_dbg
LBB0_8:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	testl	%eax, %eax
	je	LBB0_21
## %bb.9:
	cmpl	$3, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$4, %eax
	je	LBB0_20
## %bb.11:
	movq	_D_USBI@GOTPCREL(%rip), %rcx
	movq	_D_USBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	$3, %r8d
	callq	_gspca_dbg
LBB0_12:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	cmpl	$3, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$4, %eax
	je	LBB0_20
## %bb.15:
	movq	_D_USBI@GOTPCREL(%rip), %rcx
	movq	_D_USBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	$4, %r8d
	callq	_gspca_dbg
LBB0_16:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	cmpl	$3, %eax
	je	LBB0_20
## %bb.18:
	cmpl	$4, %eax
	je	LBB0_20
## %bb.19:
	movq	_D_USBI@GOTPCREL(%rip), %rcx
	movq	_D_USBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	$5, %r8d
	callq	_gspca_dbg
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV534_REG_STATUS,4,2           ## @OV534_REG_STATUS
	.comm	_D_USBI,4,2                     ## @D_USBI
	.comm	_D_USBO,4,2                     ## @D_USBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sccb status 0x%02x, attempt %d/5\n"

	.no_dead_strip	_sccb_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sccb_check_status
_sccb_check_status:                     ; @sccb_check_status
	.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	x19, x0
	mov	w0, #20
	bl	_msleep
Lloh0:
	adrp	x20, _OV534_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OV534_REG_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_reg_r
	cbz	w0, LBB0_21
; %bb.1:
	mov	x3, x0
	cmp	w0, #3
	b.eq	LBB0_4
; %bb.2:
	cmp	w3, #4
	b.eq	LBB0_20
; %bb.3:
Lloh2:
	adrp	x8, _D_USBI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _D_USBO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _D_USBO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #1
	bl	_gspca_dbg
LBB0_4:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_reg_r
	cbz	w0, LBB0_21
; %bb.5:
	mov	x3, x0
	cmp	w0, #3
	b.eq	LBB0_8
; %bb.6:
	cmp	w3, #4
	b.eq	LBB0_20
; %bb.7:
Lloh10:
	adrp	x8, _D_USBI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _D_USBO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _D_USBO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #2
	bl	_gspca_dbg
LBB0_8:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_reg_r
	cbz	w0, LBB0_21
; %bb.9:
	mov	x3, x0
	cmp	w0, #3
	b.eq	LBB0_12
; %bb.10:
	cmp	w3, #4
	b.eq	LBB0_20
; %bb.11:
Lloh18:
	adrp	x8, _D_USBI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _D_USBO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _D_USBO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #3
	bl	_gspca_dbg
LBB0_12:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_reg_r
	cbz	w0, LBB0_21
; %bb.13:
	mov	x3, x0
	cmp	w0, #3
	b.eq	LBB0_16
; %bb.14:
	cmp	w3, #4
	b.eq	LBB0_20
; %bb.15:
Lloh26:
	adrp	x8, _D_USBI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _D_USBO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _D_USBO@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #4
	bl	_gspca_dbg
LBB0_16:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_reg_r
	cbz	w0, LBB0_21
; %bb.17:
	mov	x3, x0
	cmp	w0, #3
	b.eq	LBB0_20
; %bb.18:
	cmp	w3, #4
	b.eq	LBB0_20
; %bb.19:
Lloh34:
	adrp	x8, _D_USBI@GOTPAGE
Lloh35:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _D_USBO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _D_USBO@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh40:
	adrp	x2, l_.str@PAGE
Lloh41:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #5
	bl	_gspca_dbg
LBB0_20:
	mov	w0, #0
	b	LBB0_22
LBB0_21:
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_OV534_REG_STATUS,4,2           ; @OV534_REG_STATUS
	.comm	_D_USBI,4,2                     ; @D_USBI
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sccb status 0x%02x, attempt %d/5\n"

	.no_dead_strip	_sccb_check_status
.subsections_via_symbols
