	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_stopN
_sd_stopN:                              ## @sd_stopN
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movl	4(%rbx), %eax
	movq	_AiptekMiniPenCam13@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movl	$36, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$157, %r8d
	movl	$1, %r9d
	callq	_spca504A_acknowledged_command
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spca504A_acknowledged_command  ## TAILCALL
LBB0_3:
	movl	$49, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	callq	_spca504B_WaitCmdStatus
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spca504B_PollingDataReady      ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	movl	$36, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_spca504_acknowledged_command
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reg_w_riv                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AiptekMiniPenCam13,4,2         ## @AiptekMiniPenCam13
	.no_dead_strip	_sd_stopN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_stopN
_sd_stopN:                              ; @sd_stopN
	.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
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	w1, #0
	mov	w2, #8192
	mov	w3, #0
	bl	_reg_w_riv
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _AiptekMiniPenCam13@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AiptekMiniPenCam13@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x19
	mov	w1, #36
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w2, #0
	mov	w3, #0
	mov	w4, #157
	mov	w5, #1
	bl	_spca504A_acknowledged_command
	mov	x0, x19
	mov	w1, #1
	mov	w2, #15
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spca504A_acknowledged_command
LBB0_3:
	mov	w1, #49
	mov	w2, #0
	mov	w3, #0
	bl	_reg_w_riv
	mov	x0, x19
	bl	_spca504B_WaitCmdStatus
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spca504B_PollingDataReady
LBB0_4:
	mov	w2, #0
	mov	w3, #0
	bl	_spca504_acknowledged_command
	mov	x0, x19
	mov	w1, #1
	mov	w2, #15
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w_riv
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AiptekMiniPenCam13,4,2         ; @AiptekMiniPenCam13
	.no_dead_strip	_sd_stopN
.subsections_via_symbols
