	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400eiointr
_stl_cd1400eiointr:                     ## @stl_cd1400eiointr
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_pr_debug
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_SVRR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	%r15d, %esi
	callq	_outb
	movl	%r15d, %ebx
	movq	_EREG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r12d
	cmpl	$5, (%r14)
	jl	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	subq	$-128, %rdi
	movl	%r15d, %esi
	callq	_outb
	movq	_EREG_DATA@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inb
	orb	%al, %r12b
LBB0_2:
	movq	_SVRR_RX@GOTPCREL(%rip), %rax
	testb	%r12b, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stl_cd1400rxisr
	jmp	LBB0_8
LBB0_4:
	movq	_SVRR_TX@GOTPCREL(%rip), %rax
	testb	%r12b, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stl_cd1400txisr
	jmp	LBB0_8
LBB0_6:
	movq	_SVRR_MDM@GOTPCREL(%rip), %rax
	testb	%r12b, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stl_cd1400mdmisr
LBB0_8:
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_cd1400eiointr(panelp=%p,iobase=%x)\n"

	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_SVRR,8,3                       ## @SVRR
	.comm	_EREG_DATA,8,3                  ## @EREG_DATA
	.comm	_SVRR_RX,1,0                    ## @SVRR_RX
	.comm	_SVRR_TX,1,0                    ## @SVRR_TX
	.comm	_SVRR_MDM,1,0                   ## @SVRR_MDM
	.no_dead_strip	_stl_cd1400eiointr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400eiointr
_stl_cd1400eiointr:                     ; @stl_cd1400eiointr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_pr_debug
Lloh2:
	adrp	x0, _brd_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh4:
	adrp	x23, _SVRR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SVRR@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	x1, x19
	bl	_outb
	mov	w22, w19
Lloh6:
	adrp	x24, _EREG_DATA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EREG_DATA@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inb
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x23]
	add	x0, x8, #128
	mov	x1, x19
	bl	_outb
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inb
	orr	w21, w0, w21
LBB0_2:
Lloh8:
	adrp	x8, _SVRR_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVRR_RX@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_stl_cd1400rxisr
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _SVRR_TX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SVRR_TX@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_stl_cd1400txisr
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _SVRR_MDM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SVRR_MDM@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_stl_cd1400mdmisr
LBB0_8:
Lloh14:
	adrp	x0, _brd_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400eiointr(panelp=%p,iobase=%x)\n"

	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_SVRR,8,3                       ; @SVRR
	.comm	_EREG_DATA,8,3                  ; @EREG_DATA
	.comm	_SVRR_RX,1,0                    ; @SVRR_RX
	.comm	_SVRR_TX,1,0                    ; @SVRR_TX
	.comm	_SVRR_MDM,1,0                   ; @SVRR_MDM
	.no_dead_strip	_stl_cd1400eiointr
.subsections_via_symbols
