	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function main_rec_hfcpci
_main_rec_hfcpci:                       ## @main_rec_hfcpci
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rdx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 24(%rdx)
	je	LBB0_3
LBB0_2:
	movq	16(%rdx), %rax
	leaq	8(%rax), %r13
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_3:
	movq	16(%rdx), %rax
	leaq	32(%rax), %r13
	addq	$24, %rax
	movl	$1, %ecx
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rdx), %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$-4, %r14d
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %rbx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	cmpl	%r8d, %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	xorl	%r12d, %r12d
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_hfcpci_empty_fifo_trans
	movl	%eax, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rdx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_debugl1
	movl	4(%r13), %r8d
	movl	(%rbx), %eax
	andl	(%r15), %eax
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rdx
	movslq	%r8d, %rsi
	movl	(%rdx,%rsi,8), %ecx
	movl	4(%rdx,%rsi,8), %r8d
	movl	%ecx, %edx
	subl	%r8d, %edx
	movl	%edx, %esi
	sarl	$31, %esi
	movq	_B_FIFO_SIZE@GOTPCREL(%rip), %rdi
	andl	(%rdi), %esi
	leal	(%rdx,%rsi), %ebx
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rdx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_debugl1
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_hfcpci_empty_fifo
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_skb_queue_tail
	movq	_B_RCVBUFREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hfcpci_sched_event
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %eax
	subl	4(%r13), %eax
	movq	_MAX_B_FRAMES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	incl	%edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%edx, %ecx
	movq	8(%r15), %rdx
	leal	(%rcx,%rax), %esi
	incl	%esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%esi, (%rdx,%rbx,4)
	movq	%r15, %r12
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hfcpci_clear_fifo_rx
	movq	8(%r12), %rax
	movl	$0, (%rax,%rbx,4)
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, %ecx
	movl	%ecx, (%rdx,%rbx,4)
	xorl	%r12d, %r12d
	cmpl	$2, %ecx
	setge	%r12b
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %rbx
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	testl	%r12d, %r12d
	jne	LBB0_5
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_LOCK_ATOMIC,4,2            ## @FLG_LOCK_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rec_data %d blocked"

	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
L_.str.1:                               ## @.str.1
	.asciz	"hfcpci rec %d f1(%d) f2(%d)"

	.comm	_B_FIFO_SIZE,8,3                ## @B_FIFO_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"hfcpci rec %d z1(%x) z2(%x) cnt(%d)"

	.comm	_B_RCVBUFREADY,4,2              ## @B_RCVBUFREADY
	.comm	_MAX_B_FRAMES,8,3               ## @MAX_B_FRAMES
	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
	.no_dead_strip	_main_rec_hfcpci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function main_rec_hfcpci
_main_rec_hfcpci:                       ; @main_rec_hfcpci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldp	x8, x19, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
LBB0_2:
	mov	w8, #0
	ldr	x9, [x19, #16]
	add	x21, x9, #8
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	add	x21, x8, #32
	add	x9, x8, #24
	mov	w8, #1
LBB0_4:
	ldr	x22, [x9]
	add	x23, x19, #4
	add	x9, x20, #8
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	mov	w26, #-4
Lloh0:
	adrp	x27, _FLG_LOCK_ATOMIC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FLG_LOCK_ATOMIC@GOTPAGEOFF]
	mov	w25, w8
Lloh2:
	adrp	x24, _L1_DEB_HSCX@GOTPAGE
Lloh3:
	ldr	x24, [x24, _L1_DEB_HSCX@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	mov	x1, x23
	bl	_test_and_set_bit
	cbnz	x0, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w8, [x21]
	cmp	w9, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _L1_MODE_TRANS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_hfcpci_empty_fifo_trans
	mov	x28, x0
	b	LBB0_20
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x19]
	ldr	w11, [x24]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x20, #16]
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_debugl1
	ldr	w8, [x21, #4]
	ldr	w9, [x19]
	ldr	w10, [x24]
	and	w9, w10, w9
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w28, #0
	b	LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x21, #8]
	add	x10, x10, w8, sxtw #3
	ldp	w8, w10, [x10]
Lloh9:
	adrp	x11, _B_FIFO_SIZE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _B_FIFO_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	sub	w12, w8, w10
	and	w11, w11, w12, asr #31
	add	w11, w12, w11
	add	w28, w11, #1
	cbz	w9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x20, #16]
	stp	x10, x28, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_debugl1
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x28
	bl	_hfcpci_empty_fifo
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_skb_queue_tail
Lloh14:
	adrp	x8, _B_RCVBUFREADY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B_RCVBUFREADY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hfcpci_sched_event
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x21]
Lloh17:
	adrp	x10, _MAX_B_FRAMES@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAX_B_FRAMES@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	add	w10, w10, #1
	sub	w8, w8, w9
	and	w9, w10, w8, asr #31
	add	w8, w9, w8
	ldr	x9, [x19, #8]
	ldr	w10, [x9, x25, lsl #2]
	add	w11, w8, #1
	cmp	w10, w11
	b.le	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_hfcpci_clear_fifo_rx
	mov	w28, #0
	ldr	x8, [x19, #8]
	str	wzr, [x8, x25, lsl #2]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x9, x25, lsl #2]
	cmp	w8, #1
	cset	w28, gt
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	mov	x1, x23
	bl	_test_and_clear_bit
	cbz	w26, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
	cbnz	w28, LBB0_5
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	ldr	x2, [x20, #16]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_debugl1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_LOCK_ATOMIC,4,2            ; @FLG_LOCK_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rec_data %d blocked"

	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
l_.str.1:                               ; @.str.1
	.asciz	"hfcpci rec %d f1(%d) f2(%d)"

	.comm	_B_FIFO_SIZE,8,3                ; @B_FIFO_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"hfcpci rec %d z1(%x) z2(%x) cnt(%d)"

	.comm	_B_RCVBUFREADY,4,2              ; @B_RCVBUFREADY
	.comm	_MAX_B_FRAMES,8,3               ; @MAX_B_FRAMES
	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
	.no_dead_strip	_main_rec_hfcpci
.subsections_via_symbols
