	.file	"extr_wt-monitor-macos.c_command_read_cb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[wt mon] failed to read command.\n"
	.align 8
.LC1:
	.string	"[wt mon] %ld receive command type=%d, repo=%s\n"
	.text
	.p2align 4
	.type	command_read_cb, @function
command_read_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	mov	r13, rsp
	mov	edx, 8
	mov	rsi, r13
	mov	edi, DWORD PTR [rax]
	call	seaf_pipe_readn@PLT
	cmp	eax, 8
	je	.L2
	lea	rdi, .LC0[rip]
	call	seaf_warning@PLT
	mov	esi, DWORD PTR kCFFileDescriptorReadCallBack[rip]
	mov	edi, r12d
	call	CFFileDescriptorEnableCallBacks@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r15d, DWORD PTR [rsp]
	mov	r14d, DWORD PTR 4[rsp]
	xor	eax, eax
	call	CFRunLoopGetCurrent@PLT
	lea	rdi, .LC1[rip]
	mov	ecx, r15d
	mov	edx, r14d
	mov	rsi, rax
	call	seaf_debug@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	handle_watch_command@PLT
	mov	esi, DWORD PTR kCFFileDescriptorReadCallBack[rip]
	mov	edi, r12d
	call	CFFileDescriptorEnableCallBacks@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	command_read_cb, .-command_read_cb
	.comm	kCFFileDescriptorReadCallBack,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wt-monitor-macos.c_command_read_cb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[wt mon] failed to read command.\012\000"
	.align	2
.LC1:
	.ascii	"[wt mon] %ld receive command type=%d, repo=%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	command_read_cb, %function
command_read_cb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r2]
	sub	sp, sp, #20
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, .L8
	mov	r4, r2
	add	r1, sp, #4
	mov	r2, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	seaf_pipe_readn
	cmp	r0, #8
	beq	.L2
	ldr	r0, .L8+4
	bl	seaf_warning
	ldr	r3, .L8+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	CFFileDescriptorEnableCallBacks
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	bl	CFRunLoopGetCurrent
	ldr	r3, [sp, #4]
	mov	r1, r0
	ldr	r2, [sp, #8]
	ldr	r0, .L8+12
	bl	seaf_debug
	add	r1, sp, #4
	mov	r0, r4
	bl	handle_watch_command
	ldr	r3, .L8+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	CFFileDescriptorEnableCallBacks
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	kCFFileDescriptorReadCallBack
	.word	.LC1
	.size	command_read_cb, .-command_read_cb
	.comm	kCFFileDescriptorReadCallBack,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
