	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsm_impl_op                    ## -- Begin function dsm_impl_op
	.p2align	4, 0x90
_dsm_impl_op:                           ## @dsm_impl_op
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdi, %rbx
	movq	_DSM_OP_CREATE@GOTPCREL(%rip), %r12
	cmpq	%rdi, (%r12)
	sete	%al
	testq	%rdx, %rdx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	cmpq	%rbx, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_DSM_OP_ATTACH@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpq	%rbx, (%rax)
	jne	LBB0_4
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
LBB0_4:
	callq	_Assert
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dynamic_shared_memory_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSM_OP_CREATE,8,3              ## @DSM_OP_CREATE
	.comm	_DSM_OP_ATTACH,8,3              ## @DSM_OP_ATTACH
	.comm	_dynamic_shared_memory_type,4,2 ## @dynamic_shared_memory_type
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected dynamic shared memory type: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsm_impl_op                    ; -- Begin function dsm_impl_op
	.p2align	2
_dsm_impl_op:                           ; @dsm_impl_op
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x5
	mov	x20, x4
	mov	x21, x0
Lloh0:
	adrp	x22, _DSM_OP_CREATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DSM_OP_CREATE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x2, #0
	ccmp	x8, x0, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _DSM_OP_ATTACH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DSM_OP_ATTACH@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
LBB0_5:
	bl	_Assert
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _dynamic_shared_memory_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dynamic_shared_memory_type@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DSM_OP_CREATE,8,3              ; @DSM_OP_CREATE
	.comm	_DSM_OP_ATTACH,8,3              ; @DSM_OP_ATTACH
	.comm	_dynamic_shared_memory_type,4,2 ; @dynamic_shared_memory_type
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected dynamic shared memory type: %d"

.subsections_via_symbols
