	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtld_thread_init              ## -- Begin function _rtld_thread_init
	.p2align	4, 0x90
__rtld_thread_init:                     ## @_rtld_thread_init
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	$-1, %edi
	callq	_thread_mask_set
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testq	%r13, %r13
	jne	LBB0_2
## %bb.1:
	movq	_deflockinfo@GOTPCREL(%rip), %r13
LBB0_2:
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	*48(%r13)
	movq	%rax, (%r14,%rbx,8)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	cmpl	%ebx, %eax
	jg	LBB0_22
## %bb.8:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.9:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_rtld_locks@GOTPCREL(%rip), %r15
	movq	_lockinfo@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	*40(%rbx)
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, 8(%rcx,%r12)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	*16(%rbx)
	movq	(%r15), %rax
	movq	(%rax,%r12), %rdi
	jmp	LBB0_13
LBB0_15:
	testl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_20
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx), %rcx
	movq	(%r15), %rdx
	movq	%rcx, (%rdx,%rbx,2)
	movq	(%r15), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, 8(%rcx,%rbx,2)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rcx,%rbx,2), %rdi
	callq	*24(%r13)
	movq	_RTLD_LOCK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_20:
	movq	48(%r13), %rax
	movq	_lockinfo@GOTPCREL(%rip), %rcx
	movq	%rax, 48(%rcx)
	movq	40(%r13), %rax
	movq	%rax, 40(%rcx)
	movl	32(%r13), %eax
	movl	%eax, 32(%rcx)
	movups	16(%r13), %xmm0
	movups	%xmm0, 16(%rcx)
	movl	8(%r13), %eax
	movl	%eax, 8(%rcx)
	movl	4(%r13), %eax
	movl	%eax, 4(%rcx)
	movl	(%r13), %eax
	movl	%eax, (%rcx)
	movl	$-1, %edi
	callq	_thread_mask_clear
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_thread_mask_set
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.26:
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg                            ## TAILCALL
LBB0_21:
	callq	___stack_chk_fail
LBB0_22:
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.23:
	incq	%rbx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%r14,%rbx,8), %rdi
	callq	*40(%r13)
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_24
LBB0_25:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_RTLD_LOCK_CNT,4,2              ## @RTLD_LOCK_CNT
	.comm	_deflockinfo,56,3               ## @deflockinfo
	.comm	_rtld_locks,8,3                 ## @rtld_locks
	.comm	_lockinfo,56,3                  ## @lockinfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_rtld_thread_init: done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtld_thread_init              ; -- Begin function _rtld_thread_init
	.p2align	2
__rtld_thread_init:                     ; @_rtld_thread_init
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _RTLD_LOCK_CNT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RTLD_LOCK_CNT@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	w0, #-1
	bl	_thread_mask_set
	mov	x19, x0
Lloh7:
	adrp	x8, _deflockinfo@GOTPAGE
Lloh8:
	ldr	x8, [x8, _deflockinfo@GOTPAGEOFF]
	cmp	x20, #0
	csel	x20, x8, x20, eq
	ldr	w8, [x21]
Lloh9:
	adrp	x23, _lockinfo@GOTPAGE
Lloh10:
	ldr	x23, [x23, _lockinfo@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	blr	x8
	str	x0, [x22, x24, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
	cmp	w8, w24
	b.gt	LBB0_21
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x25, #0
	mov	x26, #0
Lloh11:
	adrp	x24, _rtld_locks@GOTPAGE
Lloh12:
	ldr	x24, [x24, _rtld_locks@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #40]
	blr	x8
	ldr	w8, [x21]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	add	x25, x25, #16
	cmp	x26, w8, sxtw
	b.ge	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x0, [x9, x25]
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x9, x25
	ldr	w8, [x8, #8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #16]
	blr	x8
	ldr	x8, [x24]
	ldr	x0, [x8, x25]
	b	LBB0_8
LBB0_13:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	add	x25, x25, #16
	cmp	x26, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, x26, lsl #3]
	ldr	x10, [x24]
	str	x9, [x10, x25]
	ldr	x9, [x24]
	add	x10, x9, x25
	ldr	w10, [x10, #8]
	tst	w10, w19
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x9, x25]
	blr	x8
	ldr	w8, [x21]
	b	LBB0_15
LBB0_18:
	ldp	x9, x8, [x20, #40]
	stp	x9, x8, [x23, #40]
	ldr	w8, [x20, #32]
	str	w8, [x23, #32]
	ldp	x9, x8, [x20, #16]
	stp	x9, x8, [x23, #16]
	ldr	w8, [x20, #8]
	str	w8, [x23, #8]
	ldr	d0, [x20]
	str	d0, [x23]
	mov	w0, #-1
	bl	_thread_mask_clear
	mov	x0, x19
	bl	_thread_mask_set
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	sub	sp, x29, #64
	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	_dbg
LBB0_20:
	bl	___stack_chk_fail
LBB0_21:
	cmp	w24, #1
	b.lt	LBB0_24
; %bb.22:
	and	x19, x24, #0xffffffff
	sub	x21, x22, #8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldr	x0, [x21, x19, lsl #3]
	blr	x8
	subs	x19, x19, #1
	b.hi	LBB0_23
LBB0_24:
	bl	_abort
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RTLD_LOCK_CNT,4,2              ; @RTLD_LOCK_CNT
	.comm	_deflockinfo,56,3               ; @deflockinfo
	.comm	_rtld_locks,8,3                 ; @rtld_locks
	.comm	_lockinfo,56,3                  ; @lockinfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_rtld_thread_init: done"

.subsections_via_symbols
