	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_remap                     ## -- Begin function omap_remap
	.p2align	4, 0x90
_omap_remap:                            ## @omap_remap
	.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, %r14d
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_r_list_length
	movl	%eax, %r15d
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.3:
	leal	(,%r15,4), %edi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	8(%r12), %edi
	callq	_r_list_iterator
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_r_list_iter_next
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_r_list_iter_get
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	%r13, %rdi
	callq	_r_list_iter_next
	addq	$4, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	(%r12), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_binary_search
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.9:
	movq	(%r12), %rcx
	movslq	%eax, %rdx
	xorl	%esi, %esi
	cmpl	%r14d, (%rcx,%rdx,4)
	setne	%sil
	subl	%esi, %eax
	movl	8(%r12), %edi
	movl	%eax, %esi
	callq	_r_list_get_n
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.12:
	addl	%r14d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_1:
	movl	%r14d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-1, %r15d
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_remap                     ; -- Begin function omap_remap
	.p2align	2
_omap_remap:                            ; @omap_remap
	.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, x1
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_r_list_length
	mov	x21, x0
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.2:
	lsl	w0, w21, #2
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_r_list_iterator
	mov	x22, x0
	bl	_r_list_iter_next
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_r_list_iter_get
	ldr	w8, [x0]
	ldr	x9, [x20]
	str	w8, [x9, x23]
	mov	x0, x22
	bl	_r_list_iter_next
	add	x23, x23, #4
	cbnz	x0, LBB0_5
LBB0_6:
	ldr	x0, [x20]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x21
	bl	_binary_search
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x20]
	ldr	w8, [x8, w0, sxtw #2]
	cmp	w8, w19
	cset	w8, ne
	sub	w1, w0, w8
	ldr	w0, [x20, #8]
	bl	_r_list_get_n
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	w9, [x0]
	add	w8, w8, w19
	sub	w19, w8, w9
	b	LBB0_11
LBB0_10:
	mov	w19, #-1
LBB0_11:
	mov	x0, 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
LBB0_12:
	mov	w19, #0
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
