	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tomoyo_dentry_open
_tomoyo_dentry_open:                    ## @tomoyo_dentry_open
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	leal	1(%rax), %ecx
	movq	_O_ACCMODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	cmovel	%eax, %ecx
	movq	_O_APPEND@GOTPCREL(%rip), %rdx
	movq	_O_TRUNC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	andl	%eax, %ebx
	orl	%ecx, %ebx
	xorl	%eax, %eax
	callq	_tomoyo_domain
	addq	$4, %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tomoyo_check_open_permission   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_tomoyo_dentry_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tomoyo_dentry_open
_tomoyo_dentry_open:                    ; @tomoyo_dentry_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w8, [x19], #4
	add	w9, w8, #1
Lloh3:
	adrp	x10, _O_ACCMODE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _O_ACCMODE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w10
	cinc	w9, w8, ne
Lloh6:
	adrp	x10, _O_APPEND@GOTPAGE
Lloh7:
	ldr	x10, [x10, _O_APPEND@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	and	w8, w10, w8
	orr	w20, w8, w9
	bl	_tomoyo_domain
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tomoyo_check_open_permission
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_tomoyo_dentry_open
.subsections_via_symbols
