	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function par96_tx
_par96_tx:                              ## @par96_tx
	.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
	leaq	16(%rsi), %rdi
	callq	_hdlcdrv_getbits
	movl	%eax, %r12d
	movq	_PAR96_BURSTBITS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	(%rax), %r15
	xorl	%r13d, %r13d
	movq	_PAR96_SCRAM_TAP1@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$2, %edx
	andl	%ecx, %edx
	movq	_PAR96_TXBIT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%edx, %ecx
	orb	%al, %cl
	movq	(%r15), %rax
	movzbl	%cl, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movq	(%r15), %rax
	movq	_PAR96_BURST@GOTPCREL(%rip), %rcx
	orb	(%rcx), %bl
	movzbl	%bl, %esi
	movq	%r15, %rdi
	callq	*(%rax)
	incl	%r13d
	shrl	%r12d
	movq	_PAR96_BURSTBITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	_PAR96_SCRAM_TAP1@GOTPCREL(%rip), %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAR97_POWER@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movl	(%r14), %ecx
	leal	(%rcx,%rcx), %esi
	movl	%ecx, %edx
	andl	$1, %edx
	leal	(%rdx,%rcx,2), %edx
	movl	%r12d, %ecx
	andl	$1, %ecx
	xorl	%edx, %ecx
	xorl	$1, %ecx
	movl	%ecx, (%r14)
	movl	(%rbx), %edx
	leal	(%rdx,%rdx), %edi
	testl	%esi, %edi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAR96_SCRAM_TAPN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%edx, %edx
	xorl	%edx, %ecx
	movl	%ecx, (%r14)
	movl	(%rbx), %edx
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAR96_BURSTBITS,4,2            ## @PAR96_BURSTBITS
	.comm	_PAR97_POWER,1,0                ## @PAR97_POWER
	.comm	_PAR96_SCRAM_TAP1,4,2           ## @PAR96_SCRAM_TAP1
	.comm	_PAR96_SCRAM_TAPN,4,2           ## @PAR96_SCRAM_TAPN
	.comm	_PAR96_TXBIT,1,0                ## @PAR96_TXBIT
	.comm	_PAR96_BURST,1,0                ## @PAR96_BURST
	.no_dead_strip	_par96_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function par96_tx
_par96_tx:                              ; @par96_tx
	.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
	add	x0, x1, #16
	bl	_hdlcdrv_getbits
Lloh0:
	adrp	x22, _PAR96_BURSTBITS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAR96_BURSTBITS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w23, #0
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
Lloh2:
	adrp	x24, _PAR97_POWER@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PAR97_POWER@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PAR96_SCRAM_TAP1@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PAR96_SCRAM_TAP1@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PAR96_TXBIT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PAR96_TXBIT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PAR96_BURST@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PAR96_BURST@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w11, [x26]
	tst	w9, w10, lsl #2
	csel	w9, wzr, w11, eq
	orr	w28, w9, w8
	ldr	x8, [x21]
	ldr	x8, [x8]
	and	w1, w28, #0xff
	mov	x0, x21
	blr	x8
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldrb	w9, [x27]
	orr	w9, w9, w28
	and	w1, w9, #0xff
	mov	x0, x21
	blr	x8
	add	w23, w23, #1
	lsr	w20, w20, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24]
	ldr	w9, [x19]
	lsl	w11, w9, #1
	bfi	w9, w9, #1, #31
	and	w10, w20, #0x1
	eor	w9, w10, w9
	eor	w9, w9, #0x1
	str	w9, [x19]
	ldr	w10, [x25]
	tst	w11, w10, lsl #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x10, _PAR96_SCRAM_TAPN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PAR96_SCRAM_TAPN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	eor	w9, w9, w10, lsl #1
	str	w9, [x19]
	ldr	w10, [x25]
	b	LBB0_2
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAR96_BURSTBITS,4,2            ; @PAR96_BURSTBITS
	.comm	_PAR97_POWER,1,0                ; @PAR97_POWER
	.comm	_PAR96_SCRAM_TAP1,4,2           ; @PAR96_SCRAM_TAP1
	.comm	_PAR96_SCRAM_TAPN,4,2           ; @PAR96_SCRAM_TAPN
	.comm	_PAR96_TXBIT,1,0                ; @PAR96_TXBIT
	.comm	_PAR96_BURST,1,0                ; @PAR96_BURST
	.no_dead_strip	_par96_tx
.subsections_via_symbols
