	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProgramDMA
_ProgramDMA:                            ## @ProgramDMA
	.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
	movq	_format@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_SBDMA16@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	andl	$3, %esi
	orl	$4, %esi
	movl	$212, %edi
	callq	_outportb
	movl	$216, %edi
	xorl	%esi, %esi
	callq	_outportb
	movl	(%rbx), %esi
	andl	$3, %esi
	orl	$88, %esi
	movl	$214, %edi
	callq	_outportb
	movl	(%rbx), %eax
	andl	$3, %eax
	leal	194(,%rax,4), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_SBDMA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	$4, %esi
	movl	$10, %edi
	callq	_outportb
	movl	$12, %edi
	xorl	%esi, %esi
	callq	_outportb
	movl	(%rbx), %esi
	orl	$88, %esi
	movl	$11, %edi
	callq	_outportb
	movl	(%rbx), %eax
	leal	(%rax,%rax), %ebx
	incl	%ebx
LBB0_3:
	movq	_fragsize@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	(%rax,%rax), %esi
	decl	%esi
	movl	%ebx, %edi
	callq	_outportb
	movl	(%r15), %eax
	leal	(%rax,%rax), %esi
	decl	%esi
	sarl	$8, %esi
	movl	%ebx, %edi
	callq	_outportb
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.5:
	movq	_SBDMA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_SBDMA16@GOTPCREL(%rip), %rax
LBB0_6:
	movslq	(%rax), %rax
	leaq	_ProgramDMA.PPorts(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_LMBuffer@GOTPCREL(%rip), %r15
	movswl	2(%r15), %esi
	callq	_outportb
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movq	_SBDMA16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$3, %eax
	leal	192(,%rax,4), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_SBDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
LBB0_9:
	movl	(%r15), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movl	%ebx, %edi
	callq	_outportb
	movl	(%r15), %esi
	movb	(%r14), %cl
	addb	$8, %cl
	sarl	%cl, %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outportb                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ProgramDMA.PPorts
_ProgramDMA.PPorts:
	.long	135                             ## 0x87
	.long	131                             ## 0x83
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	0                               ## 0x0
	.long	139                             ## 0x8b
	.long	137                             ## 0x89
	.long	138                             ## 0x8a

	.comm	_format,4,2                     ## @format
	.comm	_SBDMA16,4,2                    ## @SBDMA16
	.comm	_SBDMA,4,2                      ## @SBDMA
	.comm	_fragsize,4,2                   ## @fragsize
	.comm	_LMBuffer,4,2                   ## @LMBuffer
	.no_dead_strip	_ProgramDMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProgramDMA
_ProgramDMA:                            ; @ProgramDMA
	.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
Lloh0:
	adrp	x20, _format@GOTPAGE
Lloh1:
	ldr	x20, [x20, _format@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _SBDMA16@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SBDMA16@GOTPAGEOFF]
Lloh4:
	adrp	x22, _SBDMA@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SBDMA@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	mov	w1, #4
	bfxil	w1, w8, #0, #2
	mov	w0, #212
	bl	_outportb
	mov	w0, #216
	mov	w1, #0
	bl	_outportb
	ldr	w8, [x21]
	mov	w1, #88
	bfxil	w1, w8, #0, #2
	mov	w0, #214
	bl	_outportb
	ldr	w8, [x21]
	mov	w19, #194
	bfi	w19, w8, #2, #2
	b	LBB0_3
LBB0_2:
	ldr	w8, [x22]
	orr	w1, w8, #0x4
	mov	w0, #10
	bl	_outportb
	mov	w0, #12
	mov	w1, #0
	bl	_outportb
	ldr	w8, [x22]
	mov	w9, #88
	orr	w1, w8, w9
	mov	w0, #11
	bl	_outportb
	ldr	w8, [x22]
	mov	w19, #1
	bfi	w19, w8, #1, #31
LBB0_3:
Lloh6:
	adrp	x23, _fragsize@GOTPAGE
Lloh7:
	ldr	x23, [x23, _fragsize@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w8, w8, #1
	sub	w1, w8, #1
	mov	x0, x19
	bl	_outportb
	ldr	w8, [x23]
	lsl	w8, w8, #1
	sub	w8, w8, #1
	asr	w1, w8, #8
	mov	x0, x19
	bl	_outportb
	ldr	w8, [x20]
	cmp	w8, #0
	csel	x8, x22, x21, eq
Lloh8:
	adrp	x9, _ProgramDMA.PPorts@PAGE
Lloh9:
	add	x9, x9, _ProgramDMA.PPorts@PAGEOFF
	ldrsw	x8, [x8]
	ldr	w0, [x9, x8, lsl #2]
Lloh10:
	adrp	x23, _LMBuffer@GOTPAGE
Lloh11:
	ldr	x23, [x23, _LMBuffer@GOTPAGEOFF]
	ldrsh	w1, [x23, #2]
	bl	_outportb
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w9, [x21]
	mov	w19, #192
	bfi	w19, w9, #2, #2
	b	LBB0_6
LBB0_5:
	ldr	w9, [x22]
	lsl	w19, w9, #1
LBB0_6:
	ldr	w9, [x23]
	asr	w1, w9, w8
	mov	x0, x19
	bl	_outportb
	ldr	w8, [x23]
	ldr	w9, [x20]
	add	w9, w9, #8
	asr	w1, w8, w9
	mov	x0, x19
	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	_outportb
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ProgramDMA.PPorts
_ProgramDMA.PPorts:
	.long	135                             ; 0x87
	.long	131                             ; 0x83
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	0                               ; 0x0
	.long	139                             ; 0x8b
	.long	137                             ; 0x89
	.long	138                             ; 0x8a

	.comm	_format,4,2                     ; @format
	.comm	_SBDMA16,4,2                    ; @SBDMA16
	.comm	_SBDMA,4,2                      ; @SBDMA
	.comm	_fragsize,4,2                   ; @fragsize
	.comm	_LMBuffer,4,2                   ; @LMBuffer
	.no_dead_strip	_ProgramDMA
.subsections_via_symbols
