	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serport_ldisc_receive
_serport_ldisc_receive:                 ## @serport_ldisc_receive
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_SERPORT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.2:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movzbl	(%r14,%rbx), %esi
	xorl	%edx, %edx
	callq	_serio_interrupt
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SERPORT_ACTIVE,4,2             ## @SERPORT_ACTIVE
	.comm	_SERIO_FRAME,4,2                ## @SERIO_FRAME
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.no_dead_strip	_serport_ldisc_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serport_ldisc_receive
_serport_ldisc_receive:                 ; @serport_ldisc_receive
	.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	x21, x3
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SERPORT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERPORT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cmp	w0, #0
	ccmp	w21, #1, #8, ne
	b.lt	LBB0_3
; %bb.1:
	mov	w21, w21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldrb	w1, [x19], #1
	mov	w2, #0
	bl	_serio_interrupt
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SERPORT_ACTIVE,4,2             ; @SERPORT_ACTIVE
	.comm	_SERIO_FRAME,4,2                ; @SERIO_FRAME
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.no_dead_strip	_serport_ldisc_receive
.subsections_via_symbols
