	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_dma_release                ## -- Begin function isa_dma_release
	.p2align	4, 0x90
_isa_dma_release:                       ## @isa_dma_release
	.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
	movl	%edi, %ebx
	movq	_isa_dma_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_dma_busy@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	btl	%ebx, %esi
	jae	LBB0_2
## %bb.1:
	andl	%eax, %esi
	movl	%esi, (%rdx)
LBB0_2:
	movq	_dma_inuse@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	movq	_dma_auto_mode@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	movq	_isa_dma_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_isa_dma_lock,4,2               ## @isa_dma_lock
	.comm	_dma_busy,4,2                   ## @dma_busy
	.comm	_dma_inuse,4,2                  ## @dma_inuse
	.comm	_dma_auto_mode,4,2              ## @dma_auto_mode
	.comm	_VALID_DMA_MASK,4,2             ## @VALID_DMA_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_dma_release                ; -- Begin function isa_dma_release
	.p2align	2
_isa_dma_release:                       ; @isa_dma_release
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _isa_dma_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _isa_dma_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x9, _dma_busy@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dma_busy@GOTPAGEOFF]
	ldr	w10, [x9]
	mov	w8, #1
	lsl	w11, w8, w19
	mvn	w8, w11
	tst	w10, w11
	b.eq	LBB0_2
; %bb.1:
	and	w10, w10, w8
	str	w10, [x9]
LBB0_2:
Lloh4:
	adrp	x9, _dma_inuse@GOTPAGE
Lloh5:
	ldr	x9, [x9, _dma_inuse@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, w8
	str	w10, [x9]
Lloh6:
	adrp	x9, _dma_auto_mode@GOTPAGE
Lloh7:
	ldr	x9, [x9, _dma_auto_mode@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w8, w10, w8
	str	w8, [x9]
Lloh8:
	adrp	x0, _isa_dma_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _isa_dma_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_isa_dma_lock,4,2               ; @isa_dma_lock
	.comm	_dma_busy,4,2                   ; @dma_busy
	.comm	_dma_inuse,4,2                  ; @dma_inuse
	.comm	_dma_auto_mode,4,2              ; @dma_auto_mode
	.comm	_VALID_DMA_MASK,4,2             ; @VALID_DMA_MASK
.subsections_via_symbols
