	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_sysctl_get_sid
_selinux_sysctl_get_sid:                ## @selinux_sysctl_get_sid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___get_free_page
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %r14
	addq	%rcx, %r14
	leal	-1(%rcx), %r13d
	movw	$47, -2(%rax,%rcx)
	testq	%rbx, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r13d
	notl	%r13d
	addl	%r12d, %r13d
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%rax, %r14
	leaq	-1(%r14), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movb	$47, -2(%r14)
	movq	8(%rbx), %rbx
	movq	%r12, %r14
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %r12
LBB0_6:
	cmpl	$4, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jl	LBB0_8
## %bb.7:
	addq	$-5, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_security_genfs_sid
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_4:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_page
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/sys"

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

	.no_dead_strip	_selinux_sysctl_get_sid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_sysctl_get_sid
_selinux_sysctl_get_sid:                ; @selinux_sysctl_get_sid
	.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, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___get_free_page
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x24, x0, x8
	sub	w26, w8, #1
	mov	w27, #47
	sturh	w27, [x24, #-2]
	cbz	x23, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x23]
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
	mvn	w8, w2
	adds	w26, w26, w8
	b.mi	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x28, x24, x2
	sub	x24, x28, #1
	mov	x0, x24
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	sturb	w27, [x28, #-2]
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_2
LBB0_4:
	cmp	w26, #4
	b.lt	LBB0_6
; %bb.5:
	sub	x22, x24, #5
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_security_genfs_sid
	mov	x22, x0
LBB0_6:
	mov	x0, x21
	bl	_free_page
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/sys"

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

	.no_dead_strip	_selinux_sysctl_get_sid
.subsections_via_symbols
