	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	_OPTSTRING_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_VCSM_STATUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_vcos_init
	movq	_VCOS_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_smem_log_category@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_vcos_log_set_level
	movq	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_vcos_log_register
	movq	%r14, %rdi
	callq	_create_optstring
	movl	$-1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_long_opts@GOTPCREL(%rip), %r12
	leaq	-112(%rbp), %r15
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_getopt_long_only
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_3
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_vcos_strcasecmp
	movq	_VCSM_STATUS_VC_MAP_ALL@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_vcos_strcasecmp
	movq	_VCSM_STATUS_VC_WALK_ALLOC@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_vcos_strcasecmp
	movq	_VCSM_STATUS_HOST_WALK_MAP@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_vcos_strcasecmp
	movq	_VCSM_STATUS_HOST_WALK_PID_ALLOC@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_17
	jmp	LBB0_36
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	%r15, %rsi
	movq	%rax, %r15
	movq	(%rax), %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-112(%rbp), %rsi
	cmpq	(%r15), %rsi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-112(%rbp), %r15
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	%r15, %rsi
	movq	%rax, %r15
	movq	(%rax), %rdi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rsi
	cmpq	(%r15), %rsi
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %al
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-112(%rbp), %r15
	jmp	LBB0_1
LBB0_3:
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.4:
	cmpl	$63, %eax
	je	LBB0_22
## %bb.5:
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_vcos_log_info
	jmp	LBB0_22
LBB0_18:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	$1, %rax
	je	LBB0_20
## %bb.19:
	cmpl	%ebx, %eax
	jl	LBB0_20
## %bb.23:
	xorl	%eax, %eax
	callq	_vcsm_init
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_info
	movl	$1, %edi
	callq	_exit
LBB0_20:
	cmpl	%ebx, %eax
	jge	LBB0_22
## %bb.21:
	movq	(%r13,%rax,8), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_info
LBB0_22:
	xorl	%eax, %eax
	callq	_show_usage
	movl	$1, %edi
	callq	_exit
LBB0_25:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testb	$1, %r12b
	je	LBB0_31
## %bb.26:
	leaq	L_.str.10(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_vcos_log_info
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	callq	_vcsm_malloc
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_vcsm_vc_hdl_from_hdl
	leaq	L_.str.12(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vcos_log_info
	testl	%r15d, %r15d
	je	LBB0_31
## %bb.27:
	movl	%r15d, %edi
	callq	_vcsm_lock
	movq	%rax, %r14
	leaq	L_.str.13(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
	testq	%r14, %r14
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	_blah_blah@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_memcpy
	leaq	L_.str.14(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
	movq	%r14, %rdi
	callq	_vcsm_vc_hdl_from_ptr
	leaq	L_.str.15(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
	movq	%r14, %rdi
	callq	_vcsm_usr_handle
	leaq	L_.str.16(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
	movq	%r14, %rdi
	callq	_vcsm_unlock_ptr
	leaq	L_.str.17(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
LBB0_29:
	movl	%r15d, %edi
	callq	_vcsm_lock
	movq	%rax, %rbx
	leaq	L_.str.18(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.30:
	movl	%r15d, %edi
	callq	_vcsm_unlock_hdl
	leaq	L_.str.19(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_info
LBB0_31:
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.32:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_status
LBB0_33:
	testb	$1, %r12b
	je	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_start_monitor
	movq	_quit_event@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_vcos_event_wait
	movq	%rbx, %rdi
	callq	_vcos_event_delete
LBB0_35:
	xorl	%eax, %eax
	callq	_vcsm_exit
LBB0_36:
	movl	$1, %edi
	callq	_exit
LBB0_11:
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_info
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_22
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_OPTSTRING_LEN,4,2              ## @OPTSTRING_LEN
	.comm	_VCSM_STATUS_NONE,4,2           ## @VCSM_STATUS_NONE
	.comm	_smem_log_category,8,3          ## @smem_log_category
	.comm	_VCOS_LOG_INFO,4,2              ## @VCOS_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smem"

	.comm	_long_opts,4,2                  ## @long_opts
	.comm	_optarg,8,3                     ## @optarg
L_.str.1:                               ## @.str.1
	.asciz	"Invalid arguments '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"%31s"

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

	.comm	_VCSM_STATUS_VC_MAP_ALL,4,2     ## @VCSM_STATUS_VC_MAP_ALL
L_.str.4:                               ## @.str.4
	.asciz	"vc"

	.comm	_VCSM_STATUS_VC_WALK_ALLOC,4,2  ## @VCSM_STATUS_VC_WALK_ALLOC
L_.str.5:                               ## @.str.5
	.asciz	"map"

	.comm	_VCSM_STATUS_HOST_WALK_MAP,4,2  ## @VCSM_STATUS_HOST_WALK_MAP
L_.str.6:                               ## @.str.6
	.asciz	"host"

	.comm	_VCSM_STATUS_HOST_WALK_PID_ALLOC,4,2 ## @VCSM_STATUS_HOST_WALK_PID_ALLOC
L_.str.7:                               ## @.str.7
	.asciz	"Unrecognized option '%d'"

	.comm	_optind,4,2                     ## @optind
L_.str.8:                               ## @.str.8
	.asciz	"Unrecognized argument -- '%s'"

L_.str.9:                               ## @.str.9
	.asciz	"Cannot initialize smem device"

L_.str.10:                              ## @.str.10
	.asciz	"Allocating 2 times %u-bytes in shared memory"

L_.str.11:                              ## @.str.11
	.asciz	"smem-test-alloc"

L_.str.12:                              ## @.str.12
	.asciz	"Allocation 1 result: user %x, vc-hdl %x"

L_.str.13:                              ## @.str.13
	.asciz	"Allocation 1 : lock %p"

	.comm	_blah_blah,4,2                  ## @blah_blah
L_.str.14:                              ## @.str.14
	.asciz	"Allocation 1 contains: \"%s\""

L_.str.15:                              ## @.str.15
	.asciz	"Allocation 1: vc-hdl %x"

L_.str.16:                              ## @.str.16
	.asciz	"Allocation 1: usr-hdl %x"

L_.str.17:                              ## @.str.17
	.asciz	"Allocation 1 : unlock %d"

L_.str.18:                              ## @.str.18
	.asciz	"Allocation 1 (relock) : lock %p"

L_.str.19:                              ## @.str.19
	.asciz	"Allocation 1 (relock) : unlock %d"

	.comm	_quit_event,4,2                 ## @quit_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	sub	sp, sp, #48
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _OPTSTRING_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPTSTRING_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh5:
	adrp	x8, _VCSM_STATUS_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCSM_STATUS_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stur	w8, [x29, #-116]                ; 4-byte Folded Spill
	bl	_vcos_init
Lloh8:
	adrp	x8, _VCOS_LOG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCOS_LOG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x19, _smem_log_category@GOTPAGE
Lloh12:
	ldr	x19, [x19, _smem_log_category@GOTPAGEOFF]
	mov	x0, x19
	bl	_vcos_log_set_level
	str	xzr, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_vcos_log_register
	mov	x0, x24
	bl	_create_optstring
	mov	w20, #0
	mov	w27, #0
	mov	w21, #0
	mov	w19, #-1
Lloh15:
	adrp	x25, _long_opts@GOTPAGE
Lloh16:
	ldr	x25, [x25, _long_opts@GOTPAGEOFF]
Lloh17:
	adrp	x28, lJTI0_0@PAGE
Lloh18:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh19:
	adrp	x26, _optarg@GOTPAGE
Lloh20:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x8, _VCSM_STATUS_VC_MAP_ALL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VCSM_STATUS_VC_MAP_ALL@GOTPAGEOFF]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	stur	w8, [x29, #-116]                ; 4-byte Folded Spill
	mov	w27, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x25]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x4, #0
	bl	_getopt_long_only
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_6
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x26]
	sub	x2, x29, #112
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_39
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #112
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #112
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #112
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #112
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_vcos_strcasecmp
Lloh33:
	adrp	x8, _VCSM_STATUS_HOST_WALK_PID_ALLOC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VCSM_STATUS_HOST_WALK_PID_ALLOC@GOTPAGEOFF]
	cbz	w0, LBB0_2
	b	LBB0_38
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x26]
	sub	x1, x29, #112
	mov	w2, #10
	bl	_strtol
	ldur	x8, [x29, #-112]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_40
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x26]
	sub	x1, x29, #112
	mov	w2, #10
	bl	_strtoul
	ldur	x8, [x29, #-112]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_40
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	mov	w20, #1
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh35:
	adrp	x8, _VCSM_STATUS_VC_WALK_ALLOC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VCSM_STATUS_VC_WALK_ALLOC@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh37:
	adrp	x8, _VCSM_STATUS_HOST_WALK_MAP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VCSM_STATUS_HOST_WALK_MAP@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.18:
	cmp	w0, #63
	b.eq	LBB0_21
; %bb.19:
	str	x0, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_20:
	bl	_vcos_log_info
	add	sp, sp, #16
LBB0_21:
	bl	_show_usage
	mov	w0, #1
	bl	_exit
LBB0_22:
Lloh41:
	adrp	x8, _optind@GOTPAGE
Lloh42:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, #1
	ccmp	w8, w23, #8, ne
	b.ge	LBB0_25
; %bb.23:
	sxtw	x8, w8
	cmp	w8, w23
	b.ge	LBB0_21
; %bb.24:
	ldr	x8, [x22, x8, lsl #3]
	str	x8, [sp, #-16]!
Lloh44:
	adrp	x0, l_.str.8@PAGE
Lloh45:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_20
LBB0_25:
	bl	_vcsm_init
	cmn	w0, #1
	b.ne	LBB0_27
; %bb.26:
Lloh46:
	adrp	x0, l_.str.9@PAGE
Lloh47:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_vcos_log_info
	mov	w0, #1
	bl	_exit
LBB0_27:
	tbz	w20, #0, LBB0_33
; %bb.28:
	str	x21, [sp, #-16]!
Lloh48:
	adrp	x0, l_.str.10@PAGE
Lloh49:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
Lloh50:
	adrp	x1, l_.str.11@PAGE
Lloh51:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_vcsm_malloc
	mov	x22, x0
	bl	_vcsm_vc_hdl_from_hdl
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #-16]!
Lloh52:
	adrp	x0, l_.str.12@PAGE
Lloh53:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	cbz	w22, LBB0_33
; %bb.29:
	mov	x0, x22
	bl	_vcsm_lock
	mov	x23, x0
	str	x0, [sp, #-16]!
Lloh54:
	adrp	x0, l_.str.13@PAGE
Lloh55:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	cbz	x23, LBB0_31
; %bb.30:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh56:
	adrp	x8, _blah_blah@GOTPAGE
Lloh57:
	ldr	x8, [x8, _blah_blah@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #32
	bl	_memcpy
	str	x23, [sp, #-16]!
Lloh59:
	adrp	x0, l_.str.14@PAGE
Lloh60:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	mov	x0, x23
	bl	_vcsm_vc_hdl_from_ptr
	str	x0, [sp, #-16]!
Lloh61:
	adrp	x0, l_.str.15@PAGE
Lloh62:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	mov	x0, x23
	bl	_vcsm_usr_handle
	str	x0, [sp, #-16]!
Lloh63:
	adrp	x0, l_.str.16@PAGE
Lloh64:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	mov	x0, x23
	bl	_vcsm_unlock_ptr
	str	x0, [sp, #-16]!
Lloh65:
	adrp	x0, l_.str.17@PAGE
Lloh66:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
LBB0_31:
	mov	x0, x22
	bl	_vcsm_lock
	mov	x21, x0
	str	x0, [sp, #-16]!
Lloh67:
	adrp	x0, l_.str.18@PAGE
Lloh68:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	cbz	x21, LBB0_33
; %bb.32:
	mov	x0, x22
	bl	_vcsm_unlock_hdl
	str	x0, [sp, #-16]!
Lloh69:
	adrp	x0, l_.str.19@PAGE
Lloh70:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
LBB0_33:
	cmp	w27, #1
	b.ne	LBB0_35
; %bb.34:
	ldur	w0, [x29, #-116]                ; 4-byte Folded Reload
	mov	x1, x19
	bl	_get_status
LBB0_35:
	tbz	w20, #0, LBB0_37
; %bb.36:
	bl	_start_monitor
Lloh71:
	adrp	x19, _quit_event@GOTPAGE
Lloh72:
	ldr	x19, [x19, _quit_event@GOTPAGEOFF]
	mov	x0, x19
	bl	_vcos_event_wait
	mov	x0, x19
	bl	_vcos_event_delete
LBB0_37:
	bl	_vcsm_exit
LBB0_38:
	mov	w0, #1
	bl	_exit
LBB0_39:
	ldr	x8, [x26]
LBB0_40:
	str	x8, [sp, #-16]!
Lloh73:
	adrp	x0, l_.str.1@PAGE
Lloh74:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_info
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_21-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
                                        ; -- End function
	.comm	_OPTSTRING_LEN,4,2              ; @OPTSTRING_LEN
	.comm	_VCSM_STATUS_NONE,4,2           ; @VCSM_STATUS_NONE
	.comm	_smem_log_category,8,3          ; @smem_log_category
	.comm	_VCOS_LOG_INFO,4,2              ; @VCOS_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smem"

	.comm	_long_opts,4,2                  ; @long_opts
	.comm	_optarg,8,3                     ; @optarg
l_.str.1:                               ; @.str.1
	.asciz	"Invalid arguments '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"%31s"

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

	.comm	_VCSM_STATUS_VC_MAP_ALL,4,2     ; @VCSM_STATUS_VC_MAP_ALL
l_.str.4:                               ; @.str.4
	.asciz	"vc"

	.comm	_VCSM_STATUS_VC_WALK_ALLOC,4,2  ; @VCSM_STATUS_VC_WALK_ALLOC
l_.str.5:                               ; @.str.5
	.asciz	"map"

	.comm	_VCSM_STATUS_HOST_WALK_MAP,4,2  ; @VCSM_STATUS_HOST_WALK_MAP
l_.str.6:                               ; @.str.6
	.asciz	"host"

	.comm	_VCSM_STATUS_HOST_WALK_PID_ALLOC,4,2 ; @VCSM_STATUS_HOST_WALK_PID_ALLOC
l_.str.7:                               ; @.str.7
	.asciz	"Unrecognized option '%d'"

	.comm	_optind,4,2                     ; @optind
l_.str.8:                               ; @.str.8
	.asciz	"Unrecognized argument -- '%s'"

l_.str.9:                               ; @.str.9
	.asciz	"Cannot initialize smem device"

l_.str.10:                              ; @.str.10
	.asciz	"Allocating 2 times %u-bytes in shared memory"

l_.str.11:                              ; @.str.11
	.asciz	"smem-test-alloc"

l_.str.12:                              ; @.str.12
	.asciz	"Allocation 1 result: user %x, vc-hdl %x"

l_.str.13:                              ; @.str.13
	.asciz	"Allocation 1 : lock %p"

	.comm	_blah_blah,4,2                  ; @blah_blah
l_.str.14:                              ; @.str.14
	.asciz	"Allocation 1 contains: \"%s\""

l_.str.15:                              ; @.str.15
	.asciz	"Allocation 1: vc-hdl %x"

l_.str.16:                              ; @.str.16
	.asciz	"Allocation 1: usr-hdl %x"

l_.str.17:                              ; @.str.17
	.asciz	"Allocation 1 : unlock %d"

l_.str.18:                              ; @.str.18
	.asciz	"Allocation 1 (relock) : lock %p"

l_.str.19:                              ; @.str.19
	.asciz	"Allocation 1 (relock) : unlock %d"

	.comm	_quit_event,4,2                 ; @quit_event
.subsections_via_symbols
