	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libc_sem_post_compat          ## -- Begin function _libc_sem_post_compat
	.p2align	4, 0x90
__libc_sem_post_compat:                 ## @_libc_sem_post_compat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_sem_check_validity
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.4:
	movl	24(%rdi), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ksem_post                      ## TAILCALL
LBB0_2:
	addq	$8, %rdi
	movl	$1, %esi
	callq	_atomic_add_rel_int
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rmb
	movq	(%rbx), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.5:
	addq	$8, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__umtx_wake                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libc_sem_post_compat          ; -- Begin function _libc_sem_post_compat
	.p2align	2
__libc_sem_post_compat:                 ; @_libc_sem_post_compat
	.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
	bl	_sem_check_validity
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w0, [x8, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ksem_post
LBB0_5:
	add	x0, x8, #8
	mov	w1, #1
	bl	_atomic_add_rel_int
	bl	_rmb
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.6:
	add	x0, x8, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__umtx_wake
LBB0_7:
	mov	w0, #0
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
