	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_threadqueue_enqueuepriority ## -- Begin function __lwp_threadqueue_enqueuepriority
	.p2align	4, 0x90
___lwp_threadqueue_enqueuepriority:     ## @__lwp_threadqueue_enqueuepriority
	.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	%rdi, %r14
	leaq	28(%rsi), %rdi
	callq	___lwp_queue_init_empty
	movq	(%rbx), %rsi
	movq	_LWP_THREADQ_PRIOPERHEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
LBB0_3:
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r12
	shlq	$4, %r15
	leaq	(%r12,%r15), %r14
	movq	_LWP_THREADQ_REVERSESEARCHMASK@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	je	LBB0_7
## %bb.4:
	movq	%rsi, %r15
	movq	_LWP_PRIO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	__CPU_ISR_Disable
	movq	(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_ishead
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_23:
	incl	%r13d
	movslq	%r13d, %r13
LBB0_24:
	movq	8(%r12), %rax
	cmpq	$131, %rax
	jne	LBB0_27
## %bb.25:
	movq	$129, 8(%r12)
	cmpq	%r13, %r15
	je	LBB0_26
## %bb.34:
	movq	8(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	%rbx, (%rcx)
	movq	%rcx, 8(%rbx)
	movq	%rcx, (%rax)
	jmp	LBB0_18
LBB0_7:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_LWP_PRIO_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	__CPU_ISR_Disable
	movq	8(%r12,%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_istail
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	decq	%r13
LBB0_15:
	movq	8(%r12), %rax
	cmpq	$131, %rax
	jne	LBB0_27
## %bb.16:
	movq	$129, 8(%r12)
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
LBB0_26:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	___lwp_queue_tail
	movq	(%rax), %rcx
	movq	%rax, 8(%r14)
	movq	%rcx, (%r14)
	movq	%r14, 8(%rcx)
	movq	%r14, (%rax)
	jmp	LBB0_18
LBB0_27:
	movq	$129, 8(%r12)
	cmpq	$130, %rax
	je	LBB0_31
## %bb.28:
	cmpq	$128, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_33
## %bb.29:
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_30
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	callq	__CPU_ISR_Restore
	movq	_LWP_PRIO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	__CPU_ISR_Disable
	movq	(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_ishead
	testl	%eax, %eax
	jne	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	cmpq	%r13, %r15
	jae	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	__CPU_ISR_Flash
	movl	48(%rbx), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	___lwp_statesset
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	32(%rbx), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_ishead
	testl	%eax, %eax
	je	LBB0_20
	jmp	LBB0_24
LBB0_31:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	___lwp_wd_isactive
	testl	%eax, %eax
	je	LBB0_30
## %bb.32:
	movq	%r14, %rdi
	callq	___lwp_wd_deactivate
	callq	__CPU_ISR_Restore
	movq	%r14, %rdi
	callq	___lwp_wd_remove_ticks
	jmp	LBB0_33
LBB0_30:
	callq	__CPU_ISR_Restore
LBB0_33:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___lwp_thread_unblock           ## TAILCALL
LBB0_9:
	addq	%r12, %r15
	addq	$8, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	__CPU_ISR_Restore
	movq	_LWP_PRIO_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	__CPU_ISR_Disable
	movq	(%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_istail
	testl	%eax, %eax
	jne	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	__CPU_ISR_Flash
	movl	48(%rbx), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	___lwp_statesset
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	40(%rbx), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___lwp_queue_istail
	testl	%eax, %eax
	je	LBB0_11
	jmp	LBB0_15
LBB0_17:
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 8(%rcx)
	movq	%rax, (%rcx)
	movq	%rcx, 8(%rax)
	movq	%rcx, (%rbx)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_THREADQ_PRIOPERHEADER,8,3  ## @LWP_THREADQ_PRIOPERHEADER
	.comm	_LWP_THREADQ_REVERSESEARCHMASK,8,3 ## @LWP_THREADQ_REVERSESEARCHMASK
	.comm	_LWP_PRIO_MIN,8,3               ## @LWP_PRIO_MIN
	.comm	_LWP_PRIO_MAX,4,2               ## @LWP_PRIO_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_threadqueue_enqueuepriority ; -- Begin function __lwp_threadqueue_enqueuepriority
	.p2align	2
___lwp_threadqueue_enqueuepriority:     ; @__lwp_threadqueue_enqueuepriority
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #28
	bl	___lwp_queue_init_empty
	ldr	x24, [x19]
Lloh0:
	adrp	x8, _LWP_THREADQ_PRIOPERHEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_THREADQ_PRIOPERHEADER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x8, x24, x8
	ldr	x9, [x20, #16]
	add	x25, x9, x8, lsl #4
	mov	x22, x25
	ldr	x23, [x20]
Lloh3:
	adrp	x8, _LWP_THREADQ_REVERSESEARCHMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_THREADQ_REVERSESEARCHMASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_11
; %bb.1:
Lloh6:
	adrp	x25, _LWP_PRIO_MAX@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LWP_PRIO_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	__CPU_ISR_Restore
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w26, [x25]
	bl	__CPU_ISR_Disable
	ldr	x21, [x22]
	mov	x0, x22
	mov	x1, x21
	bl	___lwp_queue_ishead
	cbnz	w0, LBB0_7
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x21]
	cmp	x24, x26
	b.hs	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	__CPU_ISR_Flash
	ldr	w0, [x21, #48]
	mov	x1, x23
	bl	___lwp_statesset
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x21, [x21, #32]
	mov	x0, x22
	mov	x1, x21
	bl	___lwp_queue_ishead
	cbz	w0, LBB0_4
	b	LBB0_8
LBB0_7:
	add	w8, w26, #1
	sxtw	x26, w8
LBB0_8:
	ldr	x8, [x20, #8]
	cmp	x8, #131
	b.ne	LBB0_21
; %bb.9:
	mov	w8, #129
	str	x8, [x20, #8]
	cmp	x24, x26
	b.eq	LBB0_20
; %bb.10:
	ldr	x8, [x21, #8]
	stp	x21, x8, [x19]
	str	x19, [x21, #8]
	str	x19, [x8]
	b	LBB0_29
LBB0_11:
Lloh8:
	adrp	x26, _LWP_PRIO_MIN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _LWP_PRIO_MIN@GOTPAGEOFF]
	ldr	x27, [x26]
	bl	__CPU_ISR_Disable
	ldr	x21, [x25, #8]!
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	__CPU_ISR_Restore
	ldr	x27, [x26]
	bl	__CPU_ISR_Disable
	ldr	x21, [x25]
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x22
	mov	x1, x21
	bl	___lwp_queue_istail
	cbnz	w0, LBB0_17
LBB0_14:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x27, [x21]
	cmp	x24, x27
	b.ls	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	bl	__CPU_ISR_Flash
	ldr	w0, [x21, #48]
	mov	x1, x23
	bl	___lwp_statesset
	cbz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x21, [x21, #40]
	mov	x0, x22
	mov	x1, x21
	bl	___lwp_queue_istail
	cbz	w0, LBB0_14
	b	LBB0_18
LBB0_17:
	sub	x27, x27, #1
LBB0_18:
	ldr	x8, [x20, #8]
	cmp	x8, #131
	b.ne	LBB0_21
; %bb.19:
	mov	w8, #129
	str	x8, [x20, #8]
	cmp	x24, x27
	b.ne	LBB0_28
LBB0_20:
	add	x0, x21, #28
	bl	___lwp_queue_tail
	ldr	x8, [x0]
	stp	x8, x0, [x19]
	str	x19, [x8, #8]
	str	x19, [x0]
	b	LBB0_29
LBB0_21:
	mov	w9, #129
	str	x9, [x20, #8]
	cmp	x8, #130
	b.eq	LBB0_24
; %bb.22:
	cmp	x8, #128
	b.ne	LBB0_27
; %bb.23:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_26
LBB0_24:
	add	x20, x19, #8
	mov	x0, x20
	bl	___lwp_wd_isactive
	cbz	w0, LBB0_26
; %bb.25:
	mov	x0, x20
	bl	___lwp_wd_deactivate
	bl	__CPU_ISR_Restore
	mov	x0, x20
	bl	___lwp_wd_remove_ticks
	b	LBB0_27
LBB0_26:
	bl	__CPU_ISR_Restore
LBB0_27:
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	___lwp_thread_unblock
LBB0_28:
	ldr	x8, [x21]
	stp	x8, x21, [x19]
	str	x19, [x8, #8]
	str	x19, [x21]
LBB0_29:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_THREADQ_PRIOPERHEADER,8,3  ; @LWP_THREADQ_PRIOPERHEADER
	.comm	_LWP_THREADQ_REVERSESEARCHMASK,8,3 ; @LWP_THREADQ_REVERSESEARCHMASK
	.comm	_LWP_PRIO_MIN,8,3               ; @LWP_PRIO_MIN
	.comm	_LWP_PRIO_MAX,4,2               ; @LWP_PRIO_MAX
.subsections_via_symbols
