	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_acquire_tuplock
_heap_acquire_tuplock:                  ## @heap_acquire_tuplock
	.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
	movl	$1, %r14d
	cmpl	$0, (%r8)
	jne	LBB0_10
## %bb.1:
	movq	%r8, %rbx
	movl	%edi, %r15d
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.4:
	movl	%r15d, %edi
	callq	_LockTupleTuplock
	jmp	LBB0_9
LBB0_5:
	movl	%r15d, %edi
	callq	_ConditionalLockTupleTuplock
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movl	%r15d, %edi
	callq	_ConditionalLockTupleTuplock
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_LOCK_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movl	$1, (%rbx)
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_LOCK_NOT_AVAILABLE,4,2 ## @ERRCODE_LOCK_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not obtain lock on row in relation \"%s\""

	.no_dead_strip	_heap_acquire_tuplock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_acquire_tuplock
_heap_acquire_tuplock:                  ; @heap_acquire_tuplock
	.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
	ldr	w8, [x4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	mov	x19, x4
	mov	x20, x0
	cmp	w3, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w3, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w3, #130
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_LockTupleTuplock
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_ConditionalLockTupleTuplock
	cbnz	w0, LBB0_9
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_ConditionalLockTupleTuplock
	cbnz	w0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ERRCODE_LOCK_NOT_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_LOCK_NOT_AVAILABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_9:
	mov	w0, #1
	str	w0, [x19]
LBB0_10:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_LOCK_NOT_AVAILABLE,4,2 ; @ERRCODE_LOCK_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not obtain lock on row in relation \"%s\""

	.no_dead_strip	_heap_acquire_tuplock
.subsections_via_symbols
