	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bectl_locate_jail
_bectl_locate_jail:                     ## @bectl_locate_jail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_jail_getid
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_7
## %bb.1:
	leaq	-24(%rbp), %rdi
	callq	_be_prop_list_alloc
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_be@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rsi
	callq	_be_get_bootenv_props
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	-24(%rbp), %rdi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rsi
	callq	_nvlist_lookup_nvlist
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	-40(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_nvlist_lookup_string
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	callq	_bectl_search_jail_paths
	movl	%eax, %ebx
LBB0_6:
	movq	-24(%rbp), %rdi
	callq	_be_prop_list_free
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_be,4,2                         ## @be
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mounted"

	.no_dead_strip	_bectl_locate_jail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bectl_locate_jail
_bectl_locate_jail:                     ; @bectl_locate_jail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_jail_getid
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.1:
	add	x0, sp, #24
	bl	_be_prop_list_alloc
	cbnz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _be@GOTPAGE
Lloh1:
	ldr	x8, [x8, _be@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [sp, #24]
	bl	_be_get_bootenv_props
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #24]
	add	x2, sp, #16
	mov	x1, x19
	bl	_nvlist_lookup_nvlist
	cbz	x0, LBB0_6
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x0, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_nvlist_lookup_string
	cbz	x0, LBB0_8
; %bb.7:
	mov	w20, #-1
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_bectl_search_jail_paths
	mov	x20, x0
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_be_prop_list_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_be,4,2                         ; @be
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mounted"

	.no_dead_strip	_bectl_locate_jail
.subsections_via_symbols
