	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ser12_tx
_ser12_tx:                              ## @ser12_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$12, %esi
	callq	_ser12_set_divisor
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	setne	%bl
	orl	$14, %ebx
	movl	(%r14), %edi
	callq	_MCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %eax
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	leaq	8(%r15), %rdi
	callq	_hdlcdrv_getbits
	orl	$65536, %eax                    ## imm = 0x10000
LBB0_2:
	movl	%eax, %ecx
	andl	$1, %ecx
	xorl	%edx, %edx
	cmpl	%ecx, 4(%r15)
	sete	%dl
	movl	%edx, 4(%r15)
	sarl	%eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ser12_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ser12_tx
_ser12_tx:                              ; @ser12_tx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w1, #12
	bl	_ser12_set_divisor
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, ne
	orr	w21, w8, #0xe
	ldr	w0, [x20]
	bl	_MCR
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	ldr	w8, [x19]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_hdlcdrv_getbits
	orr	w8, w0, #0x10000
LBB0_2:
	ldr	w9, [x19, #4]
	and	w10, w8, #0x1
	cmp	w9, w10
	cset	w9, eq
	asr	w8, w8, #1
	stp	w8, w9, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ser12_tx
.subsections_via_symbols
