	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bo_alloc_contig
_tegra_bo_alloc_contig:                 ## @tegra_bo_alloc_contig
	.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
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rax
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	orl	(%rax), %r12d
	movq	_VM_ALLOC_NOBUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	$-1, %r9
	pushq	%r13
	pushq	$0
	pushq	%r14
	callq	_vm_page_alloc_contig
	addq	$32, %rsp
	movq	%rax, %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	$-1, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_page_reclaim_contig
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_vm_wait
LBB0_3:
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	$-1, %r9
	pushq	%r13
	pushq	$0
	pushq	%r14
	callq	_vm_page_alloc_contig
	addq	$32, %rsp
	movq	%rax, %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	$-1, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_page_reclaim_contig
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	callq	_vm_wait
LBB0_12:
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	$-1, %r9
	pushq	%r13
	pushq	$0
	pushq	%r14
	callq	_vm_page_alloc_contig
	addq	$32, %rsp
	movq	%rax, %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.13:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	$-1, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_page_reclaim_contig
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	callq	_vm_wait
LBB0_15:
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	$-1, %r9
	pushq	%r13
	pushq	$0
	pushq	%r14
	callq	_vm_page_alloc_contig
	addq	$32, %rsp
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_16
LBB0_4:
	testq	%rbx, %rbx
	movl	$0, %eax
	je	LBB0_17
## %bb.5:
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	movq	_PG_ZERO@GOTPCREL(%rip), %r13
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %r15
	movq	%rcx, %r12
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %eax
	movl	%eax, 4(%rcx,%rbx,8)
	movq	(%r8), %rax
	movq	%r12, (%rax,%rbx,8)
	incq	%rbx
	addq	$8, %r12
	cmpq	%rbx, %rdx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, (%rcx,%rbx,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%rcx, %r14
	callq	_pmap_zero_page
	movq	%r14, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_NOBUSY,4,2            ## @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
	.comm	_VM_PAGE_BITS_ALL,4,2           ## @VM_PAGE_BITS_ALL
	.no_dead_strip	_tegra_bo_alloc_contig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bo_alloc_contig
_tegra_bo_alloc_contig:                 ; @tegra_bo_alloc_contig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VM_ALLOC_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VM_ALLOC_NOBUSY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_ALLOC_NOBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _VM_ALLOC_ZERO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_ALLOC_ZERO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w23, w8, w9
	str	w2, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x23
	mov	x3, x20
	mov	x4, #0
	mov	x5, #-1
	mov	x6, x21
	mov	x7, #0
	bl	_vm_page_alloc_contig
	mov	x24, x0
	cbnz	x0, LBB0_10
; %bb.1:
	mov	x0, x23
	mov	x1, x20
	mov	x2, #0
	mov	x3, #-1
	mov	x4, x21
	mov	x5, #0
	bl	_vm_page_reclaim_contig
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, #0
	bl	_vm_wait
LBB0_3:
	str	w22, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x23
	mov	x3, x20
	mov	x4, #0
	mov	x5, #-1
	mov	x6, x21
	mov	x7, #0
	bl	_vm_page_alloc_contig
	mov	x24, x0
	cbnz	x0, LBB0_10
; %bb.4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, #0
	mov	x3, #-1
	mov	x4, x21
	mov	x5, #0
	bl	_vm_page_reclaim_contig
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, #0
	bl	_vm_wait
LBB0_6:
	str	w22, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x23
	mov	x3, x20
	mov	x4, #0
	mov	x5, #-1
	mov	x6, x21
	mov	x7, #0
	bl	_vm_page_alloc_contig
	mov	x24, x0
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x0, x23
	mov	x1, x20
	mov	x2, #0
	mov	x3, #-1
	mov	x4, x21
	mov	x5, #0
	bl	_vm_page_reclaim_contig
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, #0
	bl	_vm_wait
LBB0_9:
	str	w22, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x23
	mov	x3, x20
	mov	x4, #0
	mov	x5, #-1
	mov	x6, x21
	mov	x7, #0
	bl	_vm_page_alloc_contig
	mov	x24, x0
	cbz	x0, LBB0_17
LBB0_10:
	cbz	x20, LBB0_15
; %bb.11:
	mov	x21, #0
Lloh15:
	adrp	x22, _PG_ZERO@GOTPAGE
Lloh16:
	ldr	x22, [x22, _PG_ZERO@GOTPAGEOFF]
Lloh17:
	adrp	x23, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh18:
	ldr	x23, [x23, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x23]
	str	w8, [x24, #4]
	ldr	x8, [x19]
	str	x24, [x8, x21, lsl #3]
	add	x21, x21, #1
	add	x24, x24, #8
	cmp	x20, x21
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_pmap_zero_page
	b	LBB0_12
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_NOBUSY,4,2            ; @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
	.comm	_VM_PAGE_BITS_ALL,4,2           ; @VM_PAGE_BITS_ALL
	.no_dead_strip	_tegra_bo_alloc_contig
.subsections_via_symbols
