	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_success_from_status
_update_success_from_status:            ## @update_success_from_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_atf_process_status_exited
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_atf_process_status_exitstatus
	cltq
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	sete	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movzbl	%bl, %r12d
	movq	%r15, %rdi
	callq	_atf_process_status_exited
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_atf_process_status_exitstatus
	cltq
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	callq	_INV
	jmp	LBB0_11
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_atf_process_status_signaled
	movq	%rax, %r14
	xorb	$1, %bl
	movzbl	%bl, %edi
	callq	_INV
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_atf_process_status_termsig
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_atf_process_status_coredump
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_10
LBB0_6:
	xorb	$1, %bl
	movzbl	%bl, %edi
	callq	_INV
	movq	_stderr@GOTPCREL(%rip), %rax
	movq	%r13, %rbx
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_atf_process_status_exitstatus
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	movl	%r12d, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_SUCCESS,8,3               ## @EXIT_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failed with exit code %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s failed due to signal %d%s\n"

L_.str.2:                               ## @.str.2
	.asciz	" (core dumped)"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"%s failed due to unknown reason\n"

	.no_dead_strip	_update_success_from_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_success_from_status
_update_success_from_status:            ; @update_success_from_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_atf_process_status_exited
Lloh0:
	adrp	x23, _EXIT_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EXIT_SUCCESS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_atf_process_status_exitstatus
	ldr	x8, [x23]
	cmp	x8, w0, sxtw
	cset	w21, eq
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	x0, x22
	bl	_atf_process_status_exited
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_atf_process_status_exitstatus
	ldr	x8, [x23]
	cmp	x8, w0, sxtw
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_INV
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_atf_process_status_signaled
	mov	x24, x0
	eor	w0, w21, #0x1
	bl	_INV
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	cbz	x24, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_atf_process_status_termsig
	mov	x24, x0
	mov	x0, x22
	bl	_atf_process_status_coredump
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	stp	x24, x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	eor	w0, w21, #0x1
	bl	_INV
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_atf_process_status_exitstatus
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x23
	mov	x2, x20
	bl	_fprintf
LBB0_11:
	str	w21, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_SUCCESS,8,3               ; @EXIT_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failed with exit code %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s failed due to signal %d%s\n"

l_.str.2:                               ; @.str.2
	.asciz	" (core dumped)"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"%s failed due to unknown reason\n"

	.no_dead_strip	_update_success_from_status
.subsections_via_symbols
