	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scc_stat_int
_scc_stat_int:                          ## @scc_stat_int
	.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
	movq	%rsi, %r12
	movl	(%rsi), %r14d
	movq	%rsi, %rdi
	callq	_SCC_ACCESS_INIT
	movq	_scc_last_status_reg@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movb	(%rax,%r14), %bl
	movq	_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCCread_NB
	movq	(%r15), %rcx
	movb	%al, (%rcx,%r14)
	xorb	%al, %bl
	movq	_SR_DCD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testb	%bl, %cl
	je	LBB0_6
## %bb.1:
	xorl	%edx, %edx
	testb	%al, %cl
	setne	%dl
	movl	%edx, 4(%r12)
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%r12)
	je	LBB0_6
## %bb.2:
	testb	%al, %cl
	je	LBB0_4
## %bb.3:
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_6
LBB0_4:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_tty_hangup
LBB0_6:
	movq	_COMMAND_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_CR_EXTSTAT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SCCwrite
	movl	(%rbx), %edi
	movq	_CR_HIGHEST_IUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SCCwrite_NB
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scc_last_status_reg,8,3        ## @scc_last_status_reg
	.comm	_STATUS_REG,4,2                 ## @STATUS_REG
	.comm	_SR_DCD,1,0                     ## @SR_DCD
	.comm	_ASYNC_CHECK_CD,4,2             ## @ASYNC_CHECK_CD
	.comm	_COMMAND_REG,4,2                ## @COMMAND_REG
	.comm	_CR_EXTSTAT_RESET,4,2           ## @CR_EXTSTAT_RESET
	.comm	_CR_HIGHEST_IUS_RESET,4,2       ## @CR_HIGHEST_IUS_RESET
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_scc_stat_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scc_stat_int
_scc_stat_int:                          ; @scc_stat_int
	.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
	ldr	w20, [x1]
	mov	x0, x1
	bl	_SCC_ACCESS_INIT
Lloh0:
	adrp	x21, _scc_last_status_reg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _scc_last_status_reg@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrb	w22, [x8, x20]
Lloh2:
	adrp	x8, _STATUS_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS_REG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_SCCread_NB
	ldr	x8, [x21]
	strb	w0, [x8, x20]
	eor	w9, w0, w22
Lloh5:
	adrp	x8, _SR_DCD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SR_DCD@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	ands	w8, w8, w0
	cset	w9, ne
	str	w9, [x19, #4]
	ldr	w9, [x19, #8]
Lloh7:
	adrp	x10, _ASYNC_CHECK_CD@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.2:
	cbz	w8, LBB0_4
; %bb.3:
	add	x0, x19, #24
	bl	_wake_up_interruptible
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_tty_hangup
LBB0_6:
Lloh10:
	adrp	x19, _COMMAND_REG@GOTPAGE
Lloh11:
	ldr	x19, [x19, _COMMAND_REG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _CR_EXTSTAT_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CR_EXTSTAT_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_SCCwrite
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _CR_HIGHEST_IUS_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CR_HIGHEST_IUS_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_SCCwrite_NB
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_scc_last_status_reg,8,3        ; @scc_last_status_reg
	.comm	_STATUS_REG,4,2                 ; @STATUS_REG
	.comm	_SR_DCD,1,0                     ; @SR_DCD
	.comm	_ASYNC_CHECK_CD,4,2             ; @ASYNC_CHECK_CD
	.comm	_COMMAND_REG,4,2                ; @COMMAND_REG
	.comm	_CR_EXTSTAT_RESET,4,2           ; @CR_EXTSTAT_RESET
	.comm	_CR_HIGHEST_IUS_RESET,4,2       ; @CR_HIGHEST_IUS_RESET
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_scc_stat_int
.subsections_via_symbols
