	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_write_iomap
_rs_write_iomap:                        ## @rs_write_iomap
	.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
	movq	%rdi, %rbx
	incl	28(%rdi)
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	24(%rdi), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 24(%rdi)
	movq	_RS_OPT_MSG_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
## %bb.1:
	addl	$-2, %eax
	movl	%eax, 24(%rbx)
LBB0_2:
	addl	$-4, 4(%rbx)
	movslq	(%rsi), %rsi
	movq	%rsi, %r13
	shlq	$2, %r13
	addq	16(%rbx), %r13
	movq	_RS_OP_IOMAP_SGL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rs_msg_set
	movl	8(%rbx), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movq	%r13, %r9
	callq	_rs_post_write_msg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ## @RS_OPT_MSG_SEND
	.comm	_RS_OP_IOMAP_SGL,4,2            ## @RS_OP_IOMAP_SGL
	.no_dead_strip	_rs_write_iomap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rs_write_iomap
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rs_write_iomap:                        ; @rs_write_iomap
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	ldr	d0, [x0, #24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v1, v0, v1
	str	d1, [x0, #24]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _RS_OPT_MSG_SEND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RS_OPT_MSG_SEND@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	fmov	w8, s0
	sub	w8, w8, #2
	str	w8, [x22, #24]
LBB0_2:
	ldr	w8, [x22, #4]
	sub	w8, w8, #4
	str	w8, [x22, #4]
	ldr	x8, [x22, #16]
	ldrsw	x1, [x1]
	add	x23, x8, x1, lsl #2
Lloh5:
	adrp	x8, _RS_OP_IOMAP_SGL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RS_OP_IOMAP_SGL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_rs_msg_set
	mov	x3, x0
	ldr	w6, [x22, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x4, x19
	mov	x5, x23
	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
	b	_rs_post_write_msg
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ; @RS_OPT_MSG_SEND
	.comm	_RS_OP_IOMAP_SGL,4,2            ; @RS_OP_IOMAP_SGL
	.no_dead_strip	_rs_write_iomap
.subsections_via_symbols
