	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spca504A_acknowledged_command
_spca504A_acknowledged_command:         ## @spca504A_acknowledged_command
	.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
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rdi, %r15
	callq	_reg_w_riv
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_reg_r
	cmpq	$0, (%r15)
	js	LBB0_6
## %bb.1:
	movq	_D_FRAM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_gspca_dbg
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	200(%rbx), %rax
	cmpq	$2, %rax
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_reg_r
	movq	8(%r15), %rax
	decq	%rbx
	cmpq	%r14, (%rax)
	jne	LBB0_3
## %bb.5:
	movl	(%r12), %esi
	negq	%rbx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	movq	%rbx, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_FRAM,4,2                     ## @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Status 0x%02x Need 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"status 0x%04x after wait %d\n"

	.no_dead_strip	_spca504A_acknowledged_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spca504A_acknowledged_command
_spca504A_acknowledged_command:         ; @spca504A_acknowledged_command
	.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	x21, x5
	mov	x19, x4
	mov	x20, x0
	bl	_reg_w_riv
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x22, _D_FRAM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_FRAM@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x20, #8]
	ldr	x3, [x8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_gspca_dbg
	cbz	x21, LBB0_6
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, #200
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	sub	x21, x21, #1
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.5:
	ldr	w1, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	neg	x4, x21
	mov	x0, x20
	mov	x3, x19
	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
	b	_gspca_dbg
LBB0_6:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_D_FRAM,4,2                     ; @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Status 0x%02x Need 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"status 0x%04x after wait %d\n"

	.no_dead_strip	_spca504A_acknowledged_command
.subsections_via_symbols
