	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_get_unmapped_area         ## -- Begin function arch_get_unmapped_area
	.p2align	4, 0x90
_arch_get_unmapped_area:                ## @arch_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_MAP_FIXED@GOTPCREL(%rip), %rax
	testq	%r8, (%rax)
	jne	LBB0_24
## %bb.1:
	movq	%r8, %r13
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_sysctl_unmap_area_factor@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r8, %rdi
	callq	_find_start_end
	cmpq	%r12, -64(%rbp)
	jae	LBB0_3
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_24
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_find_vma
	movq	-64(%rbp), %rcx
	subq	%r12, %rcx
	cmpq	%rbx, %rcx
	jb	LBB0_8
## %bb.5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	(%rbx,%r12), %rcx
	cmpq	(%rax), %rcx
	ja	LBB0_8
LBB0_7:
	movq	_mmap_min_addr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_24
LBB0_8:
	movq	_MAP_32BIT@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	_TIF_IA32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_thread_flag
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_14
## %bb.12:
	cmpq	%r12, (%r13)
	jb	LBB0_14
## %bb.13:
	movq	$0, (%r13)
LBB0_14:
	movq	-72(%rbp), %rdx
	movq	%rdx, 8(%r13)
	movq	%rdx, %rax
LBB0_15:
	cmpq	%rdx, %rax
	cmovaq	%rax, %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	movq	%r15, %r14
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_align_addr
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_find_vma
	movq	%rax, %r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	8(%r15), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_align_addr
	movq	%rax, %rbx
	movq	16(%r15), %r15
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rax
	subq	%r12, %rax
	cmpq	%rbx, %rax
	jb	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	leaq	(%rbx,%r12), %rcx
	testq	%r15, %r15
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jbe	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r13), %rcx
	addq	%rbx, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=2
	subq	%rbx, %rax
	movq	%rax, (%r13)
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-72(%rbp), %rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_likely
	movq	%rbx, %rdx
	testq	%rax, %rax
	movq	%r14, %r15
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, (%r13)
	movq	%rbx, %rdx
	jmp	LBB0_16
LBB0_23:
	movq	%rcx, 8(%r13)
LBB0_24:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movq	-72(%rbp), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_sysctl_unmap_area_factor,4,2   ## @sysctl_unmap_area_factor
	.comm	_MAP_FIXED,8,3                  ## @MAP_FIXED
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_mmap_min_addr,8,3              ## @mmap_min_addr
	.comm	_MAP_32BIT,8,3                  ## @MAP_32BIT
	.comm	_TIF_IA32,4,2                   ## @TIF_IA32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_get_unmapped_area         ; -- Begin function arch_get_unmapped_area
	.p2align	2
_arch_get_unmapped_area:                ; @arch_get_unmapped_area
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
Lloh0:
	adrp	x8, _MAP_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAP_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x4
	b.ne	LBB0_27
; %bb.1:
	mov	x23, x4
	mov	x19, x2
	mov	x20, x0
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh6:
	adrp	x8, _sysctl_unmap_area_factor@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sysctl_unmap_area_factor@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x4
	bl	_find_start_end
	ldr	x8, [sp]
	cmp	x8, x19
	b.hs	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_27
LBB0_3:
	cbz	x22, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_PAGE_ALIGN
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_find_vma
	ldr	x8, [sp]
	sub	x8, x8, x19
	cmp	x8, x22
	b.lo	LBB0_8
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _mmap_min_addr@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mmap_min_addr@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x10, x22, x19
	cmp	x10, x8
	ccmp	x22, x9, #0, ls
	b.lo	LBB0_8
	b	LBB0_27
LBB0_7:
Lloh15:
	adrp	x8, _mmap_min_addr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mmap_min_addr@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_27
LBB0_8:
Lloh18:
	adrp	x8, _MAP_32BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAP_32BIT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	tst	x8, x23
	b.ne	LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _TIF_IA32@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TIF_IA32@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_test_thread_flag
	cbz	x0, LBB0_28
LBB0_10:
	cbnz	w26, LBB0_13
; %bb.11:
	ldr	x8, [x21]
	cmp	x8, x19
	b.lo	LBB0_13
; %bb.12:
	str	xzr, [x21]
LBB0_13:
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
	mov	x9, x8
LBB0_14:
	cmp	x9, x8
	csel	x24, x9, x8, hi
	cmp	w26, #0
	cset	w23, eq
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	mov	x0, x24
	mov	x1, x20
	mov	w2, #0
	bl	_align_addr
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_find_vma
	ldr	x8, [sp]
	sub	x8, x8, x19
	cmp	x8, x22
	b.hs	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x22, [sp, #8]
	cmp	x24, x22
	b.eq	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x23
	bl	_likely
	mov	x24, x22
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [x21]
	mov	x24, x22
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x25, x0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [x25, #8]
	mov	x1, x20
	mov	w2, #0
	bl	_align_addr
	mov	x22, x0
	ldr	x25, [x25, #16]
	ldr	x8, [sp]
	sub	x8, x8, x19
	cmp	x8, x0
	b.lo	LBB0_16
LBB0_21:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x22, x19
	cbz	x25, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [x25]
	cmp	x9, x8
	b.ls	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=2
	cbnz	w26, LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x9, [x21]
	add	x9, x9, x22
	cmp	x9, x8
	b.hs	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=2
	sub	x8, x8, x22
	str	x8, [x21]
	b	LBB0_20
LBB0_26:
	str	x9, [x21, #8]
LBB0_27:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_28:
	ldr	x9, [x21, #8]
	ldr	x8, [sp, #8]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_sysctl_unmap_area_factor,4,2   ; @sysctl_unmap_area_factor
	.comm	_MAP_FIXED,8,3                  ; @MAP_FIXED
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_mmap_min_addr,8,3              ; @mmap_min_addr
	.comm	_MAP_32BIT,8,3                  ; @MAP_32BIT
	.comm	_TIF_IA32,4,2                   ; @TIF_IA32
.subsections_via_symbols
