	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sharer                         ## -- Begin function sharer
	.p2align	4, 0x90
_sharer:                                ## @sharer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_shmkey@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pgsize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_shmget
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_shmat
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$-1, %rax
	setne	%dil
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	_m2_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_shmkey,4,2                     ## @shmkey
	.comm	_pgsize,4,2                     ## @pgsize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receiver: shmget:%d"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"receiver: shmat: %d"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.comm	_m2_str,4,2                     ## @m2_str
L_.str.3:                               ## @.str.3
	.asciz	"receiver: data isn't correct"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sharer                         ; -- Begin function sharer
	.p2align	2
_sharer:                                ; @sharer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _shmkey@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shmkey@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _pgsize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pgsize@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_shmget
	mov	x19, x0
	cmn	w0, #1
	cset	w0, ne
Lloh6:
	adrp	x20, _errno@GOTPAGE
Lloh7:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_shmat
	mov	x19, x0
	cmn	x0, #1
	cset	w0, ne
	ldr	w8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh14:
	adrp	x8, _m2_str@GOTPAGE
Lloh15:
	ldr	x8, [x8, _m2_str@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_shmkey,4,2                     ; @shmkey
	.comm	_pgsize,4,2                     ; @pgsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receiver: shmget:%d"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"receiver: shmat: %d"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.comm	_m2_str,4,2                     ; @m2_str
l_.str.3:                               ; @.str.3
	.asciz	"receiver: data isn't correct"

.subsections_via_symbols
