	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slb_uma_real_alloc
_slb_uma_real_alloc:                    ## @slb_uma_real_alloc
	.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
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movl	%edx, %r12d
	cmpq	$0, _slb_uma_real_alloc.realmax(%rip)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_platform_real_maxaddr
	movq	%rax, _slb_uma_real_alloc.realmax(%rip)
LBB0_2:
	movq	_UMA_SLAB_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r14d, %edi
	callq	_malloc2vm_flags
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rbx
	pushq	%rbx
	pushq	_slb_uma_real_alloc.realmax(%rip)
	callq	_vm_page_alloc_contig_domain
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_5:
	movq	_DMAP_BASE_ADDRESS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movslq	%eax, %r15
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pmap_kenter
LBB0_6:
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_PG_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_9
## %bb.8:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_bzero
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
.zerofill __DATA,__bss,_slb_uma_real_alloc.realmax,8,3 ## @slb_uma_real_alloc.realmax
	.comm	_UMA_SLAB_PRIV,4,2              ## @UMA_SLAB_PRIV
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_MEMATTR_DEFAULT,4,2         ## @VM_MEMATTR_DEFAULT
	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_DMAP_BASE_ADDRESS,4,2          ## @DMAP_BASE_ADDRESS
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
	.no_dead_strip	_slb_uma_real_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slb_uma_real_alloc
_slb_uma_real_alloc:                    ; @slb_uma_real_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	adrp	x22, _slb_uma_real_alloc.realmax@PAGE
	ldr	x8, [x22, _slb_uma_real_alloc.realmax@PAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_platform_real_maxaddr
	str	x0, [x22, _slb_uma_real_alloc.realmax@PAGEOFF]
LBB0_2:
Lloh0:
	adrp	x8, _UMA_SLAB_PRIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMA_SLAB_PRIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	bl	_malloc2vm_flags
Lloh3:
	adrp	x8, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x22, _slb_uma_real_alloc.realmax@PAGEOFF]
Lloh9:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w7, [x22]
Lloh11:
	adrp	x8, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w7, w8, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x20
	mov	w4, #1
	mov	w5, #0
	bl	_vm_page_alloc_contig_domain
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh14:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
	bl	_VM_PAGE_TO_PHYS
	cbz	x21, LBB0_6
; %bb.4:
	bl	_PHYS_TO_DMAP
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	mov	x21, #0
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x8, _DMAP_BASE_ADDRESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMAP_BASE_ADDRESS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w0
	sxtw	x21, w8
	mov	x0, x20
	bl	_VM_PAGE_TO_PHYS
	mov	x1, x0
	mov	x0, x21
	bl	_pmap_kenter
LBB0_7:
Lloh20:
	adrp	x8, _M_ZERO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _M_ZERO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x20]
Lloh23:
	adrp	x9, _PG_ZERO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PG_ZERO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_bzero
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_slb_uma_real_alloc.realmax,8,3 ; @slb_uma_real_alloc.realmax
	.comm	_UMA_SLAB_PRIV,4,2              ; @UMA_SLAB_PRIV
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_MEMATTR_DEFAULT,4,2         ; @VM_MEMATTR_DEFAULT
	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_DMAP_BASE_ADDRESS,4,2          ; @DMAP_BASE_ADDRESS
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
	.no_dead_strip	_slb_uma_real_alloc
.subsections_via_symbols
