	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_flags_and_error_to_openevent ## -- Begin function audit_flags_and_error_to_openevent
	.p2align	4, 0x90
_audit_flags_and_error_to_openevent:    ## @audit_flags_and_error_to_openevent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	%edi, %r14d
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_aue_open@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	movq	_AUE_OPEN@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	andl	%r14d, %r13d
	movl	$4, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r13d, -4(%rdi,%r14)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_nitems
	cltq
	addq	$8, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	addq	%r14, %rdi
	movq	%rdi, %r15
LBB0_5:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_aue_open,8,3                   ## @aue_open
	.comm	_AUE_OPEN,4,2                   ## @AUE_OPEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_flags_and_error_to_openevent ; -- Begin function audit_flags_and_error_to_openevent
	.p2align	2
_audit_flags_and_error_to_openevent:    ; @audit_flags_and_error_to_openevent
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
Lloh12:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
Lloh15:
	adrp	x20, _aue_open@GOTPAGE
Lloh16:
	ldr	x20, [x20, _aue_open@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	orr	w8, w24, w23
	orr	w8, w8, w25
	orr	w8, w8, w26
	orr	w8, w8, w27
	and	w23, w8, w19
Lloh17:
	adrp	x19, _AUE_OPEN@GOTPAGE
Lloh18:
	ldr	x19, [x19, _AUE_OPEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x21]
	cmp	w8, w23
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	bl	_nitems
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh19:
	adrp	x19, _AUE_OPEN@GOTPAGE
Lloh20:
	ldr	x19, [x19, _AUE_OPEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x8, x0, x21
	add	x19, x8, #4
LBB0_6:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_aue_open,8,3                   ; @aue_open
	.comm	_AUE_OPEN,4,2                   ; @AUE_OPEN
.subsections_via_symbols
