	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_alloc_wake_addr           ## -- Begin function _thr_alloc_wake_addr
	.p2align	4, 0x90
__thr_alloc_wake_addr:                  ## @_thr_alloc_wake_addr
	.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
	movq	__thr_initial@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %r14
	movq	_addr_lock@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_THR_LOCK_ACQUIRE
	movq	_wake_addr_head@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.12:
	movq	8(%rbx), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_default_wake_addr@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_getpagesize
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movq	_PROT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rsi
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	xorl	%edi, %edi
	movl	%eax, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	cmpl	$32, %r15d
	jb	LBB0_11
## %bb.4:
	shrl	$4, %r15d
	leaq	-1(%r15), %rcx
	leaq	-2(%r15), %rsi
	movl	%ecx, %eax
	andl	$3, %eax
	movl	$1, %edx
	cmpq	$3, %rsi
	jb	LBB0_7
## %bb.5:
	leaq	80(%rbx), %rsi
	andq	$-4, %rcx
	negq	%rcx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rsi), %rdi
	movq	%rdi, -56(%rsi)
	leaq	-32(%rsi), %rdi
	movq	%rdi, -40(%rsi)
	leaq	-16(%rsi), %rdi
	movq	%rdi, -24(%rsi)
	movq	%rsi, -8(%rsi)
	addq	$64, %rsi
	leaq	(%rcx,%rdx), %rdi
	addq	$4, %rdi
	addq	$4, %rdx
	cmpq	$1, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	shlq	$4, %rdx
	leaq	(%rdx,%rbx), %rcx
	addq	$16, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -8(%rcx)
	addq	$16, %rcx
	decq	%rax
	jne	LBB0_9
LBB0_10:
	decl	%r15d
	movq	%r15, %r13
LBB0_11:
	shlq	$4, %r13
	movq	$0, 8(%rbx,%r13)
	movq	%rbx, %rax
	addq	$16, %rax
LBB0_13:
	movq	%rax, (%r12)
	movq	_addr_lock@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_THR_LOCK_RELEASE
	movq	$0, (%rbx)
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__thr_initial,8,3               ## @_thr_initial
	.comm	_default_wake_addr,16,3         ## @default_wake_addr
	.comm	_addr_lock,4,2                  ## @addr_lock
	.comm	_wake_addr_head,8,3             ## @wake_addr_head
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_alloc_wake_addr           ; -- Begin function _thr_alloc_wake_addr
	.p2align	2
__thr_alloc_wake_addr:                  ; @_thr_alloc_wake_addr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, __thr_initial@GOTPAGE
Lloh1:
	ldr	x8, [x8, __thr_initial@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	bl	__get_curthread
	mov	x19, x0
Lloh3:
	adrp	x1, _addr_lock@GOTPAGE
Lloh4:
	ldr	x1, [x1, _addr_lock@GOTPAGEOFF]
	bl	_THR_LOCK_ACQUIRE
Lloh5:
	adrp	x22, _wake_addr_head@GOTPAGE
Lloh6:
	ldr	x22, [x22, _wake_addr_head@GOTPAGEOFF]
	ldr	x20, [x22]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	b	LBB0_14
LBB0_3:
Lloh7:
	adrp	x20, _default_wake_addr@GOTPAGE
Lloh8:
	ldr	x20, [x20, _default_wake_addr@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	bl	_getpagesize
	mov	x21, x0
	bl	_getpagesize
	mov	x1, x0
Lloh9:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MAP_ANON@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MAP_ANON@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh17:
	ldr	w8, [x10]
Lloh18:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x20, x0
	mov	x8, #0
	cmp	w21, #32
	b.lo	LBB0_13
; %bb.5:
	lsr	w8, w21, #4
	sub	x10, x8, #1
	cmp	x10, #4
	b.hs	LBB0_7
; %bb.6:
	mov	w9, #1
	b	LBB0_10
LBB0_7:
	and	x11, x10, #0xfffffffffffffffc
	orr	x9, x11, #0x1
	add	x12, x20, #80
	mov	x13, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #48
	sub	x15, x12, #32
	stur	x14, [x12, #-56]
	sub	x14, x12, #16
	stur	x15, [x12, #-40]
	stur	x14, [x12, #-24]
	stur	x12, [x12, #-8]
	add	x12, x12, #64
	subs	x13, x13, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_10:
	add	x10, x20, x9, lsl #4
	add	x10, x10, #16
	sub	x9, x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stur	x10, [x10, #-8]
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	sub	w8, w8, #1
LBB0_13:
	add	x8, x20, x8, lsl #4
	str	xzr, [x8, #8]
	add	x8, x20, #16
LBB0_14:
	str	x8, [x22]
Lloh21:
	adrp	x1, _addr_lock@GOTPAGE
Lloh22:
	ldr	x1, [x1, _addr_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_THR_LOCK_RELEASE
	str	xzr, [x20]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__thr_initial,8,3               ; @_thr_initial
	.comm	_default_wake_addr,16,3         ; @default_wake_addr
	.comm	_addr_lock,4,2                  ; @addr_lock
	.comm	_wake_addr_head,8,3             ; @wake_addr_head
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
.subsections_via_symbols
