	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mq_notify                    ## -- Begin function __mq_notify
	.p2align	4, 0x90
___mq_notify:                           ## @__mq_notify
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_SIGEV_THREAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	___sigev_check_init
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	8(%r14), %rdi
	callq	___sigev_delete_node
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	callq	___sigev_list_unlock
LBB0_4:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___sys_kmq_notify               ## TAILCALL
LBB0_8:
	movq	_SI_MESGQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	___sigev_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_mq_dispatch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___sigev_get_sigevent
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	___sigev_delete_node
LBB0_12:
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	___sigev_register
	movl	(%r14), %edi
	leaq	-24(%rbp), %rsi
	callq	___sys_kmq_notify
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	___sigev_list_unlock
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGEV_THREAD,8,3               ## @SIGEV_THREAD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_SI_MESGQ,4,2                   ## @SI_MESGQ
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_mq_dispatch,4,2                ## @mq_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mq_notify                    ; -- Begin function __mq_notify
	.p2align	2
___mq_notify:                           ; @__mq_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SIGEV_THREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGEV_THREAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	___sigev_check_init
	cbz	x0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	w19, #-1
	b	LBB0_12
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	bl	___sigev_list_lock
	ldr	x0, [x19, #8]
	bl	___sigev_delete_node
	str	xzr, [x19, #8]
	bl	___sigev_list_unlock
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	___sys_kmq_notify
LBB0_8:
Lloh8:
	adrp	x8, _SI_MESGQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI_MESGQ@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	mov	x1, x20
	mov	w3, #1
	bl	___sigev_alloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x20, x0
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _mq_dispatch@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mq_dispatch@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	ldr	w2, [x0]
	add	x1, sp, #8
	bl	___sigev_get_sigevent
	bl	___sigev_list_lock
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	___sigev_delete_node
LBB0_11:
	str	x20, [x19, #8]
	mov	x0, x20
	bl	___sigev_register
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	___sys_kmq_notify
	mov	x19, x0
	bl	___sigev_list_unlock
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGEV_THREAD,8,3               ; @SIGEV_THREAD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_SI_MESGQ,4,2                   ; @SI_MESGQ
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_mq_dispatch,4,2                ; @mq_dispatch
.subsections_via_symbols
