	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup                          ## -- Begin function setup
	.p2align	4, 0x90
_setup:                                 ## @setup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_get_audit_mask
	movl	%eax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_get_audit_mask
	movl	%eax, -20(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fdopen
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	__IONBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	movl	(%rbx), %edi
	leaq	-20(%rbp), %rsi
	callq	_set_preselect_mode
	leaq	L_.str.3(%rip), %rdi
	callq	_system
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_utils_file_exists
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_check_audit_startup
LBB0_2:
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_set_preselect_mode
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/auditpipe"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"r"

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	__IONBF,4,2                     ## @_IONBF
L_.str.3:                               ## @.str.3
	.asciz	"service auditd onestatus || \t{ service auditd onestart && touch started_auditd ; }"

L_.str.4:                               ## @.str.4
	.asciz	"started_auditd"

L_.str.5:                               ## @.str.5
	.asciz	"audit startup"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup                          ; -- Begin function setup
	.p2align	2
_setup:                                 ; @setup
	.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	x19, x0
	mov	x0, x1
	bl	_get_audit_mask
	str	w0, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_get_audit_mask
	str	w0, [sp, #8]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	str	w0, [x19]
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fdopen
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
Lloh9:
	adrp	x8, _POLLIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, __IONBF@GOTPAGE
Lloh13:
	ldr	x8, [x8, __IONBF@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_set_preselect_mode
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_system
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_utils_file_exists
	cbz	x0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_check_audit_startup
LBB0_2:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_set_preselect_mode
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/auditpipe"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"r"

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	__IONBF,4,2                     ; @_IONBF
l_.str.3:                               ; @.str.3
	.asciz	"service auditd onestatus || \t{ service auditd onestart && touch started_auditd ; }"

l_.str.4:                               ; @.str.4
	.asciz	"started_auditd"

l_.str.5:                               ; @.str.5
	.asciz	"audit startup"

.subsections_via_symbols
