	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_preselect_mode
_set_preselect_mode:                    ## @set_preselect_mode
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	_AUDITPIPE_PRESELECT_MODE_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_AUDITPIPE_SET_PRESELECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_2:
	movq	_AUDITPIPE_SET_PRESELECT_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_4:
	movq	_AUDITPIPE_SET_PRESELECT_NAFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_6:
	movq	_AUDITPIPE_GET_QLIMIT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_8:
	movq	_AUDITPIPE_SET_QLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_10:
	movq	_AUDITPIPE_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDITPIPE_PRESELECT_MODE_LOCAL,4,2 ## @AUDITPIPE_PRESELECT_MODE_LOCAL
	.comm	_AUDITPIPE_SET_PRESELECT_MODE,4,2 ## @AUDITPIPE_SET_PRESELECT_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Preselection mode: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AUDITPIPE_SET_PRESELECT_FLAGS,4,2 ## @AUDITPIPE_SET_PRESELECT_FLAGS
L_.str.1:                               ## @.str.1
	.asciz	"Preselection flag: %s"

	.comm	_AUDITPIPE_SET_PRESELECT_NAFLAGS,4,2 ## @AUDITPIPE_SET_PRESELECT_NAFLAGS
L_.str.2:                               ## @.str.2
	.asciz	"Preselection naflag: %s"

	.comm	_AUDITPIPE_GET_QLIMIT_MAX,4,2   ## @AUDITPIPE_GET_QLIMIT_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Query max-limit: %s"

	.comm	_AUDITPIPE_SET_QLIMIT,4,2       ## @AUDITPIPE_SET_QLIMIT
L_.str.4:                               ## @.str.4
	.asciz	"Set max-qlimit: %s"

	.comm	_AUDITPIPE_FLUSH,4,2            ## @AUDITPIPE_FLUSH
L_.str.5:                               ## @.str.5
	.asciz	"Auditpipe flush: %s"

	.no_dead_strip	_set_preselect_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_preselect_mode
_set_preselect_mode:                    ; @set_preselect_mode
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AUDITPIPE_PRESELECT_MODE_LOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDITPIPE_PRESELECT_MODE_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _AUDITPIPE_SET_PRESELECT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUDITPIPE_SET_PRESELECT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x8, sp, #8
	str	x8, [sp]
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_2:
Lloh11:
	adrp	x8, _AUDITPIPE_SET_PRESELECT_FLAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUDITPIPE_SET_PRESELECT_FLAGS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	str	x20, [sp]
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail
LBB0_4:
Lloh19:
	adrp	x8, _AUDITPIPE_SET_PRESELECT_NAFLAGS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUDITPIPE_SET_PRESELECT_NAFLAGS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	x20, [sp]
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
LBB0_6:
Lloh27:
	adrp	x8, _AUDITPIPE_GET_QLIMIT_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AUDITPIPE_GET_QLIMIT_MAX@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x20, sp, #12
	str	x20, [sp]
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail
LBB0_8:
Lloh35:
	adrp	x8, _AUDITPIPE_SET_QLIMIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AUDITPIPE_SET_QLIMIT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	str	x20, [sp]
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail
LBB0_10:
Lloh43:
	adrp	x8, _AUDITPIPE_FLUSH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AUDITPIPE_FLUSH@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh49:
	adrp	x0, l_.str.5@PAGE
Lloh50:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDITPIPE_PRESELECT_MODE_LOCAL,4,2 ; @AUDITPIPE_PRESELECT_MODE_LOCAL
	.comm	_AUDITPIPE_SET_PRESELECT_MODE,4,2 ; @AUDITPIPE_SET_PRESELECT_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Preselection mode: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AUDITPIPE_SET_PRESELECT_FLAGS,4,2 ; @AUDITPIPE_SET_PRESELECT_FLAGS
l_.str.1:                               ; @.str.1
	.asciz	"Preselection flag: %s"

	.comm	_AUDITPIPE_SET_PRESELECT_NAFLAGS,4,2 ; @AUDITPIPE_SET_PRESELECT_NAFLAGS
l_.str.2:                               ; @.str.2
	.asciz	"Preselection naflag: %s"

	.comm	_AUDITPIPE_GET_QLIMIT_MAX,4,2   ; @AUDITPIPE_GET_QLIMIT_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Query max-limit: %s"

	.comm	_AUDITPIPE_SET_QLIMIT,4,2       ; @AUDITPIPE_SET_QLIMIT
l_.str.4:                               ; @.str.4
	.asciz	"Set max-qlimit: %s"

	.comm	_AUDITPIPE_FLUSH,4,2            ; @AUDITPIPE_FLUSH
l_.str.5:                               ; @.str.5
	.asciz	"Auditpipe flush: %s"

	.no_dead_strip	_set_preselect_mode
.subsections_via_symbols
