	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sleepq_add                    ## -- Begin function _sleepq_add
	.p2align	4, 0x90
__sleepq_add:                           ## @_sleepq_add
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_SC_LOOKUP
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_lookup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$16, %rdi
	movq	8(%r14), %rsi
	movq	_sq_flink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SLIST_INSERT_HEAD
	jmp	LBB0_3
LBB0_2:
	movq	8(%r14), %rbx
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_sq_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r15, 8(%rbx)
LBB0_3:
	movq	$0, 8(%r14)
	movq	%r15, (%r14)
	movl	(%r12), %eax
	incl	%eax
	movl	%eax, (%r12)
	movq	__thr_queuefifo@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_wle@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	testb	%al, %al
	je	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INSERT_HEAD              ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INSERT_TAIL              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sq_flink,4,2                   ## @sq_flink
	.comm	_sq_hash,4,2                    ## @sq_hash
	.comm	__thr_queuefifo,4,2             ## @_thr_queuefifo
	.comm	_wle,4,2                        ## @wle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sleepq_add                    ; -- Begin function _sleepq_add
	.p2align	2
__sleepq_add:                           ; @_sleepq_add
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_SC_LOOKUP
	mov	x22, x0
	mov	x1, x21
	bl	_lookup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x0, #16
	ldr	x1, [x19, #8]
Lloh0:
	adrp	x8, _sq_flink@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sq_flink@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_SLIST_INSERT_HEAD
	b	LBB0_3
LBB0_2:
	ldr	x20, [x19, #8]
	add	x0, x22, #4
Lloh3:
	adrp	x8, _sq_hash@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sq_hash@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
	str	x21, [x20, #8]
LBB0_3:
	stp	x21, xzr, [x19]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
Lloh6:
	adrp	x9, __thr_queuefifo@GOTPAGE
Lloh7:
	ldr	x9, [x9, __thr_queuefifo@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _wle@GOTPAGE
Lloh10:
	ldr	x10, [x10, _wle@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x10]
	lsl	w8, w8, w9
	mov	x0, x20
	mov	x1, x19
	tst	w8, #0xff
	b.eq	LBB0_5
; %bb.4:
	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
	b	_TAILQ_INSERT_HEAD
LBB0_5:
	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
	b	_TAILQ_INSERT_TAIL
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sq_flink,4,2                   ; @sq_flink
	.comm	_sq_hash,4,2                    ; @sq_hash
	.comm	__thr_queuefifo,4,2             ; @_thr_queuefifo
	.comm	_wle,4,2                        ; @wle
.subsections_via_symbols
