	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xnu_wait
___xnu_wait:                            ## @__xnu_wait
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_R_DEBUG_REASON_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_ex@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, -80(%rbp)
	movl	$24, -96(%rbp)
	movq	_MACH_RCV_MSG@GOTPCREL(%rip), %rax
	movq	_MACH_RCV_INTERRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MACH_MSG_TIMEOUT_NONE@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	leaq	-96(%rbp), %rdi
	xorl	%edx, %edx
	movl	$24, %ecx
	callq	_mach_msg
	movq	_MACH_RCV_INTERRUPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:
	movq	_R_DEBUG_REASON_MACH_RCV_INTERRUPTED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_debug_reg_get
	movl	%eax, (%r15)
LBB0_5:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-96(%rbp), %rbx
	leaq	-72(%rbp), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_ex@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MACH_RCV_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MACH_RCV_MSG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r14), %r9d
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$24, %ecx
	callq	_mach_msg
	movq	_MACH_RCV_INTERRUPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MACH_MSG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_validate_mach_message
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_handle_dead_notify
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_encode_reply
	movq	_MACH_SEND_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MACH_SEND_MSG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	-72(%rbp), %edx
	movl	(%r13), %r8d
	movl	(%r14), %r9d
	movl	%r8d, (%rsp)
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_mach_msg
	cmpq	$0, -64(%rbp)
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACH_MSG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_mach_task_self
	movq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_7
LBB0_15:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_16:
	leaq	-96(%rbp), %r14
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_handle_exception_message
	movl	%eax, %ebx
	movl	-48(%rbp), %edx
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_encode_reply
	movq	_MACH_SEND_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MACH_SEND_MSG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	-72(%rbp), %edx
	movl	(%r13), %r8d
	movl	%r8d, (%rsp)
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_mach_msg
	cmpq	$0, -64(%rbp)
	je	LBB0_4
## %bb.17:
	movq	_MACH_MSG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.18:
	xorl	%eax, %eax
	callq	_mach_task_self
	movq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_4
LBB0_20:
	movq	_R_DEBUG_REASON_DEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ## @R_DEBUG_REASON_UNKNOWN
	.comm	_ex,4,2                         ## @ex
	.comm	_MACH_RCV_MSG,4,2               ## @MACH_RCV_MSG
	.comm	_MACH_RCV_INTERRUPT,4,2         ## @MACH_RCV_INTERRUPT
	.comm	_MACH_MSG_TIMEOUT_NONE,4,2      ## @MACH_MSG_TIMEOUT_NONE
	.comm	_MACH_PORT_NULL,4,2             ## @MACH_PORT_NULL
	.comm	_MACH_RCV_INTERRUPTED,8,3       ## @MACH_RCV_INTERRUPTED
	.comm	_R_DEBUG_REASON_MACH_RCV_INTERRUPTED,4,2 ## @R_DEBUG_REASON_MACH_RCV_INTERRUPTED
	.comm	_MACH_MSG_SUCCESS,8,3           ## @MACH_MSG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"message didn't succeeded\n"

	.comm	_R_DEBUG_REASON_DEAD,4,2        ## @R_DEBUG_REASON_DEAD
	.comm	_KERN_FAILURE,4,2               ## @KERN_FAILURE
	.comm	_MACH_SEND_MSG,4,2              ## @MACH_SEND_MSG
	.comm	_MACH_SEND_INTERRUPT,4,2        ## @MACH_SEND_INTERRUPT
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"failed to deallocate reply port\n"

L_.str.2:                               ## @.str.2
	.asciz	"PC"

	.no_dead_strip	___xnu_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xnu_wait
___xnu_wait:                            ; @__xnu_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x25, _ex@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ex@GOTPAGEOFF]
	ldr	w4, [x25]
	mov	w8, #24
Lloh5:
	adrp	x26, _MACH_RCV_MSG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MACH_RCV_MSG@GOTPAGEOFF]
	str	w4, [sp, #24]
	str	w8, [sp, #8]
	ldr	w8, [x26]
Lloh7:
	adrp	x27, _MACH_RCV_INTERRUPT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MACH_RCV_INTERRUPT@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w1, w9, w8
Lloh9:
	adrp	x28, _MACH_MSG_TIMEOUT_NONE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MACH_MSG_TIMEOUT_NONE@GOTPAGEOFF]
	ldr	w5, [x28]
Lloh11:
	adrp	x23, _MACH_PORT_NULL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MACH_PORT_NULL@GOTPAGEOFF]
	ldr	w6, [x23]
	add	x0, sp, #8
	mov	w2, #0
	mov	w3, #24
	bl	_mach_msg
Lloh13:
	adrp	x21, _MACH_RCV_INTERRUPTED@GOTPAGE
Lloh14:
	ldr	x21, [x21, _MACH_RCV_INTERRUPTED@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_2:
Lloh15:
	adrp	x8, _R_DEBUG_REASON_MACH_RCV_INTERRUPTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R_DEBUG_REASON_MACH_RCV_INTERRUPTED@GOTPAGEOFF]
LBB0_3:
	ldr	w20, [x8]
LBB0_4:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_r_debug_reg_get
	str	w0, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
Lloh19:
	adrp	x24, _MACH_MSG_SUCCESS@GOTPAGE
Lloh20:
	ldr	x24, [x24, _MACH_MSG_SUCCESS@GOTPAGEOFF]
Lloh21:
	adrp	x22, _KERN_FAILURE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _KERN_FAILURE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w4, [x25]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	ldr	w5, [x28]
	ldr	w6, [x23]
	add	x0, sp, #8
	mov	w2, #0
	mov	w3, #24
	bl	_mach_msg
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_validate_mach_message
	add	x1, sp, #8
	cbnz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_handle_dead_notify
	cbnz	w0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x22]
	add	x0, sp, #32
	add	x1, sp, #8
	bl	_encode_reply
Lloh23:
	adrp	x8, _MACH_SEND_MSG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MACH_SEND_MSG@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MACH_SEND_INTERRUPT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MACH_SEND_INTERRUPT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [sp, #32]
	ldr	w4, [x23]
	ldr	w5, [x28]
	add	x0, sp, #32
	mov	w3, #0
	mov	x6, x4
	bl	_mach_msg
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_mach_task_self
	ldr	x1, [sp, #40]
	bl	_mach_port_deallocate
Lloh29:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	b	LBB0_7
LBB0_15:
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_16:
	add	x2, sp, #60
	mov	x0, x19
	bl	_handle_exception_message
	mov	x20, x0
	ldr	w2, [sp, #60]
	add	x0, sp, #32
	add	x1, sp, #8
	bl	_encode_reply
Lloh36:
	adrp	x8, _MACH_SEND_MSG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MACH_SEND_MSG@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _MACH_SEND_INTERRUPT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MACH_SEND_INTERRUPT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [sp, #32]
	ldr	w4, [x23]
	add	x0, sp, #32
	mov	w3, #0
	mov	w5, #0
	mov	x6, x4
	bl	_mach_msg
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_4
; %bb.17:
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.18:
	bl	_mach_task_self
	ldr	x1, [sp, #40]
	bl	_mach_port_deallocate
Lloh42:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.19:
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_20:
	bl	_eprintf
	b	LBB0_4
LBB0_21:
Lloh47:
	adrp	x8, _R_DEBUG_REASON_DEAD@GOTPAGE
Lloh48:
	ldr	x8, [x8, _R_DEBUG_REASON_DEAD@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ; @R_DEBUG_REASON_UNKNOWN
	.comm	_ex,4,2                         ; @ex
	.comm	_MACH_RCV_MSG,4,2               ; @MACH_RCV_MSG
	.comm	_MACH_RCV_INTERRUPT,4,2         ; @MACH_RCV_INTERRUPT
	.comm	_MACH_MSG_TIMEOUT_NONE,4,2      ; @MACH_MSG_TIMEOUT_NONE
	.comm	_MACH_PORT_NULL,4,2             ; @MACH_PORT_NULL
	.comm	_MACH_RCV_INTERRUPTED,8,3       ; @MACH_RCV_INTERRUPTED
	.comm	_R_DEBUG_REASON_MACH_RCV_INTERRUPTED,4,2 ; @R_DEBUG_REASON_MACH_RCV_INTERRUPTED
	.comm	_MACH_MSG_SUCCESS,8,3           ; @MACH_MSG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"message didn't succeeded\n"

	.comm	_R_DEBUG_REASON_DEAD,4,2        ; @R_DEBUG_REASON_DEAD
	.comm	_KERN_FAILURE,4,2               ; @KERN_FAILURE
	.comm	_MACH_SEND_MSG,4,2              ; @MACH_SEND_MSG
	.comm	_MACH_SEND_INTERRUPT,4,2        ; @MACH_SEND_INTERRUPT
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"failed to deallocate reply port\n"

l_.str.2:                               ; @.str.2
	.asciz	"PC"

	.no_dead_strip	___xnu_wait
.subsections_via_symbols
