	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_sema_initialize          ## -- Begin function __lwp_sema_initialize
	.p2align	4, 0x90
___lwp_sema_initialize:                 ## @__lwp_sema_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, 8(%rdi)
	movl	%edx, 4(%rdi)
	movq	%rsi, %rdi
	callq	___lwp_sema_ispriority
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_LWP_THREADQ_MODEFIFO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LWP_THREADQ_MODEPRIORITY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_LWP_STATES_WAITING_FOR_SEMAPHORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LWP_SEMA_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___lwp_threadqueue_init         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_THREADQ_MODEPRIORITY,4,2   ## @LWP_THREADQ_MODEPRIORITY
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ## @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_SEMAPHORE,4,2 ## @LWP_STATES_WAITING_FOR_SEMAPHORE
	.comm	_LWP_SEMA_TIMEOUT,4,2           ## @LWP_SEMA_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_sema_initialize          ; -- Begin function __lwp_sema_initialize
	.p2align	2
___lwp_sema_initialize:                 ; @__lwp_sema_initialize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x1]
	stp	w2, w8, [x0, #4]
	mov	x0, x1
	bl	___lwp_sema_ispriority
Lloh0:
	adrp	x8, _LWP_THREADQ_MODEPRIORITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_THREADQ_MODEPRIORITY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LWP_THREADQ_MODEFIFO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LWP_THREADQ_MODEFIFO@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _LWP_STATES_WAITING_FOR_SEMAPHORE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LWP_STATES_WAITING_FOR_SEMAPHORE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _LWP_SEMA_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LWP_SEMA_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	ldr	w3, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___lwp_threadqueue_init
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_THREADQ_MODEPRIORITY,4,2   ; @LWP_THREADQ_MODEPRIORITY
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ; @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_SEMAPHORE,4,2 ; @LWP_STATES_WAITING_FOR_SEMAPHORE
	.comm	_LWP_SEMA_TIMEOUT,4,2           ; @LWP_SEMA_TIMEOUT
.subsections_via_symbols
