	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_iomap_mr
_rs_get_iomap_mr:                       ## @rs_get_iomap_mr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movl	8(%rdi), %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rax)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$8, %rax
	decq	%rbx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_1:
	movq	%rdi, %r14
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r14)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.3:
	leaq	-1(%rbx), %rdx
	movl	%ebx, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdx
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_11:
	movq	%rax, %rcx
LBB0_13:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %esi
	andl	$-8, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,8)
	leal	1(%rdx), %edi
	movl	%edi, 8(%rax,%rdx,8)
	leal	2(%rdx), %edi
	movl	%edi, 16(%rax,%rdx,8)
	leal	3(%rdx), %edi
	movl	%edi, 24(%rax,%rdx,8)
	leal	4(%rdx), %edi
	movl	%edi, 32(%rax,%rdx,8)
	leal	5(%rdx), %edi
	movl	%edi, 40(%rax,%rdx,8)
	leal	6(%rdx), %edi
	movl	%edi, 48(%rax,%rdx,8)
	leal	7(%rdx), %edi
	movl	%edi, 56(%rax,%rdx,8)
	addq	$8, %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rs_get_iomap_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_get_iomap_mr
_rs_get_iomap_mr:                       ; @rs_get_iomap_mr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x0, [x0]
	ldr	w19, [x20, #8]
	cbz	x0, LBB0_4
LBB0_1:
	cmp	w19, #1
	b.lt	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #8
	subs	x19, x19, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #8
	bl	_calloc
	str	x0, [x20]
	cmp	x0, #0
	ccmp	w19, #1, #8, ne
	b.ge	LBB0_7
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	cmp	w19, #4
	b.hs	LBB0_9
; %bb.8:
	mov	x8, #0
	b	LBB0_12
LBB0_9:
	mov	x9, #0
	and	x8, x19, #0xfffffffc
	add	x10, x0, #16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w11, w9, #1
	add	w12, w9, #2
	add	w13, w9, #3
	stur	w9, [x10, #-16]
	stur	w11, [x10, #-8]
	str	w12, [x10]
	str	w13, [x10, #8]
	add	x9, x9, #4
	add	x10, x10, #32
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.11:
	cmp	x8, x19
	b.eq	LBB0_1
LBB0_12:
	lsl	x9, x8, #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x0, x9]
	add	x8, x8, #1
	add	x9, x9, #8
	cmp	x19, x8
	b.ne	LBB0_13
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rs_get_iomap_mr
.subsections_via_symbols
