	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_deinit                  ## -- Begin function DMAbuf_deinit
	.p2align	4, 0x90
_DMAbuf_deinit:                         ## @DMAbuf_deinit
	.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
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_sound_dmap_flag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DMAP_KEEP_ON_CLOSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	callq	_sound_free_dmap
	movq	_DMA_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sound_free_dmap                ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_sound_dmap_flag,8,3            ## @sound_dmap_flag
	.comm	_DMAP_KEEP_ON_CLOSE,8,3         ## @DMAP_KEEP_ON_CLOSE
	.comm	_DMA_DUPLEX,4,2                 ## @DMA_DUPLEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_deinit                  ; -- Begin function DMAbuf_deinit
	.p2align	2
_DMAbuf_deinit:                         ; @DMAbuf_deinit
	.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
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, sxtw #3]
	cbz	x19, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _sound_dmap_flag@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sound_dmap_flag@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _DMAP_KEEP_ON_CLOSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMAP_KEEP_ON_CLOSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_sound_free_dmap
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _DMA_DUPLEX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMA_DUPLEX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sound_free_dmap
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_sound_dmap_flag,8,3            ; @sound_dmap_flag
	.comm	_DMAP_KEEP_ON_CLOSE,8,3         ; @DMAP_KEEP_ON_CLOSE
	.comm	_DMA_DUPLEX,4,2                 ; @DMA_DUPLEX
.subsections_via_symbols
