	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_to_handler
_input_to_handler:                      ## @input_to_handler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rdx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	16(%r13), %rax
	testq	%rax, %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r14
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.2:
	movl	%r15d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	-12(,%rcx,4), %rbx
	movq	%rdx, %r15
	movq	%rdx, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r12, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r15
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	movq	(%r15), %rax
	movq	%rax, (%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %r14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %r15
	movq	16(%r13), %rax
	addq	$-12, %rbx
	jmp	LBB0_3
LBB0_8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:
	subq	%rdx, %r14
	shrq	$2, %r14
	imull	$-1431655765, %r14d, %r15d      ## imm = 0xAAAAAAAB
LBB0_10:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.11:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movq	%rdx, %rsi
	movl	%r15d, %edx
	callq	*%rax
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movl	8(%rdx), %esi
	movl	(%rdx), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %edx
	movq	%r12, %rdi
	callq	*%rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, %r15d
	je	LBB0_17
## %bb.15:
	movl	%r15d, %eax
	leaq	(%rax,%rax,2), %rax
	leaq	-12(,%rax,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%rcx,%rbx), %esi
	movl	12(%rcx,%rbx), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax,%rbx), %edx
	movq	%r12, %rdi
	callq	*(%r13)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$12, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_input_to_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_to_handler
_input_to_handler:                      ; @input_to_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x23, x20
	cbz	w21, LBB0_9
; %bb.2:
	mov	w9, w21
	mov	w10, #12
	mul	x9, x9, x10
	sub	x21, x9, #12
	mov	x24, x20
	mov	x23, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x24, #4]
	ldr	w3, [x24]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, x23
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w9, [x24, #8]
	str	w9, [x23, #8]
	str	x8, [x23]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #12
	ldr	x8, [x22, #16]
	sub	x21, x21, #12
	b	LBB0_3
LBB0_9:
	sub	x8, x23, x20
	lsr	x8, x8, #2
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w21, w8, w9
LBB0_10:
	cbz	w21, LBB0_13
; %bb.11:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.15:
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	mov	x0, x19
	blr	x8
	cmp	w21, #1
	b.eq	LBB0_13
; %bb.16:
	mov	w8, w21
	add	x20, x20, #20
	mov	w9, #12
	mul	x8, x8, x9
	sub	x23, x8, #12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldp	w2, w1, [x20, #-4]
	ldur	w3, [x20, #-8]
	mov	x0, x19
	blr	x8
	add	x20, x20, #12
	subs	x23, x23, #12
	b.ne	LBB0_17
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_input_to_handler
.subsections_via_symbols
