	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switch_input_free_input
_switch_input_free_input:               ## @switch_input_free_input
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	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	%rdi, %r15
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	*(%rcx)
LBB0_3:
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.4:
	movq	(%r15), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movl	%ecx, %edx
	cmpq	%rdx, %r12
	jae	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_hidStopSixAxisSensor
	incq	%rbx
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %ecx
	cmpq	%rcx, %rbx
	jb	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %ecx
	jmp	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_12:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.no_dead_strip	_switch_input_free_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switch_input_free_input
_switch_input_free_input:               ; @switch_input_free_input
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_12
; %bb.1:
	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	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	blr	x8
LBB0_3:
Lloh0:
	adrp	x20, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DEFAULT_MAX_PADS@GOTPAGEOFF]
	ldr	w9, [x20]
	cbz	w9, LBB0_11
; %bb.4:
	mov	x21, #0
	ldr	x8, [x19]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, uxtw
	b.hs	LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w10, [x8, x21, lsl #2]
	cbz	w10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x8, x21, lsl #2]
	cbz	w10, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, x22, lsl #2]
	bl	_hidStopSixAxisSensor
	add	x22, x22, #1
	ldr	x8, [x19]
	ldr	w9, [x8, x21, lsl #2]
	cmp	x22, x9
	b.lo	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20]
	b	LBB0_5
LBB0_11:
	mov	x0, 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	_free
LBB0_12:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.no_dead_strip	_switch_input_free_input
.subsections_via_symbols
