	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_start_leb_change           ## -- Begin function ubi_start_leb_change
	.p2align	4, 0x90
_ubi_start_leb_change:                  ## @ubi_start_leb_change
	.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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$0, 44(%rsi)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
LBB0_2:
	callq	_ubi_assert
	movl	40(%rbx), %esi
	movl	12(%r14), %edx
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_dbg_gen
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movq	%rdi, 8(%rbx)
	movq	$0, 32(%rbx)
	movl	$1, (%rbx)
	movl	12(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 20(%rbx)
	callq	_vmalloc
	movl	%eax, %ecx
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r14), %r9d
	movl	12(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ubi_eba_atomic_leb_change      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start changing LEB %d:%d, %u bytes"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_start_leb_change           ; -- Begin function ubi_start_leb_change
	.p2align	2
_ubi_start_leb_change:                  ; @ubi_start_leb_change
	.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	x19, x1
	mov	x21, x0
	ldr	w8, [x1, #44]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
LBB0_3:
	bl	_ubi_assert
	ldr	w1, [x19, #40]
	ldr	w2, [x20, #12]
	ldr	x3, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_gen
	ldr	x0, [x20]
	cbz	x0, LBB0_6
; %bb.4:
	str	x0, [x19, #8]
	str	xzr, [x19, #32]
	mov	w8, #1
	str	w8, [x19]
	ldr	d0, [x20, #8]
	stur	d0, [x19, #20]
	bl	_vmalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_7
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldp	w5, w2, [x20, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, #0
	mov	w4, #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
	b	_ubi_eba_atomic_leb_change
LBB0_7:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start changing LEB %d:%d, %u bytes"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
