	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rw_common
_rw_common:                             ## @rw_common
	.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	%r8d, %ebx
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_save_inferior_ptid
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_inferior_ptid@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_is_thread
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	callq	_procfs_first_available
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %edi
	callq	_target_thread_alive
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	_PS_OK@GOTPCREL(%rip), %r14
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.4:
	movq	_procfs_ops@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	*(%r14)
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	movq	_core_ops@GOTPCREL(%rip), %r9
	movq	_orig_core_ops@GOTPCREL(%rip), %rax
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	addq	%rcx, %r13
	subl	%eax, %ebx
	jg	LBB0_5
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_PS_OK@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_12:
	testl	%r12d, %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_print_sys_errmsg
	jmp	LBB0_14
LBB0_13:
	testl	%r12d, %r12d
	movslq	%r15d, %rsi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_warning
LBB0_14:
	movq	_PS_ERR@GOTPCREL(%rip), %r14
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	callq	_do_cleanups
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_target_has_execution,8,3       ## @target_has_execution
	.comm	_procfs_ops,8,3                 ## @procfs_ops
	.comm	_orig_core_ops,8,3              ## @orig_core_ops
	.comm	_core_ops,4,2                   ## @core_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rw_common (): read"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"rw_common (): write"

	.comm	_PS_ERR,4,2                     ## @PS_ERR
L_.str.2:                               ## @.str.2
	.asciz	"rw_common (): unable to read at addr 0x%lx"

L_.str.3:                               ## @.str.3
	.asciz	"rw_common (): unable to write at addr 0x%lx"

	.comm	_PS_OK,4,2                      ## @PS_OK
	.comm	_exec_bfd,4,2                   ## @exec_bfd
	.no_dead_strip	_rw_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rw_common
_rw_common:                             ; @rw_common
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x0
	bl	_save_inferior_ptid
	mov	x19, x0
Lloh0:
	adrp	x24, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x24, [x24, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_is_thread
	cbz	x0, LBB0_2
LBB0_1:
	bl	_procfs_first_available
	str	w0, [x24]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x24]
	bl	_target_thread_alive
	cbz	w0, LBB0_1
LBB0_3:
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.4:
Lloh2:
	adrp	x27, _target_has_execution@GOTPAGE
Lloh3:
	ldr	x27, [x27, _target_has_execution@GOTPAGEOFF]
Lloh4:
	adrp	x28, _orig_core_ops@GOTPAGE
Lloh5:
	ldr	x28, [x28, _orig_core_ops@GOTPAGEOFF]
Lloh6:
	adrp	x24, _core_ops@GOTPAGE
Lloh7:
	ldr	x24, [x24, _core_ops@GOTPAGEOFF]
Lloh8:
	adrp	x26, _PS_OK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PS_OK@GOTPAGEOFF]
Lloh10:
	adrp	x25, _procfs_ops@GOTPAGE
Lloh11:
	ldr	x25, [x25, _procfs_ops@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	w4, #0
	mov	x5, x25
	blr	x8
	tbz	w0, #31, LBB0_8
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	w4, #0
	mov	x5, x24
	blr	x8
	tbnz	w0, #31, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w22, w22, w0
	add	x23, x23, w0, uxtw
	cmp	w22, #0
	b.gt	LBB0_5
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x26, _PS_OK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PS_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, l_.str.1@PAGE
Lloh18:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh19:
	adrp	x9, l_.str@PAGE
Lloh20:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w20, #0
	csel	x0, x9, x8, eq
	bl	_print_sys_errmsg
	b	LBB0_13
LBB0_12:
	sxtw	x1, w21
Lloh21:
	adrp	x8, l_.str.3@PAGE
Lloh22:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh23:
	adrp	x9, l_.str.2@PAGE
Lloh24:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x0, x9, x8, eq
	bl	_warning
LBB0_13:
Lloh25:
	adrp	x26, _PS_ERR@GOTPAGE
Lloh26:
	ldr	x26, [x26, _PS_ERR@GOTPAGEOFF]
LBB0_14:
	mov	x0, x19
	bl	_do_cleanups
	ldr	w0, [x26]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_target_has_execution,8,3       ; @target_has_execution
	.comm	_procfs_ops,8,3                 ; @procfs_ops
	.comm	_orig_core_ops,8,3              ; @orig_core_ops
	.comm	_core_ops,4,2                   ; @core_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rw_common (): read"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"rw_common (): write"

	.comm	_PS_ERR,4,2                     ; @PS_ERR
l_.str.2:                               ; @.str.2
	.asciz	"rw_common (): unable to read at addr 0x%lx"

l_.str.3:                               ; @.str.3
	.asciz	"rw_common (): unable to write at addr 0x%lx"

	.comm	_PS_OK,4,2                      ; @PS_OK
	.comm	_exec_bfd,4,2                   ; @exec_bfd
	.no_dead_strip	_rw_common
.subsections_via_symbols
