	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400breakisr
_stl_cd1400breakisr:                    ## @stl_cd1400breakisr
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_COR2@GOTPCREL(%rip), %rax
	movl	4(%r14), %edi
	addl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movq	_EREG_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_inb
	movq	_COR2_ETC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	addl	%ebx, %esi
	movl	%eax, %edi
	callq	_outb
	movq	_TDR@GOTPCREL(%rip), %rax
	movl	4(%r14), %edi
	addl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movq	_ETC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_ETC_STARTBREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_SRER@GOTPCREL(%rip), %rax
	movl	4(%r14), %edi
	addl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_inb
	movq	_SRER_TXDATA@GOTPCREL(%rip), %rcx
	movq	_SRER_TXEMPTY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	addl	(%r15), %ebx
	movl	%ebx, %esi
	callq	_outb
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	jle	LBB0_4
## %bb.3:
	movq	_TDR@GOTPCREL(%rip), %rax
	movl	4(%r14), %edi
	addl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movq	_ETC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EREG_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_ETC_STOPBREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r15), %ebx
	movl	%ebx, %esi
	callq	_outb
	movl	$-1, (%r14)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_COR2@GOTPCREL(%rip), %rax
	movl	4(%r14), %edi
	addl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movq	_EREG_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_inb
	movq	_COR2_ETC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	addl	(%r15), %ebx
	movl	%ebx, %esi
	callq	_outb
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COR2,4,2                       ## @COR2
	.comm	_EREG_DATA,4,2                  ## @EREG_DATA
	.comm	_COR2_ETC,4,2                   ## @COR2_ETC
	.comm	_TDR,4,2                        ## @TDR
	.comm	_ETC_CMD,4,2                    ## @ETC_CMD
	.comm	_ETC_STARTBREAK,4,2             ## @ETC_STARTBREAK
	.comm	_SRER,4,2                       ## @SRER
	.comm	_SRER_TXDATA,4,2                ## @SRER_TXDATA
	.comm	_SRER_TXEMPTY,4,2               ## @SRER_TXEMPTY
	.comm	_ETC_STOPBREAK,4,2              ## @ETC_STOPBREAK
	.no_dead_strip	_stl_cd1400breakisr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400breakisr
_stl_cd1400breakisr:                    ; @stl_cd1400breakisr
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _COR2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COR2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w0, w9, w8
	mov	x1, x19
	bl	_outb
Lloh3:
	adrp	x21, _EREG_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EREG_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w0, w8, w19
	bl	_inb
Lloh5:
	adrp	x8, _COR2_ETC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COR2_ETC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
Lloh8:
	adrp	x8, _TDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TDR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w0, w9, w8
	mov	x1, x19
	bl	_outb
Lloh11:
	adrp	x8, _ETC_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETC_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
Lloh14:
	adrp	x8, _ETC_STARTBREAK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETC_STARTBREAK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
Lloh17:
	adrp	x8, _SRER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SRER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w0, w9, w8
	mov	x1, x19
	bl	_outb
	ldr	w8, [x21]
	add	w0, w8, w19
	bl	_inb
Lloh20:
	adrp	x8, _SRER_TXDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SRER_TXDATA@GOTPAGEOFF]
Lloh22:
	adrp	x9, _SRER_TXEMPTY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SRER_TXEMPTY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh26:
	adrp	x8, _TDR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TDR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w0, w9, w8
	mov	x1, x19
	bl	_outb
Lloh29:
	adrp	x8, _ETC_CMD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETC_CMD@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x21, _EREG_DATA@GOTPAGE
Lloh33:
	ldr	x21, [x21, _EREG_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
Lloh34:
	adrp	x8, _ETC_STOPBREAK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ETC_STOPBREAK@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
	mov	w8, #-1
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh37:
	adrp	x8, _COR2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COR2@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w0, w9, w8
	mov	x1, x19
	bl	_outb
Lloh40:
	adrp	x21, _EREG_DATA@GOTPAGE
Lloh41:
	ldr	x21, [x21, _EREG_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w0, w8, w19
	bl	_inb
Lloh42:
	adrp	x8, _COR2_ETC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _COR2_ETC@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_outb
	mov	w0, #0
	str	wzr, [x20]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_COR2,4,2                       ; @COR2
	.comm	_EREG_DATA,4,2                  ; @EREG_DATA
	.comm	_COR2_ETC,4,2                   ; @COR2_ETC
	.comm	_TDR,4,2                        ; @TDR
	.comm	_ETC_CMD,4,2                    ; @ETC_CMD
	.comm	_ETC_STARTBREAK,4,2             ; @ETC_STARTBREAK
	.comm	_SRER,4,2                       ; @SRER
	.comm	_SRER_TXDATA,4,2                ; @SRER_TXDATA
	.comm	_SRER_TXEMPTY,4,2               ; @SRER_TXEMPTY
	.comm	_ETC_STOPBREAK,4,2              ; @ETC_STOPBREAK
	.no_dead_strip	_stl_cd1400breakisr
.subsections_via_symbols
