	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_os_dma_malloc
_vxge_os_dma_malloc:                    ## @vxge_os_dma_malloc
	.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	%rcx, %r14
	movq	%rsi, %r13
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_in_interrupt
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_GFP_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %r15b
	movq	_VXGE_CACHE_LINE_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_VXGE_ALIGN
	testb	$1, %r15b
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_kfree
	addq	(%r14), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_kmalloc
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	leaq	(%rbx,%rax,4), %r15
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_GFP_DMA,4,2                    ## @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VXGE_CACHE_LINE_SIZE,8,3       ## @VXGE_CACHE_LINE_SIZE
	.no_dead_strip	_vxge_os_dma_malloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_os_dma_malloc
_vxge_os_dma_malloc:                    ; @vxge_os_dma_malloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	str	xzr, [x2]
	str	xzr, [x3]
	bl	_in_interrupt
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GFP_ATOMIC@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _GFP_DMA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GFP_DMA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x20
	mov	x1, x22
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh7:
	adrp	x23, _VXGE_CACHE_LINE_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VXGE_CACHE_LINE_SIZE@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_VXGE_ALIGN
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x23]
	add	x0, x8, x20
	mov	x1, x22
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x1, [x23]
	bl	_VXGE_ALIGN
LBB0_4:
	str	x0, [x19]
	add	x0, x21, x0, lsl #2
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_GFP_DMA,4,2                    ; @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VXGE_CACHE_LINE_SIZE,8,3       ; @VXGE_CACHE_LINE_SIZE
	.no_dead_strip	_vxge_os_dma_malloc
.subsections_via_symbols
