	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8237A_resume
_i8237A_resume:                         ## @i8237A_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, %rbx
	movq	_DMA1_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_dma_outb
	movq	_DMA2_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_dma_outb
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$1, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$2, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$3, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$3, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$4, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$4, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$5, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$6, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$6, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$7, %edi
	xorl	%esi, %esi
	callq	_set_dma_addr
	movl	$7, %edi
	movl	$1, %esi
	callq	_set_dma_count
	movl	$4, %edi
	callq	_enable_dma
	movq	%rbx, %rdi
	callq	_release_dma_lock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA1_RESET_REG,4,2             ## @DMA1_RESET_REG
	.comm	_DMA2_RESET_REG,4,2             ## @DMA2_RESET_REG
	.no_dead_strip	_i8237A_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8237A_resume
_i8237A_resume:                         ; @i8237A_resume
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_claim_dma_lock
	mov	x19, x0
Lloh0:
	adrp	x8, _DMA1_RESET_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA1_RESET_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_dma_outb
Lloh3:
	adrp	x8, _DMA2_RESET_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA2_RESET_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_dma_outb
	mov	w0, #0
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #0
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #1
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #1
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #2
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #2
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #3
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #3
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #4
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #4
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #5
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #5
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #6
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #6
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #7
	mov	w1, #0
	bl	_set_dma_addr
	mov	w0, #7
	mov	w1, #1
	bl	_set_dma_count
	mov	w0, #4
	bl	_enable_dma
	mov	x0, x19
	bl	_release_dma_lock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA1_RESET_REG,4,2             ; @DMA1_RESET_REG
	.comm	_DMA2_RESET_REG,4,2             ; @DMA2_RESET_REG
	.no_dead_strip	_i8237A_resume
.subsections_via_symbols
