	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_bset_insert                ## -- Begin function bch_bset_insert
	.p2align	4, 0x90
_bch_bset_insert:                       ## @bch_bset_insert
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_bset_tree_last
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_BUG_ON
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_bset_byte_offset
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r13
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_bkey_u64s
	addl	%eax, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___set_bytes
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movb	(%r12), %cl
	shlq	%cl, %rdx
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	setg	%dil
	callq	_BUG_ON
	movq	%rbx, %r13
	movq	%rbx, %rdi
	callq	_bkey_u64s
	cltq
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r15
	movq	(%r14), %rdi
	callq	_bset_bkey_last
	movq	%rbx, %rsi
	subl	%esi, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_memmove
	movq	%r13, %rdi
	callq	_bkey_u64s
	movq	(%r14), %rcx
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bkey_copy
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bch_bset_fix_lookup_table      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_bset_insert                ; -- Begin function bch_bset_insert
	.p2align	2
_bch_bset_insert:                       ; @bch_bset_insert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_bset_tree_last
	mov	x22, x0
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x1, [x22]
	mov	x0, x20
	bl	_bset_byte_offset
	mov	x23, x0
	ldr	x24, [x22]
	ldr	w25, [x24]
	mov	x0, x21
	bl	_bkey_u64s
	add	w1, w0, w25
	mov	x0, x24
	bl	___set_bytes
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x20]
	lsl	x8, x8, x9
	add	x9, x0, x23
	cmp	x9, x8
	cset	w0, gt
	bl	_BUG_ON
	mov	x0, x21
	bl	_bkey_u64s
	add	x23, x19, w0, sxtw #2
	ldr	x0, [x22]
	bl	_bset_bkey_last
	sub	w2, w0, w19
	mov	x0, x23
	mov	x1, x19
	bl	_memmove
	mov	x0, x21
	bl	_bkey_u64s
	ldr	x8, [x22]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_bkey_copy
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bch_bset_fix_lookup_table
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
