	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_dma
_configure_dma:                         ## @configure_dma
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HPEE_DMA_MAX_ENT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%r13d, %r13d
	movl	$2, %eax
	movq	_HPEE_DMA_MORE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_get_8
	movl	%eax, %r12d
	movq	_HPEE_DMA_CHANNEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r12d, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_cont
	testl	%r12d, (%r14)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	addq	$2, %rbx
	leal	2(%r15), %eax
	movq	_HPEE_DMA_MAX_ENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPEE_DMA_MAX_ENT,4,2           ## @HPEE_DMA_MAX_ENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA %d "

	.comm	_HPEE_DMA_CHANNEL_MASK,4,2      ## @HPEE_DMA_CHANNEL_MASK
	.comm	_HPEE_DMA_MORE,4,2              ## @HPEE_DMA_MORE
	.no_dead_strip	_configure_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_dma
_configure_dma:                         ; @configure_dma
	.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
Lloh0:
	adrp	x22, _HPEE_DMA_MAX_ENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPEE_DMA_MAX_ENT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x8, #0
	mov	w23, #0
Lloh2:
	adrp	x24, _HPEE_DMA_CHANNEL_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HPEE_DMA_CHANNEL_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HPEE_DMA_MORE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HPEE_DMA_MORE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	add	x0, x19, x8
	bl	_get_8
	mov	x21, x0
	ldr	w8, [x24]
	and	w1, w8, w0
	mov	x0, x20
	bl	_pr_cont
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w9, [x22]
	add	x8, x26, #2
	cmp	w23, w9
	b.lt	LBB0_2
LBB0_4:
	add	w0, w26, #2
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HPEE_DMA_MAX_ENT,4,2           ; @HPEE_DMA_MAX_ENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA %d "

	.comm	_HPEE_DMA_CHANNEL_MASK,4,2      ; @HPEE_DMA_CHANNEL_MASK
	.comm	_HPEE_DMA_MORE,4,2              ; @HPEE_DMA_MORE
	.no_dead_strip	_configure_dma
.subsections_via_symbols
