	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_adjust_global_id           ## -- Begin function tmp_adjust_global_id
	.p2align	4, 0x90
_tmp_adjust_global_id:                  ## @tmp_adjust_global_id
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_last_global_id@GOTPCREL(%rip), %r15
	addl	(%rdi), %r12d
	movl	(%r15), %r13d
	movl	%r13d, %ebx
	subl	%r12d, %ebx
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	leal	-1(%rbx), %eax
	cmpl	$65534, %eax                    ## imm = 0xFFFE
	ja	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	movq	_LEV_TX_INCREASE_GLOBAL_ID_SMALL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, _tmp_adjust_global_id.lgid+8(%rip)
	movl	$4, %edx
	jmp	LBB0_4
LBB0_2:
	cmpl	%r12d, %r13d
	je	LBB0_5
## %bb.3:
	movq	_LEV_TX_INCREASE_GLOBAL_ID_LARGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _tmp_adjust_global_id.lgid+8(%rip)
	movl	%ebx, _tmp_adjust_global_id.lgid(%rip)
	movl	$8, %edx
LBB0_4:
	leaq	_tmp_adjust_global_id.lgid(%rip), %rsi
	movq	%r14, %rdi
	callq	_tmp_write_lev
LBB0_5:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_global_id,4,2             ## @last_global_id
.zerofill __DATA,__bss,_tmp_adjust_global_id.lgid,16,3 ## @tmp_adjust_global_id.lgid
	.comm	_LEV_TX_INCREASE_GLOBAL_ID_SMALL,8,3 ## @LEV_TX_INCREASE_GLOBAL_ID_SMALL
	.comm	_LEV_TX_INCREASE_GLOBAL_ID_LARGE,8,3 ## @LEV_TX_INCREASE_GLOBAL_ID_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_adjust_global_id           ; -- Begin function tmp_adjust_global_id
	.p2align	2
_tmp_adjust_global_id:                  ; @tmp_adjust_global_id
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _last_global_id@GOTPAGE
Lloh1:
	ldr	x20, [x20, _last_global_id@GOTPAGEOFF]
	ldr	w22, [x20]
	ldr	w8, [x0]
	add	w23, w8, w1
	sub	w21, w22, w23
	mvn	w8, w21
	lsr	w0, w8, #31
	bl	_assert
	sub	w8, w21, #1
	mov	w9, #65534
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LEV_TX_INCREASE_GLOBAL_ID_SMALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LEV_TX_INCREASE_GLOBAL_ID_SMALL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, w21, uxtw
	adrp	x9, _tmp_adjust_global_id.lgid@PAGE+8
	str	x8, [x9, _tmp_adjust_global_id.lgid@PAGEOFF+8]
	mov	w2, #4
	b	LBB0_4
LBB0_2:
	cmp	w22, w23
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _LEV_TX_INCREASE_GLOBAL_ID_LARGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LEV_TX_INCREASE_GLOBAL_ID_LARGE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _tmp_adjust_global_id.lgid@PAGE
Lloh9:
	add	x9, x9, _tmp_adjust_global_id.lgid@PAGEOFF
	str	x8, [x9, #8]
	str	w21, [x9]
	mov	w2, #8
LBB0_4:
Lloh10:
	adrp	x1, _tmp_adjust_global_id.lgid@PAGE
Lloh11:
	add	x1, x1, _tmp_adjust_global_id.lgid@PAGEOFF
	mov	x0, x19
	bl	_tmp_write_lev
LBB0_5:
	ldr	w8, [x20]
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_last_global_id,4,2             ; @last_global_id
.zerofill __DATA,__bss,_tmp_adjust_global_id.lgid,16,3 ; @tmp_adjust_global_id.lgid
	.comm	_LEV_TX_INCREASE_GLOBAL_ID_SMALL,8,3 ; @LEV_TX_INCREASE_GLOBAL_ID_SMALL
	.comm	_LEV_TX_INCREASE_GLOBAL_ID_LARGE,8,3 ; @LEV_TX_INCREASE_GLOBAL_ID_LARGE
.subsections_via_symbols
