	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function casper_command
_casper_command:                        ## @casper_command
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_exists_string
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_string
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_service_find
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_casper_allowed_service
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_zygote_clone_service_execute
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_nvlist_create
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_nvlist_add_string
	movl	-48(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvlist_move_descriptor
	movl	-44(%rbp), %edi
	movq	%r13, %rsi
	callq	_nvlist_send
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.9:
	movq	%r13, %rdi
	callq	_nvlist_destroy
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_move_descriptor
	movl	(%r15), %edi
	callq	_service_get_channel_flags
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nvlist_add_number
	jmp	LBB0_3
LBB0_10:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_nvlist_destroy
	movl	-44(%rbp), %edi
	callq	_close
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"service"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOTCAPABLE,4,2                ## @ENOTCAPABLE
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"procfd"

L_.str.3:                               ## @.str.3
	.asciz	"chanfd"

L_.str.4:                               ## @.str.4
	.asciz	"chanflags"

	.no_dead_strip	_casper_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function casper_command
_casper_command:                        ; @casper_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvlist_exists_string
	cbz	w0, LBB0_1
; %bb.5:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_string
	mov	x21, x0
	bl	_service_find
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_casper_allowed_service
	cbz	w0, LBB0_11
; %bb.7:
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_zygote_clone_service_execute
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.8:
	mov	w0, #0
	bl	_nvlist_create
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_nvlist_add_string
	ldr	w2, [sp, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_nvlist_move_descriptor
	ldr	w0, [sp, #12]
	mov	x1, x22
	bl	_nvlist_send
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.9:
	mov	x0, x22
	bl	_nvlist_destroy
	ldr	w2, [sp, #12]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nvlist_move_descriptor
	ldr	w0, [x20]
	bl	_service_get_channel_flags
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_nvlist_add_number
	mov	w19, #0
	b	LBB0_3
LBB0_10:
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh18:
	adrp	x8, _ENOTCAPABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTCAPABLE@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	mov	x0, x22
	bl	_nvlist_destroy
	ldr	w0, [sp, #12]
	bl	_close
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"service"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOTCAPABLE,4,2                ; @ENOTCAPABLE
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"procfd"

l_.str.3:                               ; @.str.3
	.asciz	"chanfd"

l_.str.4:                               ; @.str.4
	.asciz	"chanflags"

	.no_dead_strip	_casper_command
.subsections_via_symbols
