	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scribble_object
_scribble_object:                       ## @scribble_object
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_ATF_REQUIRE
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_EXCL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%rax), %esi
	movq	_O_RDWR@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_shm_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.2:
	movq	_test_path@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_shm_unlink
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_4:
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_shm_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_7:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ftruncate
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_9:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movb	%al, (%rbx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_munmap
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_test_path,8,3                  ## @test_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shm_unlink"

L_.str.1:                               ## @.str.1
	.asciz	"shm_open failed; errno=%d"

L_.str.2:                               ## @.str.2
	.asciz	"ftruncate failed; errno=%d"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.3:                               ## @.str.3
	.asciz	"mmap failed; errno=%d"

L_.str.4:                               ## @.str.4
	.asciz	"munmap failed; errno=%d"

	.no_dead_strip	_scribble_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scribble_object
_scribble_object:                       ; @scribble_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_getpagesize
	mov	x20, x0
	cmp	w0, #0
	cset	w0, gt
	bl	_ATF_REQUIRE
Lloh0:
	adrp	x22, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _O_CREAT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x24, _O_EXCL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _O_EXCL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x25, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _O_RDWR@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x21
	mov	w2, #511
	bl	_shm_open
	mov	x21, x0
Lloh6:
	adrp	x23, _errno@GOTPAGE
Lloh7:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	tbz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [x23]
Lloh8:
	adrp	x9, _EEXIST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh11:
	adrp	x21, _test_path@GOTPAGE
Lloh12:
	ldr	x21, [x21, _test_path@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_shm_unlink
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_4:
	ldr	x0, [x21]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	w2, #511
	bl	_shm_open
	mov	x21, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
	ldr	x8, [x23]
LBB0_6:
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_ftruncate
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
LBB0_9:
Lloh19:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh21:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh25:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x1, x20
	mov	x4, x21
	mov	w5, #0
	bl	_mmap
	mov	x22, x0
Lloh28:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x23]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail
LBB0_11:
	strb	w19, [x22]
	mov	x0, x22
	mov	x1, x20
	bl	_munmap
	cmp	x0, #0
	cset	w0, eq
	ldr	x2, [x23]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_test_path,8,3                  ; @test_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shm_unlink"

l_.str.1:                               ; @.str.1
	.asciz	"shm_open failed; errno=%d"

l_.str.2:                               ; @.str.2
	.asciz	"ftruncate failed; errno=%d"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.3:                               ; @.str.3
	.asciz	"mmap failed; errno=%d"

l_.str.4:                               ; @.str.4
	.asciz	"munmap failed; errno=%d"

	.no_dead_strip	_scribble_object
.subsections_via_symbols
