	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function main_rec_2bds0
_main_rec_2bds0:                        ## @main_rec_2bds0
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	leaq	4(%r13), %rbx
	movl	$-4, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_HFCB_REC@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	4(%r15), %edi
	callq	_HFCB_CHANNEL
	orq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_SelFiFo
	movq	_HFCB_F1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_HFCB_FIFO@GOTPCREL(%rip), %r12
	orq	(%r12), %rbx
	orq	(%r14), %rbx
	movl	4(%r15), %edi
	callq	_HFCB_CHANNEL
	orq	%rax, %rbx
	movq	%r13, %rdi
	callq	_WaitNoBusy
	movq	_HFCD_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_ReadReg
	movq	_HFCB_F2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%r12), %rbx
	movq	%rax, %r12
	movq	_HFCB_REC@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	4(%r15), %edi
	callq	_HFCB_CHANNEL
	orq	%rax, %rbx
	movq	%r13, %rdi
	callq	_WaitNoBusy
	movl	(%r14), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_ReadReg
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %edx
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_debugl1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_HFCB_Z1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_HFCB_FIFO@GOTPCREL(%rip), %r14
	orq	(%r14), %rbx
	movq	_HFCB_REC@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	4(%r15), %edi
	callq	_HFCB_CHANNEL
	orq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ReadZReg
	movq	_HFCB_Z2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%r14), %rbx
	movl	%eax, %r14d
	movq	_HFCB_REC@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	4(%r15), %edi
	callq	_HFCB_CHANNEL
	orq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ReadZReg
	movl	%r14d, %r8d
	movl	%r14d, %r15d
	subl	%eax, %r15d
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	8(%r13), %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edx
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r8d, %ecx
	movl	%eax, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_debugl1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_hfc_empty_fifo
	testq	%rax, %rax
	movq	%rbx, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_skb_queue_tail
	movq	_B_RCVBUFREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_schedule_event
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	subl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	leal	32(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	cmpl	$2, %eax
	setge	%r12b
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	testb	%r12b, %r12b
	jne	LBB0_1
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$40, %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	_HFCB_REC,8,3                   ## @HFCB_REC
	.comm	_HFCB_FIFO,8,3                  ## @HFCB_FIFO
	.comm	_HFCB_F1,8,3                    ## @HFCB_F1
	.comm	_HFCD_DATA,4,2                  ## @HFCD_DATA
	.comm	_HFCB_F2,8,3                    ## @HFCB_F2
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
L_.str.1:                               ## @.str.1
	.asciz	"hfc rec %d f1(%d) f2(%d)"

	.comm	_HFCB_Z1,8,3                    ## @HFCB_Z1
	.comm	_HFCB_Z2,8,3                    ## @HFCB_Z2
L_.str.2:                               ## @.str.2
	.asciz	"hfc rec %d z1(%x) z2(%x) cnt(%d)"

	.comm	_B_RCVBUFREADY,4,2              ## @B_RCVBUFREADY
	.no_dead_strip	_main_rec_2bds0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function main_rec_2bds0
_main_rec_2bds0:                        ; @main_rec_2bds0
	.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
	ldr	x19, [x0, #8]
	add	x21, x19, #4
	mov	w28, #-4
Lloh0:
	adrp	x22, _FLG_LOCK_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FLG_LOCK_ATOMIC@GOTPAGEOFF]
Lloh2:
	adrp	x23, _HFCB_REC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HFCB_REC@GOTPAGEOFF]
Lloh4:
	adrp	x27, _HFCB_FIFO@GOTPAGE
Lloh5:
	ldr	x27, [x27, _HFCB_FIFO@GOTPAGEOFF]
Lloh6:
	adrp	x26, _HFCB_F1@GOTPAGE
Lloh7:
	ldr	x26, [x26, _HFCB_F1@GOTPAGEOFF]
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	x0, LBB0_16
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x24, [x23]
	ldr	w0, [x20, #4]
	bl	_HFCB_CHANNEL
	orr	x1, x0, x24
	mov	x0, x19
	bl	_SelFiFo
	ldr	x8, [x27]
	ldr	x9, [x26]
	orr	x8, x9, x8
	ldr	x9, [x23]
	orr	x24, x8, x9
	ldr	w0, [x20, #4]
	bl	_HFCB_CHANNEL
	orr	x24, x24, x0
	mov	x0, x19
	bl	_WaitNoBusy
Lloh8:
	adrp	x26, _HFCD_DATA@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HFCD_DATA@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x24
	bl	_ReadReg
	mov	x24, x0
	ldr	x8, [x27]
Lloh10:
	adrp	x9, _HFCB_F2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HFCB_F2@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x23]
	orr	x25, x8, x9
	ldr	w0, [x20, #4]
	bl	_HFCB_CHANNEL
	orr	x25, x25, x0
	mov	x0, x19
	bl	_WaitNoBusy
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x25
	bl	_ReadReg
	cmp	x24, x0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	b	LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x20, #4]
	stp	x24, x25, [sp]
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_debugl1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
Lloh18:
	adrp	x9, _HFCB_Z1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HFCB_Z1@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x23]
	orr	x26, x8, x9
	ldr	w0, [x20, #4]
	bl	_HFCB_CHANNEL
	orr	x1, x26, x0
	mov	x0, x19
	bl	_ReadZReg
	mov	x26, x0
	mov	x21, x27
	ldr	x8, [x27]
Lloh21:
	adrp	x9, _HFCB_Z2@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HFCB_Z2@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x23]
	orr	x27, x8, x9
	ldr	w0, [x20, #4]
	bl	_HFCB_CHANNEL
	orr	x1, x27, x0
	mov	x0, x19
	bl	_ReadZReg
                                        ; kill: def $w0 killed $w0 def $x0
	subs	w8, w26, w0
	b.pl	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x19, #8]
	add	w8, w8, w9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w27, w8, #1
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x20, #4]
	stp	x0, x27, [sp, #8]
	str	x26, [sp]
	mov	x0, x19
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_debugl1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x27
	bl	_hfc_empty_fifo
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_skb_queue_tail
Lloh29:
	adrp	x8, _B_RCVBUFREADY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _B_RCVBUFREADY@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_schedule_event
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w24, w25
	add	w9, w8, #32
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w8, #1
	cset	w24, gt
	mov	x27, x21
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh32:
	adrp	x26, _HFCB_F1@GOTPAGE
Lloh33:
	ldr	x26, [x26, _HFCB_F1@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	w28, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w28, w28, #1
	tbnz	w24, #0, LBB0_1
LBB0_15:
	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_16:
	ldr	w2, [x20, #4]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.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	_HFCB_REC,8,3                   ; @HFCB_REC
	.comm	_HFCB_FIFO,8,3                  ; @HFCB_FIFO
	.comm	_HFCB_F1,8,3                    ; @HFCB_F1
	.comm	_HFCD_DATA,4,2                  ; @HFCD_DATA
	.comm	_HFCB_F2,8,3                    ; @HFCB_F2
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
l_.str.1:                               ; @.str.1
	.asciz	"hfc rec %d f1(%d) f2(%d)"

	.comm	_HFCB_Z1,8,3                    ; @HFCB_Z1
	.comm	_HFCB_Z2,8,3                    ; @HFCB_Z2
l_.str.2:                               ; @.str.2
	.asciz	"hfc rec %d z1(%x) z2(%x) cnt(%d)"

	.comm	_B_RCVBUFREADY,4,2              ; @B_RCVBUFREADY
	.no_dead_strip	_main_rec_2bds0
.subsections_via_symbols
