	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sel_write_access
_sel_write_access:                      ## @sel_write_access
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SECURITY__COMPUTE_AV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_task_has_security
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	incq	%r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	_security_context_to_sid
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_security_context_to_sid
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	-52(%rbp), %edi
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	-72(%rbp), %rcx
	callq	_security_compute_av_user
	movq	_SIMPLE_TRANSACTION_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %ecx
	movl	-60(%rbp), %r9d
	movl	-64(%rbp), %r10d
	movl	-72(%rbp), %ebx
	movl	-68(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$-1, %r8d
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_scnprintf
	addq	$32, %rsp
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_SECURITY__COMPUTE_AV,4,2       ## @SECURITY__COMPUTE_AV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s %hu"

	.comm	_SIMPLE_TRANSACTION_LIMIT,4,2   ## @SIMPLE_TRANSACTION_LIMIT
L_.str.1:                               ## @.str.1
	.asciz	"%x %x %x %x %u %x"

	.no_dead_strip	_sel_write_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sel_write_access
_sel_write_access:                      ; @sel_write_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SECURITY__COMPUTE_AV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECURITY__COMPUTE_AV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_task_has_security
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	add	x21, x19, #1
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #36
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_strlen
	add	x1, x0, #1
	add	x2, sp, #44
	mov	x0, x19
	bl	_security_context_to_sid
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_strlen
	add	x1, x0, #1
	add	x2, sp, #40
	mov	x0, x21
	bl	_security_context_to_sid
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldp	w1, w0, [sp, #40]
	ldr	w2, [sp, #36]
	add	x3, sp, #16
	bl	_security_compute_av_user
Lloh16:
	adrp	x8, _SIMPLE_TRANSACTION_LIMIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIMPLE_TRANSACTION_LIMIT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldp	w5, w3, [sp, #28]
	ldp	w7, w6, [sp, #20]
	ldr	w8, [sp, #16]
	str	w8, [sp]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w4, #-1
	bl	_scnprintf
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
	neg	w22, w22
LBB0_9:
	mov	x0, x21
	bl	_kfree
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_SECURITY__COMPUTE_AV,4,2       ; @SECURITY__COMPUTE_AV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s %hu"

	.comm	_SIMPLE_TRANSACTION_LIMIT,4,2   ; @SIMPLE_TRANSACTION_LIMIT
l_.str.1:                               ; @.str.1
	.asciz	"%x %x %x %x %u %x"

	.no_dead_strip	_sel_write_access
.subsections_via_symbols
