	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_going_down                     ## -- Begin function going_down
	.p2align	4, 0x90
_going_down:                            ## @going_down
	.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	%edi, %r14d
	movq	_foreground@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_amd_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Start@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_Done@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_unregister_amq
	cmpq	$0, (%rbx)
	jne	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_dlog
	movl	%r14d, %edi
	callq	_exit
LBB0_4:
	movq	_XLOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_plog
	movl	%r14d, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_foreground,8,3                 ## @foreground
	.comm	_amd_state,8,3                  ## @amd_state
	.comm	_Start,8,3                      ## @Start
	.comm	_Done,8,3                       ## @Done
	.comm	_XLOG_INFO,4,2                  ## @XLOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Finishing with status %d"

L_.str.1:                               ## @.str.1
	.asciz	"background process exiting with status %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_going_down                     ; -- Begin function going_down
	.p2align	2
_going_down:                            ; @going_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _foreground@GOTPAGE
Lloh1:
	ldr	x9, [x9, _foreground@GOTPAGEOFF]
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.1:
Lloh2:
	adrp	x10, _amd_state@GOTPAGE
Lloh3:
	ldr	x10, [x10, _amd_state@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _Start@GOTPAGE
Lloh6:
	ldr	x11, [x11, _Start@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_6
; %bb.2:
Lloh8:
	adrp	x11, _Done@GOTPAGE
Lloh9:
	ldr	x11, [x11, _Done@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x9
	bl	_unregister_amq
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x9, [x19]
	cbnz	x9, LBB0_6
LBB0_5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x1, x8
	bl	_dlog
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_exit
LBB0_6:
Lloh13:
	adrp	x9, _XLOG_INFO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XLOG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x2, x8
	bl	_plog
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_foreground,8,3                 ; @foreground
	.comm	_amd_state,8,3                  ; @amd_state
	.comm	_Start,8,3                      ; @Start
	.comm	_Done,8,3                       ; @Done
	.comm	_XLOG_INFO,4,2                  ; @XLOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Finishing with status %d"

l_.str.1:                               ; @.str.1
	.asciz	"background process exiting with status %d"

.subsections_via_symbols
