	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_mach_notify_dead_name       ## -- Begin function do_mach_notify_dead_name
	.p2align	4, 0x90
_do_mach_notify_dead_name:              ## @do_mach_notify_dead_name
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_waiting_inf@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_inf_debug
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	cmpq	%r14, (%rdi)
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	callq	_proc_debug
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_proc_wait_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_inf_task_died_status
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_inf_port_to_thread
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_proc_debug
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_6:
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
LBB0_7:
	movl	$1, 16(%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_mach_port_deallocate
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_waiting_inf,8,3                ## @waiting_inf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port = %d"

L_.str.1:                               ## @.str.1
	.asciz	"is dead"

	.comm	_MACH_PORT_NULL,8,3             ## @MACH_PORT_NULL
	.comm	_proc_wait_pid,8,3              ## @proc_wait_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_mach_notify_dead_name       ; -- Begin function do_mach_notify_dead_name
	.p2align	2
_do_mach_notify_dead_name:              ; @do_mach_notify_dead_name
	.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	x20, x1
Lloh0:
	adrp	x8, _waiting_inf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _waiting_inf@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_inf_debug
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_proc_debug
Lloh7:
	adrp	x8, _MACH_PORT_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MACH_PORT_NULL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9]
Lloh10:
	adrp	x8, _proc_wait_pid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _proc_wait_pid@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_inf_task_died_status
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_inf_port_to_thread
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_proc_debug
Lloh15:
	adrp	x8, _MACH_PORT_NULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MACH_PORT_NULL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_8:
	bl	_mach_task_self
	mov	x1, x20
	bl	_mach_port_deallocate
	str	xzr, [x19, #8]
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_waiting_inf,8,3                ; @waiting_inf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port = %d"

l_.str.1:                               ; @.str.1
	.asciz	"is dead"

	.comm	_MACH_PORT_NULL,8,3             ; @MACH_PORT_NULL
	.comm	_proc_wait_pid,8,3              ; @proc_wait_pid
.subsections_via_symbols
