	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function testbody
_testbody:                              ## @testbody
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WDOG_NAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_SIGUSR1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_sigcount@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.12:
	leaq	-80(%rbp), %rdi
	callq	_wait
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	movq	_tcount@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ATF_REQUIRE_EQ
	movl	-80(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_3:
	xorl	%eax, %eax
	callq	_rump_init
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_rump_sys_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movl	$1, -80(%rbp)
	movq	%r13, -72(%rbp)
	movq	_WDOGIOC_GWDOGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_rump_sys_ioctl
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.16:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	__exit
LBB0_17:
	callq	___stack_chk_fail
LBB0_8:
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	-72(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_WDOG_MODE_ETICKLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$1, -96(%rbp)
	movq	_WDOGIOC_SMODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rdx
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_rump_sys_ioctl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_10:
	movl	$400000, %edi                   ## imm = 0x61A80
	callq	_usleep
	cmpl	$1, %r15d
	jne	LBB0_14
## %bb.11:
	movq	_WDOGIOC_TICKLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_rump_sys_ioctl
	jmp	LBB0_15
LBB0_14:
	movq	_WDOG_MODE_DISARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rdx
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_rump_sys_ioctl
LBB0_15:
	xorl	%eax, %eax
	callq	_getppid
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_kill
	movl	$2, %edi
	callq	_sleep
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_getppid
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_kill
	movl	$2, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_WDOG_NAMESIZE,4,2              ## @WDOG_NAMESIZE
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_sigcount,4,2                   ## @sigcount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

	.comm	_tcount,4,2                     ## @tcount
L_.str.1:                               ## @.str.1
	.asciz	"/dev/watchdog"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"open watchdog"

	.comm	_WDOGIOC_GWDOGS,4,2             ## @WDOGIOC_GWDOGS
L_.str.3:                               ## @.str.3
	.asciz	"can't fetch watchdog names"

	.comm	_WDOG_MODE_ETICKLE,4,2          ## @WDOG_MODE_ETICKLE
	.comm	_WDOGIOC_SMODE,4,2              ## @WDOGIOC_SMODE
L_.str.4:                               ## @.str.4
	.asciz	"failed to set tickle"

	.comm	_WDOGIOC_TICKLE,4,2             ## @WDOGIOC_TICKLE
	.comm	_WDOG_MODE_DISARMED,4,2         ## @WDOG_MODE_DISARMED
L_str:                                  ## @str
	.asciz	"no watchdog registered!"

L_str.7:                                ## @str.7
	.asciz	"staying alive"

	.no_dead_strip	_testbody
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function testbody
_testbody:                              ; @testbody
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _WDOG_NAMESIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WDOG_NAMESIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x21, _SIGUSR1@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SIGUSR1@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _sigcount@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sigcount@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_signal
	bl	_fork
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	sub	x0, x29, #72
	bl	_wait
	mov	x1, x0
	mov	x0, x20
	bl	_ATF_REQUIRE_EQ
Lloh13:
	adrp	x8, _tcount@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tcount@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ATF_REQUIRE_EQ
	ldur	w0, [x29, #-72]
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.3:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_5:
	bl	_rump_init
Lloh21:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rump_sys_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	mov	w8, #1
	stur	w8, [x29, #-72]
	stur	x22, [x29, #-64]
Lloh28:
	adrp	x8, _WDOGIOC_GWDOGS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WDOGIOC_GWDOGS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	sub	x8, x29, #72
	str	x8, [sp, #-16]!
	mov	x0, x20
	bl	_rump_sys_ioctl
	add	sp, sp, #16
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	ldur	w8, [x29, #-72]
	cbnz	w8, LBB0_12
; %bb.10:
Lloh33:
	adrp	x0, l_str@PAGE
Lloh34:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	__exit
LBB0_11:
	bl	___stack_chk_fail
LBB0_12:
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldur	x1, [x29, #-64]
	mov	w2, #4
	bl	_strlcpy
Lloh35:
	adrp	x8, _WDOG_MODE_ETICKLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WDOG_MODE_ETICKLE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x29, #-88]
Lloh38:
	adrp	x22, _WDOGIOC_SMODE@GOTPAGE
Lloh39:
	ldr	x22, [x22, _WDOGIOC_SMODE@GOTPAGEOFF]
	ldr	w1, [x22]
	sub	x8, x29, #104
	str	x8, [sp, #-16]!
	mov	x0, x20
	bl	_rump_sys_ioctl
	add	sp, sp, #16
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_14:
	mov	w0, #6784
	movk	w0, #6, lsl #16
	bl	_usleep
	cmp	w19, #1
	b.ne	LBB0_16
; %bb.15:
Lloh42:
	adrp	x8, _WDOGIOC_TICKLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WDOGIOC_TICKLE@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rump_sys_ioctl
	b	LBB0_17
LBB0_16:
Lloh45:
	adrp	x8, _WDOG_MODE_DISARMED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WDOG_MODE_DISARMED@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	stur	w8, [x29, #-84]
	ldr	w1, [x22]
	sub	x8, x29, #104
	str	x8, [sp, #-16]!
	mov	x0, x20
	bl	_rump_sys_ioctl
	add	sp, sp, #16
LBB0_17:
	bl	_getppid
	ldr	w1, [x21]
	bl	_kill
	mov	w0, #2
	bl	_sleep
Lloh48:
	adrp	x0, l_str.7@PAGE
Lloh49:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	bl	_getppid
	ldr	w1, [x21]
	bl	_kill
	mov	w0, #2
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_WDOG_NAMESIZE,4,2              ; @WDOG_NAMESIZE
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_sigcount,4,2                   ; @sigcount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

	.comm	_tcount,4,2                     ; @tcount
l_.str.1:                               ; @.str.1
	.asciz	"/dev/watchdog"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"open watchdog"

	.comm	_WDOGIOC_GWDOGS,4,2             ; @WDOGIOC_GWDOGS
l_.str.3:                               ; @.str.3
	.asciz	"can't fetch watchdog names"

	.comm	_WDOG_MODE_ETICKLE,4,2          ; @WDOG_MODE_ETICKLE
	.comm	_WDOGIOC_SMODE,4,2              ; @WDOGIOC_SMODE
l_.str.4:                               ; @.str.4
	.asciz	"failed to set tickle"

	.comm	_WDOGIOC_TICKLE,4,2             ; @WDOGIOC_TICKLE
	.comm	_WDOG_MODE_DISARMED,4,2         ; @WDOG_MODE_DISARMED
l_str:                                  ; @str
	.asciz	"no watchdog registered!"

l_str.7:                                ; @str.7
	.asciz	"staying alive"

	.no_dead_strip	_testbody
.subsections_via_symbols
