	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigev_thread_create
_sigev_thread_create:                   ## @sigev_thread_create
	.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
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	movq	_sigev_default_thread@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	(%rbx), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	___sigev_list_unlock
	movq	(%rbx), %rbx
	jmp	LBB0_9
LBB0_3:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	$0, 16(%rax)
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, (%rbx)
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	__pthread_cond_init
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	_tn_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sigev_threads@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	xorl	%eax, %eax
	callq	___sigev_list_unlock
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_sigfillset
	movq	_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sigdelset
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sigdelset
	movq	_SIGFPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sigdelset
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sigdelset
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sigdelset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-44(%rbp), %r12
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	__sigprocmask
	leaq	12(%rbx), %rdi
	movq	_sigev_service_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sigev_default_attr@GOTPCREL(%rip), %rsi
	movq	%rbx, %rcx
	callq	__pthread_create
	movl	%eax, %r15d
	movl	(%r13), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	__sigprocmask
	xorl	%eax, %eax
	callq	___sigev_list_lock
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_tn_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	xorl	%eax, %eax
	callq	___sigev_list_unlock
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	cmpl	$-1, 4(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	_sigev_list_mtx@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	__pthread_cond_wait
	cmpl	$-1, 4(%rbx)
	je	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	___sigev_list_unlock
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sigev_default_thread,8,3       ## @sigev_default_thread
	.comm	_sigev_threads,4,2              ## @sigev_threads
	.comm	_tn_link,4,2                    ## @tn_link
	.comm	_SIGBUS,4,2                     ## @SIGBUS
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_SIGFPE,4,2                     ## @SIGFPE
	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_sigev_default_attr,4,2         ## @sigev_default_attr
	.comm	_sigev_service_loop,4,2         ## @sigev_service_loop
	.comm	_sigev_list_mtx,4,2             ## @sigev_list_mtx
	.no_dead_strip	_sigev_thread_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sigev_thread_create
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sigev_thread_create:                   ; @sigev_thread_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x19, _sigev_default_thread@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sigev_default_thread@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	bl	___sigev_list_lock
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	___sigev_list_unlock
	ldr	x19, [x19]
	b	LBB0_9
LBB0_3:
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	str	xzr, [x0, #16]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	add	x20, x0, #8
	mov	x0, x20
	mov	x1, #0
	bl	__pthread_cond_init
	bl	___sigev_list_lock
Lloh4:
	adrp	x22, _tn_link@GOTPAGE
Lloh5:
	ldr	x22, [x22, _tn_link@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh6:
	adrp	x0, _sigev_threads@GOTPAGE
Lloh7:
	ldr	x0, [x0, _sigev_threads@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	bl	___sigev_list_unlock
	add	x0, sp, #12
	bl	_sigfillset
Lloh8:
	adrp	x8, _SIGBUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGBUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigdelset
Lloh11:
	adrp	x8, _SIGILL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigdelset
Lloh14:
	adrp	x8, _SIGFPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGFPE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigdelset
Lloh17:
	adrp	x8, _SIGSEGV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGSEGV@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigdelset
Lloh20:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigdelset
Lloh23:
	adrp	x23, _SIG_SETMASK@GOTPAGE
Lloh24:
	ldr	x23, [x23, _SIG_SETMASK@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	__sigprocmask
	add	x0, x19, #12
Lloh25:
	adrp	x8, _sigev_service_loop@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sigev_service_loop@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, _sigev_default_attr@GOTPAGE
Lloh29:
	ldr	x1, [x1, _sigev_default_attr@GOTPAGEOFF]
	mov	x3, x19
	bl	__pthread_create
	mov	x21, x0
	ldr	w0, [x23]
	add	x1, sp, #8
	mov	x2, #0
	bl	__sigprocmask
	bl	___sigev_list_lock
	cbz	w21, LBB0_5
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_LIST_REMOVE
	bl	___sigev_list_unlock
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_9
LBB0_5:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.ne	LBB0_8
; %bb.6:
Lloh30:
	adrp	x21, _sigev_list_mtx@GOTPAGE
Lloh31:
	ldr	x21, [x21, _sigev_list_mtx@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	__pthread_cond_wait
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_7
LBB0_8:
	bl	___sigev_list_unlock
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_sigev_default_thread,8,3       ; @sigev_default_thread
	.comm	_sigev_threads,4,2              ; @sigev_threads
	.comm	_tn_link,4,2                    ; @tn_link
	.comm	_SIGBUS,4,2                     ; @SIGBUS
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_SIGFPE,4,2                     ; @SIGFPE
	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_sigev_default_attr,4,2         ; @sigev_default_attr
	.comm	_sigev_service_loop,4,2         ; @sigev_service_loop
	.comm	_sigev_list_mtx,4,2             ; @sigev_list_mtx
	.no_dead_strip	_sigev_thread_create
.subsections_via_symbols
