	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rw_thread_main
_rw_thread_main:                        ## @rw_thread_main
	.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
	movl	8(%rdi), %edi
	callq	_bind_cpu
	movq	_SPLICE_F_MORE@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_READ_WAIT_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usleep
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	_global_run_operation@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_mutex_notify@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_cond_wakeup@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_global_sig_receive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %edi
	movl	20(%rbx), %edx
	movq	(%rbx), %r8
	movl	(%r15), %r9d
	movq	_SPLICE_F_MOVE@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_splice
	testq	%rax, %rax
	js	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	addq	%r12, %r13
	cmpq	%r14, %r13
	jge	LBB0_1
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%rbx), %edx
	movl	16(%rbx), %edi
	movq	%r14, %r8
	subq	%r13, %r8
	movl	(%r15), %r9d
	movq	_SPLICE_F_MOVE@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_splice
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %r12
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$1, %edi
	callq	_sleep
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	movl	8(%rbx), %esi
	callq	_pr_err
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_global_run_operation,4,2       ## @global_run_operation
	.comm	_mutex_notify,4,2               ## @mutex_notify
	.comm	_cond_wakeup,4,2                ## @cond_wakeup
	.comm	_global_sig_receive,8,3         ## @global_sig_receive
	.comm	_SPLICE_F_MOVE,4,2              ## @SPLICE_F_MOVE
	.comm	_SPLICE_F_MORE,4,2              ## @SPLICE_F_MORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Splice_read in rw-thread(%d)\n"

	.comm	_READ_WAIT_USEC,4,2             ## @READ_WAIT_USEC
L_.str.1:                               ## @.str.1
	.asciz	"Read retry(cpu:%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Splice_write in rw-thread(%d)\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_rw_thread_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rw_thread_main
_rw_thread_main:                        ; @rw_thread_main
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_bind_cpu
Lloh0:
	adrp	x26, _global_run_operation@GOTPAGE
Lloh1:
	ldr	x26, [x26, _global_run_operation@GOTPAGEOFF]
Lloh2:
	adrp	x21, _mutex_notify@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mutex_notify@GOTPAGEOFF]
Lloh4:
	adrp	x22, _cond_wakeup@GOTPAGE
Lloh5:
	ldr	x22, [x22, _cond_wakeup@GOTPAGEOFF]
Lloh6:
	adrp	x27, _global_sig_receive@GOTPAGE
Lloh7:
	ldr	x27, [x27, _global_sig_receive@GOTPAGEOFF]
Lloh8:
	adrp	x28, _SPLICE_F_MOVE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SPLICE_F_MOVE@GOTPAGEOFF]
Lloh10:
	adrp	x20, _SPLICE_F_MORE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SPLICE_F_MORE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _READ_WAIT_USEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _READ_WAIT_USEC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_usleep
	ldr	w1, [x19, #8]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x26]
	cbnz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_pthread_mutex_lock
	mov	x0, x22
	mov	x1, x21
	bl	_pthread_cond_wait
	mov	x0, x21
	bl	_pthread_mutex_unlock
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	cbnz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w0, [x19, #20]
	ldr	x4, [x19]
	ldr	w8, [x28]
	ldr	w9, [x20]
	orr	w5, w9, w8
	mov	x1, #0
	mov	x3, #0
	bl	_splice
	tbnz	x0, #63, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	cbz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x23, x25, x23
	cmp	x23, x24
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w0, [x19, #12]
	sub	x4, x24, x23
	ldr	w8, [x28]
	ldr	w9, [x20]
	orr	w5, w9, w8
	mov	x1, #0
	mov	x3, #0
	bl	_splice
	tbnz	x0, #63, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x0
	cbnz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w0, #1
	bl	_sleep
	b	LBB0_8
LBB0_12:
	mov	x0, #0
	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
LBB0_13:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	ldr	w1, [x19, #8]
	bl	_pr_err
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_exit
LBB0_15:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_global_run_operation,4,2       ; @global_run_operation
	.comm	_mutex_notify,4,2               ; @mutex_notify
	.comm	_cond_wakeup,4,2                ; @cond_wakeup
	.comm	_global_sig_receive,8,3         ; @global_sig_receive
	.comm	_SPLICE_F_MOVE,4,2              ; @SPLICE_F_MOVE
	.comm	_SPLICE_F_MORE,4,2              ; @SPLICE_F_MORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Splice_read in rw-thread(%d)\n"

	.comm	_READ_WAIT_USEC,4,2             ; @READ_WAIT_USEC
l_.str.1:                               ; @.str.1
	.asciz	"Read retry(cpu:%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Splice_write in rw-thread(%d)\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_rw_thread_main
.subsections_via_symbols
