	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_to_context_struct
_string_to_context_struct:              ## @string_to_context_struct
	.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	%r9d, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%r8, %rdi
	callq	_context_init
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %eax
	testb	%al, %al
	je	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$58, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	jmp	LBB0_1
LBB0_20:
	movq	%r13, -48(%rbp)
	jmp	LBB0_22
LBB0_4:
	movq	%rbx, %rax
	movq	%r12, %rbx
	leaq	1(%r13), %r12
	movq	%r12, -48(%rbp)
	movb	$0, (%r13)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %edi
	movq	%r15, %rsi
	callq	_hashtab_search
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:
	addq	$2, %r13
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r13), %eax
	testb	%al, %al
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, -48(%rbp)
	incq	%r13
	jmp	LBB0_6
LBB0_9:
	movq	%r13, -48(%rbp)
	movb	$0, -1(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	%r12, %rsi
	callq	_hashtab_search
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movl	(%rax), %eax
	movq	%rbx, %r12
	movl	%eax, 4(%rbx)
	movq	-48(%rbp), %rsi
	leaq	1(%rsi), %rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rax), %ebx
	testb	%bl, %bl
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$58, %bl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, -48(%rbp)
	incq	%rax
	jmp	LBB0_11
LBB0_21:
	movq	%rbx, %r12
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_26
## %bb.23:
	negl	%r14d
LBB0_24:
	movq	%r12, %rdi
	callq	_context_destroy
	jmp	LBB0_25
LBB0_26:
	xorl	%r14d, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rax, -48(%rbp)
	movb	$0, -1(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_hashtab_search
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	cmpq	$0, 8(%rax)
	jne	LBB0_22
## %bb.16:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movsbl	%bl, %esi
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	callq	_mls_context_to_sid
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.17:
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	movslq	-60(%rbp), %rcx                 ## 4-byte Folded Reload
	cmpq	%rcx, %rax
	jl	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_policydb_context_isvalid
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_25
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_string_to_context_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_to_context_struct
_string_to_context_struct:              ; @string_to_context_struct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	mov	x0, x4
	bl	_context_init
Lloh0:
	adrp	x26, _EINVAL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	ldr	w27, [x26]
	mov	x28, x22
	ldrb	w8, [x28]
	cbz	w8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #58
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x28, x28, #1
	ldrb	w8, [x28]
	cbnz	w8, LBB0_1
LBB0_3:
	str	x28, [sp, #8]
	cbnz	w27, LBB0_15
	b	LBB0_21
LBB0_4:
	add	x25, x28, #1
	str	x25, [sp, #8]
	strb	wzr, [x28], #2
	ldr	w0, [x20, #8]
	mov	x1, x22
	bl	_hashtab_search
	cbz	x0, LBB0_14
; %bb.5:
	ldr	w8, [x0]
	str	w8, [x19, #8]
	ldurb	w8, [x28, #-1]
	cbz	w8, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #58
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x28, [sp, #8]
	add	x28, x28, #1
	ldurb	w8, [x28, #-1]
	cbnz	w8, LBB0_6
	b	LBB0_14
LBB0_8:
	str	x28, [sp, #8]
	sturb	wzr, [x28, #-1]
	ldr	w0, [x20, #4]
	mov	x1, x25
	bl	_hashtab_search
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w8, [x0]
	str	w8, [x19, #4]
	ldr	x1, [sp, #8]
	add	x8, x1, #1
	ldurb	w25, [x8, #-1]
	cbz	w25, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w25, #58
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [sp, #8]
	add	x8, x8, #1
	ldurb	w25, [x8, #-1]
	cbnz	w25, LBB0_10
LBB0_12:
	str	x8, [sp, #8]
	sturb	wzr, [x8, #-1]
	ldr	w0, [x20]
	bl	_hashtab_search
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_17
LBB0_14:
	cbz	w27, LBB0_21
LBB0_15:
	neg	w23, w27
LBB0_16:
	mov	x0, x19
	bl	_context_destroy
	b	LBB0_22
LBB0_17:
	ldr	w8, [x0]
	str	w8, [x19]
	sxtb	w1, w25
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_mls_context_to_sid
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.18:
	ldr	x8, [sp, #8]
	sub	x8, x8, x22
	cmp	x8, w21, sxtw
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	bl	_policydb_context_isvalid
	cbnz	w0, LBB0_21
LBB0_20:
	ldr	w27, [x26]
	cbnz	w27, LBB0_15
LBB0_21:
	mov	w23, #0
LBB0_22:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_string_to_context_struct
.subsections_via_symbols
