	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_node
_push_node:                             ## @push_node
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rbx
	movq	_DM_BTREE_CURSOR_MAX_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jge	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movl	16(%rdi), %edi
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %rdx
	addq	$8, %rdx
	callq	_bn_read_lock
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	$0, (%r15,%rbx)
	incl	(%r14)
	cmpq	$0, 8(%r14)
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_leaf_node
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_prefetch_values
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_BTREE_CURSOR_MAX_DEPTH,4,2  ## @DM_BTREE_CURSOR_MAX_DEPTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't push cursor node, stack depth too high"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_push_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_node
_push_node:                             ; @push_node
	.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
	ldrsw	x20, [x0]
Lloh0:
	adrp	x8, _DM_BTREE_CURSOR_MAX_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_BTREE_CURSOR_MAX_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w20, w8
	b.ge	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x0, #16]
	add	x8, x21, x20, lsl #4
	add	x2, x8, #8
	bl	_bn_read_lock
	cbnz	w0, LBB0_7
; %bb.2:
	lsl	x8, x20, #4
	str	xzr, [x21, x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_leaf_node
	cbnz	w0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_prefetch_values
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_BTREE_CURSOR_MAX_DEPTH,4,2  ; @DM_BTREE_CURSOR_MAX_DEPTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't push cursor node, stack depth too high"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_push_node
.subsections_via_symbols
