	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_ctl_reg
_init_ctl_reg:                          ## @init_ctl_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	xorl	%esi, %esi
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movl	$8621, %edx                     ## imm = 0x21AD
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8620, %edx                     ## imm = 0x21AC
	movl	$1, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8611, %edx                     ## imm = 0x21A3
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_w_riv                      ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	$8437, %edx                     ## imm = 0x20F5
	movl	$64, %ecx
	callq	_reg_w_riv
	movl	$8329, %r14d                    ## imm = 0x2089
	movl	$8436, %edx                     ## imm = 0x20F4
	jmp	LBB0_4
LBB0_3:
	movl	$8621, %edx                     ## imm = 0x21AD
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movl	$8611, %r14d                    ## imm = 0x21A3
	movl	$8620, %edx                     ## imm = 0x21AC
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spca504B_PollingDataReady      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_ctl_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ctl_reg
_init_ctl_reg:                          ; @init_ctl_reg
	.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]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w2, #8621
	mov	w3, #0
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8620
	mov	w3, #1
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8611
	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
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w1, #0
	mov	w2, #8437
	mov	w3, #64
	bl	_reg_w_riv
	mov	w20, #8329
	mov	w2, #8436
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	mov	w2, #8621
	mov	w3, #0
	bl	_reg_w_riv
	mov	w20, #8611
	mov	w2, #8620
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_reg_w_riv
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spca504B_PollingDataReady
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_ctl_reg
.subsections_via_symbols
