	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_auditpipe
_check_auditpipe:                       ## @check_auditpipe
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_clock_gettime
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	addq	$10, -64(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -72(%rbp)
	leaq	-96(%rbp), %r12
	leaq	-80(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_clock_gettime
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	movq	-64(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_ppoll
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	movq	_POLLIN@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_records
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_atf_tc_fail
	jmp	LBB0_1
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_POLLIN,4,2                     ## @POLLIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auditpipe returned an unknown event %#x"

L_.str.1:                               ## @.str.1
	.asciz	"%s not found in auditpipe within the time limit"

L_.str.2:                               ## @.str.2
	.asciz	"Poll: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"Poll returned too many file descriptors"

	.no_dead_strip	_check_auditpipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_auditpipe
_check_auditpipe:                       ; @check_auditpipe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _CLOCK_MONOTONIC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x1, sp, #32
	bl	_clock_gettime
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
	ldr	x8, [sp, #32]
	add	x8, x8, #10
	str	x8, [sp, #32]
	ldr	w8, [sp, #40]
	str	w8, [sp, #24]
Lloh2:
	adrp	x27, _errno@GOTPAGE
Lloh3:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh8:
	adrp	x28, _POLLIN@GOTPAGE
Lloh9:
	ldr	x28, [x28, _POLLIN@GOTPAGEOFF]
Lloh10:
	adrp	x24, l_.str@PAGE
Lloh11:
	add	x24, x24, l_.str@PAGEOFF
Lloh12:
	adrp	x25, l_.str.3@PAGE
Lloh13:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x20, [sp]
	mov	x0, x23
	bl	_atf_tc_fail
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	add	x1, sp, #48
	bl	_clock_gettime
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
	ldr	x8, [sp, #32]
	ldr	x9, [sp, #48]
	sub	x8, x8, x9
	str	x8, [sp, #16]
	add	x2, sp, #16
	mov	x0, x21
	mov	w1, #1
	mov	x3, #0
	bl	_ppoll
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_get_records
	cbz	w0, LBB0_2
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x22
	bl	_atf_tc_fail
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_atf_tc_fail
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
	mov	x0, x24
	bl	_atf_tc_fail
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_POLLIN,4,2                     ; @POLLIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auditpipe returned an unknown event %#x"

l_.str.1:                               ; @.str.1
	.asciz	"%s not found in auditpipe within the time limit"

l_.str.2:                               ; @.str.2
	.asciz	"Poll: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"Poll returned too many file descriptors"

	.no_dead_strip	_check_auditpipe
.subsections_via_symbols
