	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_struct_to_string
_context_struct_to_string:              ## @context_struct_to_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, (%rsi)
	movq	$0, (%rdx)
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, (%rbx)
	movl	12(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kstrdup
	movq	%rax, %rcx
	movq	%rax, (%r14)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_2
LBB0_3:
	movq	_policydb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %r13
	movslq	(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	movq	%rax, %r15
	incq	%rax
	movq	%rax, (%rbx)
	movq	8(%r13), %rax
	movslq	4(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	leaq	(%r15,%rax), %r13
	addq	%r15, %rax
	addq	$2, %rax
	movq	%rax, (%rbx)
	movq	_policydb@GOTPCREL(%rip), %rax
	movq	16(%rax), %rax
	movslq	8(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	addq	%r13, %rax
	addq	$3, %rax
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_mls_compute_context_len
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	%rax, (%r14)
	movslq	(%r12), %rax
	movq	_policydb@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	8(%r13), %rsi
	movq	-8(%rcx,%rax,8), %rdx
	movslq	4(%r12), %rax
	movq	-8(%rsi,%rax,8), %rcx
	movq	16(%r13), %rax
	movslq	8(%r12), %rsi
	movq	-8(%rax,%rsi,8), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_sprintf
	movq	(%r13), %rax
	movslq	(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	8(%r13), %rax
	movslq	4(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	16(%r13), %rax
	movslq	8(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_strlen
	addq	%r14, %rbx
	addq	%rax, %rbx
	leaq	(%r15,%rbx), %rax
	addq	$2, %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mls_sid_to_context
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_policydb,24,3                  ## @policydb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%s:%s"

	.no_dead_strip	_context_struct_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_struct_to_string
_context_struct_to_string:              ; @context_struct_to_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x1]
	str	xzr, [x2]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	str	x8, [x21]
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kstrdup
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x23, _policydb@GOTPAGE
Lloh4:
	ldr	x23, [x23, _policydb@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	mov	x22, x0
	add	x8, x0, #1
	str	x8, [x21]
	ldr	x8, [x23, #8]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	add	x8, x22, x0
	add	x22, x8, #2
	str	x22, [x21]
	ldr	x8, [x23, #16]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	add	x8, x22, x0
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x19
	bl	_mls_compute_context_len
	ldr	x8, [x21]
	add	x0, x8, x0
	str	x0, [x21]
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	str	x0, [x20]
	ldp	x8, x9, [x23]
	ldpsw	x10, x11, [x19]
	add	x8, x8, x10, lsl #3
	ldur	x2, [x8, #-8]
	add	x8, x9, x11, lsl #3
	ldur	x3, [x8, #-8]
	ldr	x8, [x23, #16]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	ldur	x4, [x8, #-8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	ldr	x8, [x23]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	mov	x20, x0
	ldr	x8, [x23, #8]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	mov	x22, x0
	ldr	x8, [x23, #16]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_strlen
	add	x8, x20, x22
	add	x8, x8, x0
	add	x8, x8, x21
	add	x8, x8, #2
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mls_sid_to_context
	mov	w0, #0
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_policydb,24,3                  ; @policydb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%s:%s"

	.no_dead_strip	_context_struct_to_string
.subsections_via_symbols
