	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tomoyo_open_control
_tomoyo_open_control:                   ## @tomoyo_open_control
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$48, %edi
	callq	_tomoyo_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$40, %rdi
	callq	_mutex_init
	leal	-128(%r15), %eax
	cmpl	$8, %eax
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_tomoyo_read_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	$128, (%rbx)
	jmp	LBB0_14
LBB0_6:
	movq	_tomoyo_read_self_domain@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_tomoyo_write_profile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_profile@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_tomoyo_write_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_pid@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_tomoyo_write_memory_quota@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_memory_counter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	$512, (%rbx)                    ## imm = 0x200
	jmp	LBB0_14
LBB0_12:
	movq	_tomoyo_write_manager_policy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_manager_policy@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_tomoyo_write_exception_policy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_exception_policy@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_tomoyo_write_domain_profile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_domain_profile@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_tomoyo_write_domain_policy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_tomoyo_read_domain_policy@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_14:
	movl	(%r14), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.16:
	movl	(%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_18
## %bb.17:
	movl	$8192, (%rbx)                   ## imm = 0x2000
	movl	$8192, %edi                     ## imm = 0x2000
LBB0_18:
	callq	_tomoyo_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_28
## %bb.19:
	movl	(%r14), %eax
	jmp	LBB0_20
LBB0_15:
	movq	$0, 32(%rbx)
LBB0_20:
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.25:
	cmpq	$0, 24(%rbx)
	je	LBB0_22
## %bb.26:
	movl	$8192, 4(%rbx)                  ## imm = 0x2000
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_tomoyo_alloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_22
## %bb.27:
	movq	8(%rbx), %rdi
	callq	_tomoyo_free
LBB0_28:
	movq	%rbx, %rdi
	callq	_tomoyo_free
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_21:
	movq	$0, 24(%rbx)
LBB0_22:
	movq	%rbx, 8(%r14)
	xorl	%ebx, %ebx
	cmpl	$129, %r15d
	jne	LBB0_24
## %bb.23:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tomoyo_read_control
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tomoyo_write_domain_policy,8,3 ## @tomoyo_write_domain_policy
	.comm	_tomoyo_read_domain_policy,8,3  ## @tomoyo_read_domain_policy
	.comm	_tomoyo_write_exception_policy,8,3 ## @tomoyo_write_exception_policy
	.comm	_tomoyo_read_exception_policy,8,3 ## @tomoyo_read_exception_policy
	.comm	_tomoyo_read_self_domain,8,3    ## @tomoyo_read_self_domain
	.comm	_tomoyo_write_domain_profile,8,3 ## @tomoyo_write_domain_profile
	.comm	_tomoyo_read_domain_profile,8,3 ## @tomoyo_read_domain_profile
	.comm	_tomoyo_write_pid,8,3           ## @tomoyo_write_pid
	.comm	_tomoyo_read_pid,8,3            ## @tomoyo_read_pid
	.comm	_tomoyo_read_version,8,3        ## @tomoyo_read_version
	.comm	_tomoyo_write_memory_quota,8,3  ## @tomoyo_write_memory_quota
	.comm	_tomoyo_read_memory_counter,8,3 ## @tomoyo_read_memory_counter
	.comm	_tomoyo_write_profile,8,3       ## @tomoyo_write_profile
	.comm	_tomoyo_read_profile,8,3        ## @tomoyo_read_profile
	.comm	_tomoyo_write_manager_policy,8,3 ## @tomoyo_write_manager_policy
	.comm	_tomoyo_read_manager_policy,8,3 ## @tomoyo_read_manager_policy
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.no_dead_strip	_tomoyo_open_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tomoyo_open_control
_tomoyo_open_control:                   ; @tomoyo_open_control
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	mov	w0, #48
	bl	_tomoyo_alloc
	cbz	x0, LBB0_24
; %bb.1:
	mov	x20, x0
	add	x0, x0, #40
	bl	_mutex_init
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_13
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _tomoyo_read_version@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tomoyo_read_version@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20, #32]
	mov	w8, #128
	str	w8, [x20]
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x8, _tomoyo_read_self_domain@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tomoyo_read_self_domain@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #32]
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x8, _tomoyo_write_profile@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tomoyo_write_profile@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _tomoyo_read_profile@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tomoyo_read_profile@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x8, _tomoyo_write_pid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tomoyo_write_pid@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _tomoyo_read_pid@GOTPAGE
Lloh17:
	ldr	x9, [x9, _tomoyo_read_pid@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh18:
	adrp	x8, _tomoyo_write_memory_quota@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tomoyo_write_memory_quota@GOTPAGEOFF]
Lloh20:
	adrp	x9, _tomoyo_read_memory_counter@GOTPAGE
Lloh21:
	ldr	x9, [x9, _tomoyo_read_memory_counter@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	ldr	x9, [x9]
	stp	x8, x9, [x20, #24]
	mov	w8, #512
	str	w8, [x20]
	b	LBB0_13
LBB0_8:
Lloh24:
	adrp	x8, _tomoyo_write_manager_policy@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tomoyo_write_manager_policy@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _tomoyo_read_manager_policy@GOTPAGE
Lloh28:
	ldr	x9, [x9, _tomoyo_read_manager_policy@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh29:
	adrp	x8, _tomoyo_write_exception_policy@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tomoyo_write_exception_policy@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _tomoyo_read_exception_policy@GOTPAGE
Lloh33:
	ldr	x9, [x9, _tomoyo_read_exception_policy@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh34:
	adrp	x8, _tomoyo_write_domain_profile@GOTPAGE
Lloh35:
	ldr	x8, [x8, _tomoyo_write_domain_profile@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _tomoyo_read_domain_profile@GOTPAGE
Lloh38:
	ldr	x9, [x9, _tomoyo_read_domain_profile@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh39:
	adrp	x8, _tomoyo_write_domain_policy@GOTPAGE
Lloh40:
	ldr	x8, [x8, _tomoyo_write_domain_policy@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _tomoyo_read_domain_policy@GOTPAGE
Lloh43:
	ldr	x9, [x9, _tomoyo_read_domain_policy@GOTPAGEOFF]
LBB0_12:
	ldr	x9, [x9]
	stp	x8, x9, [x20, #24]
LBB0_13:
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.14:
	ldr	w0, [x20]
	cbnz	w0, LBB0_16
; %bb.15:
	mov	w0, #8192
	str	w0, [x20]
LBB0_16:
	bl	_tomoyo_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_23
; %bb.17:
	ldr	w8, [x19]
	b	LBB0_19
LBB0_18:
	str	xzr, [x20, #32]
LBB0_19:
Lloh47:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.20:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_26
; %bb.21:
	mov	w8, #8192
	str	w8, [x20, #4]
	mov	w0, #8192
	bl	_tomoyo_alloc
	str	x0, [x20, #16]
	cbnz	x0, LBB0_26
; %bb.22:
	ldr	x0, [x20, #8]
	bl	_tomoyo_free
LBB0_23:
	mov	x0, x20
	bl	_tomoyo_free
LBB0_24:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_25:
	str	xzr, [x20, #24]
LBB0_26:
	str	x20, [x19, #8]
	cmp	w21, #129
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_tomoyo_read_control
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tomoyo_write_domain_policy,8,3 ; @tomoyo_write_domain_policy
	.comm	_tomoyo_read_domain_policy,8,3  ; @tomoyo_read_domain_policy
	.comm	_tomoyo_write_exception_policy,8,3 ; @tomoyo_write_exception_policy
	.comm	_tomoyo_read_exception_policy,8,3 ; @tomoyo_read_exception_policy
	.comm	_tomoyo_read_self_domain,8,3    ; @tomoyo_read_self_domain
	.comm	_tomoyo_write_domain_profile,8,3 ; @tomoyo_write_domain_profile
	.comm	_tomoyo_read_domain_profile,8,3 ; @tomoyo_read_domain_profile
	.comm	_tomoyo_write_pid,8,3           ; @tomoyo_write_pid
	.comm	_tomoyo_read_pid,8,3            ; @tomoyo_read_pid
	.comm	_tomoyo_read_version,8,3        ; @tomoyo_read_version
	.comm	_tomoyo_write_memory_quota,8,3  ; @tomoyo_write_memory_quota
	.comm	_tomoyo_read_memory_counter,8,3 ; @tomoyo_read_memory_counter
	.comm	_tomoyo_write_profile,8,3       ; @tomoyo_write_profile
	.comm	_tomoyo_read_profile,8,3        ; @tomoyo_read_profile
	.comm	_tomoyo_write_manager_policy,8,3 ; @tomoyo_write_manager_policy
	.comm	_tomoyo_read_manager_policy,8,3 ; @tomoyo_read_manager_policy
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.no_dead_strip	_tomoyo_open_control
.subsections_via_symbols
