	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function par96_rx
_par96_rx:                              ## @par96_rx
	.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
	movq	%rsi, %r14
	movq	24(%rsi), %rax
	movq	(%rax), %r12
	movq	_PAR96_BURSTBITS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r13d
	sarl	%r13d
	xorl	%ecx, %r13d
	movq	(%r12), %rax
	movq	_PAR96_PTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PAR97_POWER@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	_PAR96_DESCRAM_TAPSH1@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r13d, %eax
	shrl	%cl, %eax
	movq	_PAR96_DESCRAM_TAPSH2@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	xorl	%r13d, %eax
	shrl	%cl, %r13d
	xorl	%eax, %r13d
	shrl	%r15d
	shll	$15, %r13d
	movzwl	%r13w, %eax
	xorl	$32768, %eax                    ## imm = 0x8000
	orl	%eax, %r15d
	movq	(%r12), %rax
	movq	_PAR96_PTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r14), %esi
	movq	_PAR96_BURST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%r12, %rdi
	callq	*8(%rax)
	incl	%ebx
	movq	_PAR96_BURSTBITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shll	8(%r14)
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movl	8(%r14), %ecx
	movq	_PAR96_RXBIT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	orl	$1, %ecx
	movl	%ecx, 8(%r14)
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_hdlcdrv_putbits
	movq	_BAYCOM_OPTIONS_SOFTDCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_35
## %bb.7:
	movswl	14(%r14), %eax
	shll	$16, %r15d
	orl	%eax, %r15d
	movl	%r15d, 12(%r14)
	movq	_PAR96_BURSTBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_32
## %bb.8:
	movq	_HDLCDRV_MAXFLEN@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	addl	$4, %edx
	movl	%r9d, %r10d
	decl	%r10d
	je	LBB0_9
## %bb.15:
	movl	%r9d, %eax
	andl	$-2, %eax
	movl	$130560, %edi                   ## imm = 0x1FE00
	movl	$64512, %ecx                    ## imm = 0xFC00
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, 16(%r14)
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	shll	$2, %edi
	shll	$2, %ecx
	addl	$-2, %eax
	je	LBB0_10
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ebx
	andl	%r15d, %ebx
	cmpl	%ecx, %ebx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	(%rdi,%rdi), %ebx
	leal	(%rcx,%rcx), %esi
	andl	%r15d, %ebx
	cmpl	%esi, %ebx
	jne	LBB0_19
	jmp	LBB0_18
LBB0_35:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	_PAR96_DCD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%al
	jmp	LBB0_36
LBB0_9:
	movl	$130560, %edi                   ## imm = 0x1FE00
	movl	$64512, %ecx                    ## imm = 0xFC00
LBB0_10:
	testb	$1, %r9b
	je	LBB0_13
## %bb.11:
	andl	%r15d, %edi
	cmpl	%ecx, %edi
	jne	LBB0_13
## %bb.12:
	movl	%edx, 16(%r14)
LBB0_13:
	movl	(%r8), %ecx
	testl	%r10d, %r10d
	je	LBB0_14
## %bb.20:
	movl	%r9d, %edi
	andl	$-2, %edi
	movl	$130560, %edx                   ## imm = 0x1FE00
	movl	$130560, %esi                   ## imm = 0x1FE00
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	shll	$2, %esi
	shll	$2, %edx
	addl	$-2, %edi
	je	LBB0_28
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	andl	%r15d, %eax
	cmpl	%edx, %eax
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	16(%r14), %eax
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	subl	%ecx, %eax
	addl	$10, %eax
	movl	%eax, 16(%r14)
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	leal	(%rsi,%rsi), %eax
	leal	(%rdx,%rdx), %ebx
	andl	%r15d, %eax
	cmpl	%ebx, %eax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	16(%r14), %eax
	testl	%eax, %eax
	js	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	subl	%ecx, %eax
	addl	$10, %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_27
LBB0_14:
	movl	$130560, %edx                   ## imm = 0x1FE00
	movl	$130560, %esi                   ## imm = 0x1FE00
LBB0_28:
	testb	$1, %r9b
	je	LBB0_32
## %bb.29:
	andl	%r15d, %esi
	cmpl	%edx, %esi
	jne	LBB0_32
## %bb.30:
	movl	16(%r14), %eax
	testl	%eax, %eax
	js	LBB0_32
## %bb.31:
	subl	%ecx, %eax
	addl	$10, %eax
	movl	%eax, 16(%r14)
LBB0_32:
	movl	16(%r14), %eax
	testl	%eax, %eax
	js	LBB0_34
## %bb.33:
	addl	$-2, %eax
	movl	%eax, 16(%r14)
LBB0_34:
	testl	%eax, %eax
	setg	%al
LBB0_36:
	movzbl	%al, %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdlcdrv_setdcd                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAR96_BURSTBITS,4,2            ## @PAR96_BURSTBITS
	.comm	_PAR96_RXBIT,4,2                ## @PAR96_RXBIT
	.comm	_PAR97_POWER,4,2                ## @PAR97_POWER
	.comm	_PAR96_PTT,4,2                  ## @PAR96_PTT
	.comm	_PAR96_DESCRAM_TAPSH1,4,2       ## @PAR96_DESCRAM_TAPSH1
	.comm	_PAR96_DESCRAM_TAPSH2,4,2       ## @PAR96_DESCRAM_TAPSH2
	.comm	_PAR96_BURST,4,2                ## @PAR96_BURST
	.comm	_BAYCOM_OPTIONS_SOFTDCD,4,2     ## @BAYCOM_OPTIONS_SOFTDCD
	.comm	_HDLCDRV_MAXFLEN,4,2            ## @HDLCDRV_MAXFLEN
	.comm	_PAR96_DCD,4,2                  ## @PAR96_DCD
	.no_dead_strip	_par96_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function par96_rx
_par96_rx:                              ; @par96_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	ldr	x8, [x1, #24]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _PAR96_BURSTBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAR96_BURSTBITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w20, #0
	mov	w22, #0
Lloh3:
	adrp	x25, _PAR97_POWER@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAR97_POWER@GOTPAGEOFF]
Lloh5:
	adrp	x26, _PAR96_PTT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PAR96_PTT@GOTPAGEOFF]
Lloh7:
	adrp	x28, _PAR96_DESCRAM_TAPSH2@GOTPAGE
Lloh8:
	ldr	x28, [x28, _PAR96_DESCRAM_TAPSH2@GOTPAGEOFF]
	mov	w23, #32768
Lloh9:
	adrp	x24, _PAR96_BURST@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PAR96_BURST@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	eor	w27, w8, w8, asr #1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w1, w10, w9
	mov	x0, x21
	blr	x8
Lloh11:
	adrp	x8, _PAR96_DESCRAM_TAPSH1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAR96_DESCRAM_TAPSH1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsr	w8, w27, w8
	ldr	w9, [x28]
	lsr	w9, w27, w9
	eor	w8, w8, w27
	eor	w8, w8, w9
	bic	w8, w23, w8, lsl #15
	orr	w22, w8, w22, lsr #1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w1, w9, w10
	mov	x0, x21
	blr	x8
	add	w20, w20, #1
Lloh14:
	adrp	x8, _PAR96_BURSTBITS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAR96_BURSTBITS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
Lloh17:
	adrp	x8, _PAR96_RXBIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAR96_RXBIT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
	ldr	w8, [x19, #8]
	tst	w9, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w8, #0x1
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	add	x20, x19, #4
	mov	x0, x20
	mov	x1, x22
	bl	_hdlcdrv_putbits
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _BAYCOM_OPTIONS_SOFTDCD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BAYCOM_OPTIONS_SOFTDCD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
	ldrsh	w8, [x19, #14]
	orr	w8, w8, w22, lsl #16
	str	w8, [x19, #12]
Lloh23:
	adrp	x9, _PAR96_BURSTBITS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PAR96_BURSTBITS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.8:
Lloh26:
	adrp	x10, _HDLCDRV_MAXFLEN@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HDLCDRV_MAXFLEN@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w11, w11, #4
	mov	w12, #130560
	mov	w13, #64512
	mov	x14, x9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	lsl	w12, w12, #1
	lsl	w13, w13, #1
	subs	w14, w14, #1
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w15, w12, w8
	cmp	w15, w13
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w11, [x19, #16]
	b	LBB0_9
LBB0_12:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
Lloh28:
	adrp	x8, _PAR96_DCD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PAR96_DCD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w1, ne
	b	LBB0_21
LBB0_13:
	ldr	w10, [x10]
	mov	w11, #130560
	mov	w12, #130560
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	lsl	w12, w12, #1
	lsl	w11, w11, #1
	subs	w9, w9, #1
	b.eq	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	and	w13, w12, w8
	cmp	w13, w11
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w13, [x19, #16]
	tbnz	w13, #31, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w13, w13, w10
	add	w13, w13, #10
	str	w13, [x19, #16]
	b	LBB0_14
LBB0_18:
	ldr	w8, [x19, #16]
	tbnz	w8, #31, LBB0_20
; %bb.19:
	sub	w8, w8, #2
	str	w8, [x19, #16]
LBB0_20:
	cmp	w8, #0
	cset	w1, gt
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hdlcdrv_setdcd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PAR96_BURSTBITS,4,2            ; @PAR96_BURSTBITS
	.comm	_PAR96_RXBIT,4,2                ; @PAR96_RXBIT
	.comm	_PAR97_POWER,4,2                ; @PAR97_POWER
	.comm	_PAR96_PTT,4,2                  ; @PAR96_PTT
	.comm	_PAR96_DESCRAM_TAPSH1,4,2       ; @PAR96_DESCRAM_TAPSH1
	.comm	_PAR96_DESCRAM_TAPSH2,4,2       ; @PAR96_DESCRAM_TAPSH2
	.comm	_PAR96_BURST,4,2                ; @PAR96_BURST
	.comm	_BAYCOM_OPTIONS_SOFTDCD,4,2     ; @BAYCOM_OPTIONS_SOFTDCD
	.comm	_HDLCDRV_MAXFLEN,4,2            ; @HDLCDRV_MAXFLEN
	.comm	_PAR96_DCD,4,2                  ; @PAR96_DCD
	.no_dead_strip	_par96_rx
.subsections_via_symbols
