	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transaction_check_child_status ## -- Begin function transaction_check_child_status
	.p2align	4, 0x90
_transaction_check_child_status:        ## @transaction_check_child_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WNOHANG@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %rbx
	leaq	L_.str.1(%rip), %r12
	movq	_child_running_list@GOTPCREL(%rip), %r15
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%r14), %edx
	movl	$-1, %edi
	movq	%rbx, %rsi
	callq	_waitpid
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_results_client_pid@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_WEXITSTATUS
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
	movq	8(%r15), %r12
	cmpq	%r15, %r12
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r13d, (%r12)
	je	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%r12), %r12
	cmpq	%r15, %r12
	jne	LBB0_11
	jmp	LBB0_13
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_WIFSIGNALED
	movl	-44(%rbp), %edx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %edi
	callq	_WTERMSIG
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edx
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_transaction_finish_execution
	incl	-48(%rbp)                       ## 4-byte Folded Spill
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r12
	leaq	-44(%rbp), %rbx
	jmp	LBB0_1
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	leaq	L_.str.6(%rip), %rsi
	movl	$3, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waitpid returns %d. %m\n"

L_.str.1:                               ## @.str.1
	.asciz	"waitpid returns %d.\n"

	.comm	_results_client_pid,4,2         ## @results_client_pid
L_.str.2:                               ## @.str.2
	.asciz	"copyexec-client terminated with exit code %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"copyexec-client was killed by signal %d.\n"

L_.str.4:                               ## @.str.4
	.asciz	"copyexec-client terminated (waitpid status: 0x%x)\n"

	.comm	_child_running_list,16,3        ## @child_running_list
L_.str.5:                               ## @.str.5
	.asciz	"transaction_check_child_status: call transaction_finish_execution\n"

L_.str.6:                               ## @.str.6
	.asciz	"transaction_check_child_status: %d transaction(s) finished.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transaction_check_child_status ; -- Begin function transaction_check_child_status
	.p2align	2
_transaction_check_child_status:        ; @transaction_check_child_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	w19, #0
Lloh0:
	adrp	x27, _WNOHANG@GOTPAGE
Lloh1:
	ldr	x27, [x27, _WNOHANG@GOTPAGEOFF]
Lloh2:
	adrp	x28, _errno@GOTPAGE
Lloh3:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x21, _EINTR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh8:
	adrp	x22, _results_client_pid@GOTPAGE
Lloh9:
	ldr	x22, [x22, _results_client_pid@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh12:
	adrp	x24, _child_running_list@GOTPAGE
Lloh13:
	ldr	x24, [x24, _child_running_list@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w2, [x27]
	add	x1, sp, #12
	mov	w0, #-1
	bl	_waitpid
	mov	x25, x0
	tbnz	w0, #31, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x25, [sp]
	mov	w0, #3
	mov	x1, x20
	bl	_vkprintf
	ldr	w8, [x22]
	cmp	w25, w8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_WEXITSTATUS
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #1
	mov	x1, x23
	bl	_vkprintf
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x24, #8]
	cmp	x26, x24
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x26]
	cmp	w8, w25
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x26, [x26, #8]
	cmp	x26, x24
	b.ne	LBB0_8
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_WIFSIGNALED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WTERMSIG
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #1
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_vkprintf
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #4
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_vkprintf
	mov	x0, x26
	mov	w1, #1
	bl	_transaction_finish_execution
	add	w19, w19, #1
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp]
	mov	w0, #1
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_vkprintf
	b	LBB0_2
LBB0_14:
	str	xzr, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	b	LBB0_17
LBB0_15:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	cmp	w19, #1
	b.lt	LBB0_18
; %bb.16:
	str	x19, [sp]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #3
LBB0_17:
	bl	_vkprintf
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waitpid returns %d. %m\n"

l_.str.1:                               ; @.str.1
	.asciz	"waitpid returns %d.\n"

	.comm	_results_client_pid,4,2         ; @results_client_pid
l_.str.2:                               ; @.str.2
	.asciz	"copyexec-client terminated with exit code %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"copyexec-client was killed by signal %d.\n"

l_.str.4:                               ; @.str.4
	.asciz	"copyexec-client terminated (waitpid status: 0x%x)\n"

	.comm	_child_running_list,16,3        ; @child_running_list
l_.str.5:                               ; @.str.5
	.asciz	"transaction_check_child_status: call transaction_finish_execution\n"

l_.str.6:                               ; @.str.6
	.asciz	"transaction_check_child_status: %d transaction(s) finished.\n"

.subsections_via_symbols
