	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_outputintr              ## -- Begin function DMAbuf_outputintr
	.p2align	4, 0x90
_DMAbuf_outputintr:                     ## @DMAbuf_outputintr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r15
	leaq	24(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_DMA_NODMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.12:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_do_outputintr
	jmp	LBB0_13
LBB0_1:
	movl	4(%r15), %ebx
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_isa_dma_bridge_buggy@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	4(%r15), %edi
	callq	_disable_dma
LBB0_3:
	movl	%ebx, %edi
	callq	_clear_dma_ff
	movl	8(%r15), %r13d
	movl	%ebx, %edi
	callq	_get_dma_residue
	subl	%eax, %r13d
	movq	_isa_dma_bridge_buggy@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	4(%r15), %edi
	callq	_enable_dma
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_dma_lock
	movl	%r13d, %eax
	cltd
	idivl	12(%r15)
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	cmpl	16(%r15), %eax
	jl	LBB0_8
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	cmpl	%r13d, 20(%r15)
	je	LBB0_13
## %bb.9:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	cmpl	16(%r15), %ebx
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_do_outputintr
	cmpl	%r13d, 20(%r15)
	jne	LBB0_10
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_DMA_NODMA,4,2                  ## @DMA_NODMA
	.comm	_isa_dma_bridge_buggy,4,2       ## @isa_dma_bridge_buggy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_outputintr              ; -- Begin function DMAbuf_outputintr
	.p2align	2
_DMAbuf_outputintr:                     ; @DMAbuf_outputintr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x24, [x8]
	add	x20, x24, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _DMA_NODMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_NODMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_do_outputintr
	b	LBB0_13
LBB0_2:
	ldr	w23, [x24, #4]
	bl	_claim_dma_lock
	mov	x22, x0
Lloh6:
	adrp	x25, _isa_dma_bridge_buggy@GOTPAGE
Lloh7:
	ldr	x25, [x25, _isa_dma_bridge_buggy@GOTPAGEOFF]
	ldr	w8, [x25]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x24, #4]
	bl	_disable_dma
LBB0_4:
	mov	x0, x23
	bl	_clear_dma_ff
	ldr	w26, [x24, #8]
	mov	x0, x23
	bl	_get_dma_residue
	sub	w23, w26, w0
	ldr	w8, [x25]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x24, #4]
	bl	_enable_dma
LBB0_6:
	mov	x0, x22
	bl	_release_dma_lock
	ldr	w8, [x24, #12]
	sdiv	w22, w23, w8
	tbnz	w22, #31, LBB0_8
; %bb.7:
	ldr	w8, [x24, #16]
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w8, [x24, #20]
	cmp	w8, w22
	b.eq	LBB0_13
; %bb.10:
	mov	w23, #-1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #16]
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_do_outputintr
	ldr	w8, [x24, #20]
	cmp	w8, w22
	b.ne	LBB0_11
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_DMA_NODMA,4,2                  ; @DMA_NODMA
	.comm	_isa_dma_bridge_buggy,4,2       ; @isa_dma_bridge_buggy
.subsections_via_symbols
