	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mga_dma_bootstrap              ## -- Begin function mga_dma_bootstrap
	.p2align	4, 0x90
_mga_dma_bootstrap:                     ## @mga_dma_bootstrap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_mga_do_dma_bootstrap
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_FULL_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mga_do_cleanup_dma
	jmp	LBB0_6
LBB0_2:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movups	(%rax), %xmm0
	jmp	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
LBB0_5:
	movups	%xmm0, 8(%r15)
	movl	(%r15), %eax
	andl	$7, %eax
	leaq	_mga_dma_bootstrap.modes(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mga_dma_bootstrap.modes
_mga_dma_bootstrap.modes:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4

	.comm	_FULL_CLEANUP,4,2               ## @FULL_CLEANUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mga_dma_bootstrap              ; -- Begin function mga_dma_bootstrap
	.p2align	2
_mga_dma_bootstrap:                     ; @mga_dma_bootstrap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	bl	_mga_do_dma_bootstrap
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FULL_CLEANUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FULL_CLEANUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mga_do_cleanup_dma
	b	LBB0_6
LBB0_2:
	ldr	x9, [x22]
	add	x8, x20, #8
	cbz	x9, LBB0_4
; %bb.3:
	ldr	q0, [x9]
	str	q0, [x8]
	b	LBB0_5
LBB0_4:
	stp	xzr, xzr, [x8]
LBB0_5:
	ldr	w8, [x20]
	and	x8, x8, #0x7
Lloh3:
	adrp	x9, _mga_dma_bootstrap.modes@PAGE
Lloh4:
	add	x9, x9, _mga_dma_bootstrap.modes@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mga_dma_bootstrap.modes
_mga_dma_bootstrap.modes:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4

	.comm	_FULL_CLEANUP,4,2               ; @FULL_CLEANUP
.subsections_via_symbols
