	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smt_split_up_fifo
_smt_split_up_fifo:                     ## @smt_split_up_fifo
	.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
	movq	_SMT_R1_RXD_COUNT@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_SMT_E0117@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMT_E0117_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_SMT_PANIC
LBB0_2:
	movq	_SMT_R2_RXD_COUNT@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	leal	-1(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_3
## %bb.5:
	movq	_RX_LARGE_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_RX_SMALL_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_RX_FIFO_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movslq	%eax, %rcx
	movq	_RX_FIFO_SPACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r14), %rdi
	movq	%rdi, %rax
	imulq	%rsi, %rax
	addq	%rdi, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_9
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_9:
	movl	%ecx, (%rbx)
	movslq	(%r8), %rax
	imulq	%rax, %rsi
	addq	%rax, %rdi
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_12
LBB0_10:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	movq	%rax, 40(%rbx)
	movq	56(%rbx), %rax
	movq	_PATH0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_14
## %bb.13:
	movl	4(%rbx), %esi
	movq	_SYNC_TRAFFIC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	je	LBB0_19
LBB0_16:
	movq	_SEND_ASYNC_AS_SYNC@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_TX_LARGE_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 8(%rbx)
	movq	_TX_SMALL_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_14:
	movq	_SEND_ASYNC_AS_SYNC@GOTPCREL(%rip), %rdx
	movq	_SYNC_TRAFFIC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdx), %esi
	orl	%eax, %esi
	notl	%esi
	andl	4(%rbx), %esi
	movl	%esi, 4(%rbx)
	testl	%esi, %eax
	jne	LBB0_16
LBB0_19:
	movl	$0, 8(%rbx)
	movq	_TX_FIFO_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_18:
	movq	_TX_MEDIUM_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%eax, %edx
LBB0_20:
	movl	%eax, 12(%rbx)
	movq	_RX_FIFO_OFF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	addl	20(%rbx), %edi
	movl	%edi, 16(%rbx)
	addl	%edi, %ecx
	movl	%ecx, 24(%rbx)
	addl	%edx, %ecx
	movl	%ecx, 28(%rbx)
	addl	%eax, %ecx
	movl	%ecx, 32(%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_DB_SMT
	movl	20(%rbx), %esi
	movl	36(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DB_SMT
	movl	16(%rbx), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_DB_SMT
	movl	28(%rbx), %esi
	movl	32(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DB_SMT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMT_R1_RXD_COUNT,8,3           ## @SMT_R1_RXD_COUNT
	.comm	_SMT_E0117,4,2                  ## @SMT_E0117
	.comm	_SMT_E0117_MSG,4,2              ## @SMT_E0117_MSG
	.comm	_SMT_R2_RXD_COUNT,4,2           ## @SMT_R2_RXD_COUNT
	.comm	_RX_FIFO_SPACE,8,3              ## @RX_FIFO_SPACE
	.comm	_RX_LARGE_FIFO,4,2              ## @RX_LARGE_FIFO
	.comm	_RX_SMALL_FIFO,8,3              ## @RX_SMALL_FIFO
	.comm	_PATH0,8,3                      ## @PATH0
	.comm	_SEND_ASYNC_AS_SYNC,4,2         ## @SEND_ASYNC_AS_SYNC
	.comm	_SYNC_TRAFFIC_ON,4,2            ## @SYNC_TRAFFIC_ON
	.comm	_TX_LARGE_FIFO,4,2              ## @TX_LARGE_FIFO
	.comm	_TX_SMALL_FIFO,4,2              ## @TX_SMALL_FIFO
	.comm	_TX_MEDIUM_FIFO,8,3             ## @TX_MEDIUM_FIFO
	.comm	_TX_FIFO_SPACE,4,2              ## @TX_FIFO_SPACE
	.comm	_RX_FIFO_OFF,4,2                ## @RX_FIFO_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FIFO split: mode = %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"rbc_ram_start =\t%x\t rbc_ram_end = \t%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"rx1_fifo_start = %x\t tx_s_start = \t%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"tx_a0_start =\t%x\t rx2_fifo_start = \t%x\n"

	.no_dead_strip	_smt_split_up_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smt_split_up_fifo
_smt_split_up_fifo:                     ; @smt_split_up_fifo
	.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
Lloh0:
	adrp	x20, _SMT_R1_RXD_COUNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SMT_R1_RXD_COUNT@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SMT_E0117@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMT_E0117@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SMT_E0117_MSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMT_E0117_MSG@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SMT_PANIC
LBB0_2:
Lloh8:
	adrp	x9, _SMT_R2_RXD_COUNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SMT_R2_RXD_COUNT@GOTPAGEOFF]
	ldr	w8, [x9]
	sub	w10, w8, #1
	cmp	w10, #3
	b.hs	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _RX_LARGE_FIFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_LARGE_FIFO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh13:
	adrp	x9, _RX_SMALL_FIFO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RX_SMALL_FIFO@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	b	LBB0_7
LBB0_4:
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x9, #0
Lloh16:
	adrp	x8, _RX_FIFO_SPACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RX_FIFO_SPACE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	sxtw	x8, w8
Lloh19:
	adrp	x10, _RX_FIFO_SPACE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RX_FIFO_SPACE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	ldr	x11, [x20]
	mul	x12, x11, x10
	add	x8, x11, x8
	sdiv	x8, x12, x8
	str	w8, [x19]
	ldrsw	x9, [x9]
	mul	x10, x10, x9
	add	x9, x11, x9
	sdiv	x9, x10, x9
LBB0_7:
	str	x9, [x19, #40]
Lloh22:
	adrp	x9, _PATH0@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PATH0@GOTPAGEOFF]
	ldr	x10, [x19, #56]
Lloh24:
	ldr	x9, [x9]
	ldr	x10, [x10, x9, lsl #3]
Lloh25:
	adrp	x9, _SEND_ASYNC_AS_SYNC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SEND_ASYNC_AS_SYNC@GOTPAGEOFF]
	cbz	x10, LBB0_11
; %bb.8:
	ldr	w1, [x19, #4]
Lloh27:
	adrp	x10, _SYNC_TRAFFIC_ON@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SYNC_TRAFFIC_ON@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w1
	b.eq	LBB0_12
LBB0_9:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_14
; %bb.10:
Lloh30:
	adrp	x9, _TX_LARGE_FIFO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TX_LARGE_FIFO@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	str	w9, [x19, #8]
Lloh33:
	adrp	x10, _TX_SMALL_FIFO@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TX_SMALL_FIFO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh35:
	adrp	x10, _SYNC_TRAFFIC_ON@GOTPAGE
Lloh36:
	ldr	x10, [x10, _SYNC_TRAFFIC_ON@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh37:
	ldr	w10, [x10]
	orr	w11, w10, w11
	ldr	w12, [x19, #4]
	bic	w1, w12, w11
	str	w1, [x19, #4]
	tst	w10, w1
	b.ne	LBB0_9
LBB0_12:
	mov	w9, #0
	str	wzr, [x19, #8]
Lloh38:
	adrp	x10, _TX_FIFO_SPACE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _TX_FIFO_SPACE@GOTPAGEOFF]
LBB0_13:
	ldr	w10, [x10]
	b	LBB0_15
LBB0_14:
Lloh40:
	adrp	x9, _TX_MEDIUM_FIFO@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TX_MEDIUM_FIFO@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x9]
	str	w10, [x19, #8]
	mov	x9, x10
LBB0_15:
	ldr	w11, [x19, #20]
Lloh43:
	adrp	x12, _RX_FIFO_OFF@GOTPAGE
Lloh44:
	ldr	x12, [x12, _RX_FIFO_OFF@GOTPAGEOFF]
Lloh45:
	ldr	w12, [x12]
	add	w11, w12, w11
	add	w8, w8, w11
	stp	w10, w11, [x19, #12]
	add	w9, w9, w8
	add	w10, w10, w9
	stp	w8, w9, [x19, #24]
	str	w10, [x19, #32]
Lloh46:
	adrp	x0, l_.str@PAGE
Lloh47:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_DB_SMT
	ldr	w1, [x19, #20]
	ldr	w2, [x19, #36]
Lloh48:
	adrp	x0, l_.str.1@PAGE
Lloh49:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DB_SMT
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #24]
Lloh50:
	adrp	x0, l_.str.2@PAGE
Lloh51:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DB_SMT
	ldp	w1, w2, [x19, #28]
Lloh52:
	adrp	x0, l_.str.3@PAGE
Lloh53:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DB_SMT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SMT_R1_RXD_COUNT,8,3           ; @SMT_R1_RXD_COUNT
	.comm	_SMT_E0117,4,2                  ; @SMT_E0117
	.comm	_SMT_E0117_MSG,4,2              ; @SMT_E0117_MSG
	.comm	_SMT_R2_RXD_COUNT,4,2           ; @SMT_R2_RXD_COUNT
	.comm	_RX_FIFO_SPACE,8,3              ; @RX_FIFO_SPACE
	.comm	_RX_LARGE_FIFO,4,2              ; @RX_LARGE_FIFO
	.comm	_RX_SMALL_FIFO,8,3              ; @RX_SMALL_FIFO
	.comm	_PATH0,8,3                      ; @PATH0
	.comm	_SEND_ASYNC_AS_SYNC,4,2         ; @SEND_ASYNC_AS_SYNC
	.comm	_SYNC_TRAFFIC_ON,4,2            ; @SYNC_TRAFFIC_ON
	.comm	_TX_LARGE_FIFO,4,2              ; @TX_LARGE_FIFO
	.comm	_TX_SMALL_FIFO,4,2              ; @TX_SMALL_FIFO
	.comm	_TX_MEDIUM_FIFO,8,3             ; @TX_MEDIUM_FIFO
	.comm	_TX_FIFO_SPACE,4,2              ; @TX_FIFO_SPACE
	.comm	_RX_FIFO_OFF,4,2                ; @RX_FIFO_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FIFO split: mode = %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"rbc_ram_start =\t%x\t rbc_ram_end = \t%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"rx1_fifo_start = %x\t tx_s_start = \t%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"tx_a0_start =\t%x\t rx2_fifo_start = \t%x\n"

	.no_dead_strip	_smt_split_up_fifo
.subsections_via_symbols
