	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_route_incoming_frame           ## -- Begin function route_incoming_frame
	.p2align	4, 0x90
_route_incoming_frame:                  ## @route_incoming_frame
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_is_master@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_DOWN_LINK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_9
## %bb.2:
	movslq	%r14d, %rax
	decl	%r14d
	movq	-8(%rbx,%rax,8), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_transport_recv_frame           ## TAILCALL
LBB0_3:
	movq	_UP_LINK@GOTPCREL(%rip), %rcx
	movslq	%r14d, %rax
	leaq	-1(%rax), %r15
	movq	-8(%rbx,%rax,8), %rax
	cmpq	%rdi, (%rcx)
	jne	LBB0_7
## %bb.4:
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_transport_recv_frame
	movq	(%rbx,%r15,8), %rax
LBB0_6:
	sarq	%rax
	movq	%rax, (%rbx,%r15,8)
	movq	_DOWN_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	incq	%rax
	movq	%rax, (%rbx,%r15,8)
	movq	(%rcx), %rdi
LBB0_8:
	movq	%rbx, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_validator_send_frame           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_is_master,8,3                  ## @is_master
	.comm	_DOWN_LINK,8,3                  ## @DOWN_LINK
	.comm	_UP_LINK,8,3                    ## @UP_LINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_route_incoming_frame           ; -- Begin function route_incoming_frame
	.p2align	2
_route_incoming_frame:                  ; @route_incoming_frame
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _is_master@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_master@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DOWN_LINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOWN_LINK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.2:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x8, w20
	sub	x2, x8, #1
	ldr	x0, [x19, x2, lsl #3]
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	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	_transport_recv_frame
LBB0_3:
Lloh6:
	adrp	x9, _UP_LINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UP_LINK@GOTPAGEOFF]
	ldr	x10, [x9]
	sxtw	x8, w20
	sub	x21, x8, #1
	ldr	x8, [x19, x21, lsl #3]
	cmp	x10, x0
	b.ne	LBB0_8
; %bb.4:
	tbz	w8, #0, LBB0_6
; %bb.5:
	mov	x0, #0
	mov	x1, x19
	mov	x2, x21
	bl	_transport_recv_frame
	ldr	x8, [x19, x21, lsl #3]
LBB0_6:
	asr	x8, x8, #1
	str	x8, [x19, x21, lsl #3]
Lloh8:
	adrp	x8, _DOWN_LINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DOWN_LINK@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	b	LBB0_9
LBB0_7:
	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
LBB0_8:
	add	x8, x8, #1
	str	x8, [x19, x21, lsl #3]
	ldr	x0, [x9]
LBB0_9:
	mov	x1, x19
	mov	x2, x20
	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	_validator_send_frame
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_is_master,8,3                  ; @is_master
	.comm	_DOWN_LINK,8,3                  ; @DOWN_LINK
	.comm	_UP_LINK,8,3                    ; @UP_LINK
.subsections_via_symbols
