	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hugetlb_get_unmapped_area      ## -- Begin function hugetlb_get_unmapped_area
	.p2align	4, 0x90
_hugetlb_get_unmapped_area:             ## @hugetlb_get_unmapped_area
	.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	%r8, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_TASK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_TIF_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_thread_flag
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_STACK_TOP32@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	movq	_HPAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	testq	%r15, %rax
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	subq	%r15, %r14
	jae	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MAP_FIXED@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_prepare_hugepage_range
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movq	_HPAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ALIGN
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_find_vma
	cmpq	%rbx, %r14
	jae	LBB0_14
## %bb.13:
	movq	%r13, %r8
	jmp	LBB0_16
LBB0_11:
	movq	%r13, %r8
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_14:
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:
	movq	%rbx, %rcx
	addq	%r15, %rcx
	cmpq	(%rax), %rcx
	movq	%r13, %r8
	jbe	LBB0_9
LBB0_16:
	movq	(%r12), %rax
	movq	_arch_get_unmapped_area@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hugetlb_get_unmapped_area_bottomup ## TAILCALL
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hugetlb_get_unmapped_area_topdown ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_TASK_SIZE,8,3                  ## @TASK_SIZE
	.comm	_TIF_32BIT,4,2                  ## @TIF_32BIT
	.comm	_STACK_TOP32,8,3                ## @STACK_TOP32
	.comm	_HPAGE_MASK,8,3                 ## @HPAGE_MASK
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_MAP_FIXED,8,3                  ## @MAP_FIXED
	.comm	_HPAGE_SIZE,4,2                 ## @HPAGE_SIZE
	.comm	_arch_get_unmapped_area,8,3     ## @arch_get_unmapped_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hugetlb_get_unmapped_area      ; -- Begin function hugetlb_get_unmapped_area
	.p2align	2
_hugetlb_get_unmapped_area:             ; @hugetlb_get_unmapped_area
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _TASK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TASK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
Lloh6:
	adrp	x8, _TIF_32BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIF_32BIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_test_thread_flag
Lloh9:
	adrp	x8, _STACK_TOP32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STACK_TOP32@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, x25, x8, eq
Lloh12:
	adrp	x9, _HPAGE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HPAGE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	bics	xzr, x21, x9
	b.eq	LBB0_2
LBB0_1:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	subs	x25, x8, x21
	b.hs	LBB0_6
; %bb.3:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_5:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh19:
	adrp	x8, _MAP_FIXED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAP_FIXED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_prepare_hugepage_range
	cbnz	x0, LBB0_1
	b	LBB0_5
LBB0_8:
	cbz	x19, LBB0_12
; %bb.9:
Lloh22:
	adrp	x8, _HPAGE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HPAGE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ALIGN
	mov	x19, x0
	mov	x0, x24
	mov	x1, x19
	bl	_find_vma
	cmp	x25, x19
	b.lo	LBB0_12
; %bb.10:
	cbz	x0, LBB0_5
; %bb.11:
	ldr	x8, [x0]
	add	x9, x19, x21
	cmp	x9, x8
	b.ls	LBB0_5
LBB0_12:
	ldr	x8, [x24]
Lloh25:
	adrp	x9, _arch_get_unmapped_area@GOTPAGE
Lloh26:
	ldr	x9, [x9, _arch_get_unmapped_area@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hugetlb_get_unmapped_area_bottomup
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hugetlb_get_unmapped_area_topdown
	.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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_TASK_SIZE,8,3                  ; @TASK_SIZE
	.comm	_TIF_32BIT,4,2                  ; @TIF_32BIT
	.comm	_STACK_TOP32,8,3                ; @STACK_TOP32
	.comm	_HPAGE_MASK,8,3                 ; @HPAGE_MASK
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_MAP_FIXED,8,3                  ; @MAP_FIXED
	.comm	_HPAGE_SIZE,4,2                 ; @HPAGE_SIZE
	.comm	_arch_get_unmapped_area,8,3     ; @arch_get_unmapped_area
.subsections_via_symbols
