	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tiler_reserve_1d               ## -- Begin function tiler_reserve_1d
	.p2align	4, 0x90
_tiler_reserve_1d:                      ## @tiler_reserve_1d
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax), %rsi
	decq	%rsi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rsi
	movq	_TILFMT_PAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_containers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %edi
	leaq	12(%rbx), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_tcm_reserve_1d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_omap_dmm@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TILFMT_PAGE,8,3                ## @TILFMT_PAGE
	.comm	_containers,8,3                 ## @containers
	.comm	_list_lock,4,2                  ## @list_lock
	.comm	_omap_dmm,8,3                   ## @omap_dmm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tiler_reserve_1d               ; -- Begin function tiler_reserve_1d
	.p2align	2
_tiler_reserve_1d:                      ; @tiler_reserve_1d
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x20, x8
	sub	x8, x8, #1
Lloh6:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsr	x1, x8, x9
Lloh9:
	adrp	x8, _TILFMT_PAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TILFMT_PAGE@GOTPAGEOFF]
	ldr	x9, [x8]
	mov	x2, x0
	str	x9, [x2], #12
Lloh11:
	adrp	x9, _containers@GOTPAGE
Lloh12:
	ldr	x9, [x9, _containers@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	w0, [x9, x8, lsl #2]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_tcm_reserve_1d
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_kfree
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_4:
Lloh17:
	adrp	x20, _list_lock@GOTPAGE
Lloh18:
	ldr	x20, [x20, _list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #8
Lloh19:
	adrp	x8, _omap_dmm@GOTPAGE
Lloh20:
	ldr	x8, [x8, _omap_dmm@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TILFMT_PAGE,8,3                ; @TILFMT_PAGE
	.comm	_containers,8,3                 ; @containers
	.comm	_list_lock,4,2                  ; @list_lock
	.comm	_omap_dmm,8,3                   ; @omap_dmm
.subsections_via_symbols
