	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_waitstatus               ## -- Begin function store_waitstatus
	.p2align	4, 0x90
_store_waitstatus:                      ## @store_waitstatus
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TARGET_WAITKIND_EXITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%ebx, %edi
	callq	_WEXITSTATUS
	movl	%eax, 8(%r14)
	jmp	LBB0_6
LBB0_2:
	movl	%ebx, %edi
	callq	_WIFSTOPPED
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_TARGET_WAITKIND_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%ebx, %edi
	callq	_WSTOPSIG
	jmp	LBB0_5
LBB0_3:
	movq	_TARGET_WAITKIND_SIGNALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%ebx, %edi
	callq	_WTERMSIG
LBB0_5:
	movl	%eax, %edi
	callq	_target_signal_from_host
	movq	%rax, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_WAITKIND_EXITED,4,2     ## @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_SIGNALLED,4,2  ## @TARGET_WAITKIND_SIGNALLED
	.comm	_TARGET_WAITKIND_STOPPED,4,2    ## @TARGET_WAITKIND_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_waitstatus               ; -- Begin function store_waitstatus
	.p2align	2
_store_waitstatus:                      ; @store_waitstatus
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_WIFEXITED
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TARGET_WAITKIND_EXITED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_WAITKIND_EXITED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_WEXITSTATUS
	str	w0, [x19, #8]
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_WIFSTOPPED
	cbz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _TARGET_WAITKIND_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_WAITKIND_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_WSTOPSIG
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _TARGET_WAITKIND_SIGNALLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TARGET_WAITKIND_SIGNALLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_WTERMSIG
LBB0_5:
	bl	_target_signal_from_host
	str	x0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_WAITKIND_EXITED,4,2     ; @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_SIGNALLED,4,2  ; @TARGET_WAITKIND_SIGNALLED
	.comm	_TARGET_WAITKIND_STOPPED,4,2    ; @TARGET_WAITKIND_STOPPED
.subsections_via_symbols
