	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400mdmisr
_stl_cd1400mdmisr:                      ## @stl_cd1400mdmisr
	.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, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movq	_EREG_MDACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_inb
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	_ACK_TYPMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_ACK_TYPMDM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rcx
	andl	$-8, %eax
	movq	(%rcx,%rax), %r14
	movq	_MISR@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_outb
	movq	_EREG_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	%r15d, %edi
	callq	_inb
	movq	_MISR_DCD@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_stl_cd_change
	incl	8(%r14)
LBB0_4:
	movq	_EOSRR@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_outb
	addl	(%rbx), %r15d
	xorl	%edi, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printk                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_cd1400mdmisr(panelp=%p)\n"

	.comm	_EREG_MDACK,4,2                 ## @EREG_MDACK
	.comm	_ACK_TYPMASK,4,2                ## @ACK_TYPMASK
	.comm	_ACK_TYPMDM,4,2                 ## @ACK_TYPMDM
L_.str.1:                               ## @.str.1
	.asciz	"STALLION: bad MODEM interrupt ack value=%x\n"

	.comm	_MISR,8,3                       ## @MISR
	.comm	_EREG_DATA,4,2                  ## @EREG_DATA
	.comm	_MISR_DCD,1,0                   ## @MISR_DCD
	.comm	_EOSRR,8,3                      ## @EOSRR
	.no_dead_strip	_stl_cd1400mdmisr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400mdmisr
_stl_cd1400mdmisr:                      ; @stl_cd1400mdmisr
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh2:
	adrp	x8, _EREG_MDACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EREG_MDACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w19
	bl	_inb
	mov	x1, x0
	ldr	w8, [x20]
	tst	w8, w1
	b.ne	LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _ACK_TYPMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACK_TYPMASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh8:
	adrp	x9, _ACK_TYPMDM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACK_TYPMDM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ubfx	x9, x1, #3, #29
	ldr	x20, [x8, x9, lsl #3]
Lloh11:
	adrp	x8, _MISR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MISR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x0, x9, x8
	mov	x1, x19
	bl	_outb
Lloh14:
	adrp	x21, _EREG_DATA@GOTPAGE
Lloh15:
	ldr	x21, [x21, _EREG_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w0, w8, w19
	bl	_inb
Lloh16:
	adrp	x8, _MISR_DCD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MISR_DCD@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_stl_cd_change
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_4:
Lloh18:
	adrp	x8, _EOSRR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOSRR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x0, x9, x8
	mov	x1, x19
	bl	_outb
	ldr	w8, [x21]
	add	w1, w8, w19
	mov	x0, #0
	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	_outb
LBB0_5:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	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	_printk
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400mdmisr(panelp=%p)\n"

	.comm	_EREG_MDACK,4,2                 ; @EREG_MDACK
	.comm	_ACK_TYPMASK,4,2                ; @ACK_TYPMASK
	.comm	_ACK_TYPMDM,4,2                 ; @ACK_TYPMDM
l_.str.1:                               ; @.str.1
	.asciz	"STALLION: bad MODEM interrupt ack value=%x\n"

	.comm	_MISR,8,3                       ; @MISR
	.comm	_EREG_DATA,4,2                  ; @EREG_DATA
	.comm	_MISR_DCD,1,0                   ; @MISR_DCD
	.comm	_EOSRR,8,3                      ; @EOSRR
	.no_dead_strip	_stl_cd1400mdmisr
.subsections_via_symbols
