	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomoyo_write_file_policy       ## -- Begin function tomoyo_write_file_policy
	.p2align	4, 0x90
_tomoyo_write_file_policy:              ## @tomoyo_write_file_policy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r13, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	-60(%rbp), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_tomoyo_update_file_acl
	jmp	LBB0_16
LBB0_3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	addq	$6, %r13
	movq	_TOMOYO_MAX_SINGLE_PATH_OPERATION@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	_tomoyo_sp_keyword@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_6
LBB0_9:
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_strchr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	movq	_TOMOYO_MAX_DOUBLE_PATH_OPERATION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.11:
	movq	%rax, %r15
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	movq	_tomoyo_dp_keyword@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_12
	jmp	LBB0_15
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_tomoyo_update_single_path_acl
	jmp	LBB0_16
LBB0_13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_tomoyo_update_double_path_acl
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"allow_"

	.comm	_TOMOYO_MAX_SINGLE_PATH_OPERATION,8,3 ## @TOMOYO_MAX_SINGLE_PATH_OPERATION
	.comm	_tomoyo_sp_keyword,8,3          ## @tomoyo_sp_keyword
	.comm	_TOMOYO_MAX_DOUBLE_PATH_OPERATION,8,3 ## @TOMOYO_MAX_DOUBLE_PATH_OPERATION
	.comm	_tomoyo_dp_keyword,8,3          ## @tomoyo_dp_keyword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomoyo_write_file_policy       ; -- Begin function tomoyo_write_file_policy
	.p2align	2
_tomoyo_write_file_policy:              ; @tomoyo_write_file_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	strb	wzr, [x21], #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tomoyo_update_file_acl
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #6
	bl	_strncmp
	cbz	x0, LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	add	x22, x22, #6
Lloh7:
	adrp	x24, _TOMOYO_MAX_SINGLE_PATH_OPERATION@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TOMOYO_MAX_SINGLE_PATH_OPERATION@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x23, #0
Lloh9:
	adrp	x25, _tomoyo_sp_keyword@GOTPAGE
Lloh10:
	ldr	x25, [x25, _tomoyo_sp_keyword@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	cmp	x23, x8
	b.lo	LBB0_8
LBB0_10:
	mov	x0, x21
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.11:
	mov	x23, x0
	strb	wzr, [x23], #1
Lloh11:
	adrp	x25, _TOMOYO_MAX_DOUBLE_PATH_OPERATION@GOTPAGE
Lloh12:
	ldr	x25, [x25, _TOMOYO_MAX_DOUBLE_PATH_OPERATION@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_4
; %bb.12:
	mov	x24, #0
Lloh13:
	adrp	x26, _tomoyo_dp_keyword@GOTPAGE
Lloh14:
	ldr	x26, [x26, _tomoyo_dp_keyword@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldr	x8, [x25]
	cmp	x24, x8
	b.lo	LBB0_13
	b	LBB0_4
LBB0_15:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tomoyo_update_single_path_acl
	b	LBB0_5
LBB0_16:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_tomoyo_update_double_path_acl
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"allow_"

	.comm	_TOMOYO_MAX_SINGLE_PATH_OPERATION,8,3 ; @TOMOYO_MAX_SINGLE_PATH_OPERATION
	.comm	_tomoyo_sp_keyword,8,3          ; @tomoyo_sp_keyword
	.comm	_TOMOYO_MAX_DOUBLE_PATH_OPERATION,8,3 ; @TOMOYO_MAX_DOUBLE_PATH_OPERATION
	.comm	_tomoyo_dp_keyword,8,3          ; @tomoyo_dp_keyword
.subsections_via_symbols
