	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	xorl	%eax, %eax
	callq	_getpid
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_WEXITED@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	leaq	L_.str(%rip), %r15
	movq	_stdout@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_badioctl
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_waitpid
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_WTERMSIG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_printf
	movl	(%r14), %edi
	callq	_fflush
	jmp	LBB0_1
LBB0_6:
	callq	_WEXITSTATUS
	movl	%eax, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_WEXITED,4,2                    ## @WEXITED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"badioctl: child died on signal %d; respawning.\n"

	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	bl	_getpid
	mov	x19, x0
Lloh0:
	adrp	x22, _WEXITED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WEXITED@GOTPAGEOFF]
Lloh2:
	adrp	x23, _stdout@GOTPAGE
Lloh3:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	bl	_fork
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_badioctl
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x21
	bl	_waitpid
	cmp	x0, x21
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbnz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_WTERMSIG
	mov	x1, x0
	mov	x0, x20
	bl	_printf
	ldr	w0, [x23]
	bl	_fflush
	b	LBB0_1
LBB0_6:
	bl	_WEXITSTATUS
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WEXITED,4,2                    ; @WEXITED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"badioctl: child died on signal %d; respawning.\n"

	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
