	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_change_vtbl_record         ## -- Begin function ubi_change_vtbl_record
	.p2align	4, 0x90
_ubi_change_vtbl_record:                ## @ubi_change_vtbl_record
	.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
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%r15d, (%r14)
	setg	%dil
LBB0_2:
	callq	_ubi_assert
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	_UBI_CRC32_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UBI_VTBL_RECORD_SIZE_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_crc32
	movl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	_empty_vtbl_record@GOTPCREL(%rip), %rbx
LBB0_5:
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_ubi_update_layout_vol
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_self_vtbl_check
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_empty_vtbl_record,4,2          ## @empty_vtbl_record
	.comm	_UBI_CRC32_INIT,4,2             ## @UBI_CRC32_INIT
	.comm	_UBI_VTBL_RECORD_SIZE_CRC,4,2   ## @UBI_VTBL_RECORD_SIZE_CRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_change_vtbl_record         ; -- Begin function ubi_change_vtbl_record
	.p2align	2
_ubi_change_vtbl_record:                ; @ubi_change_vtbl_record
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w21
	cset	w0, gt
	bl	_ubi_assert
	cbz	x20, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _UBI_CRC32_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UBI_CRC32_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UBI_VTBL_RECORD_SIZE_CRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UBI_VTBL_RECORD_SIZE_CRC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_crc32
	bl	_cpu_to_be32
	str	w0, [x20]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	bl	_ubi_assert
	cbnz	x20, LBB0_2
LBB0_4:
Lloh6:
	adrp	x20, _empty_vtbl_record@GOTPAGE
Lloh7:
	ldr	x20, [x20, _empty_vtbl_record@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x19, #8]
	add	x0, x8, w21, sxtw #2
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_ubi_update_layout_vol
	mov	x20, x0
	mov	x0, x19
	bl	_self_vtbl_check
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_empty_vtbl_record,4,2          ; @empty_vtbl_record
	.comm	_UBI_CRC32_INIT,4,2             ; @UBI_CRC32_INIT
	.comm	_UBI_VTBL_RECORD_SIZE_CRC,4,2   ; @UBI_VTBL_RECORD_SIZE_CRC
.subsections_via_symbols
