	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p9_fd_read
_p9_fd_read:                            ## @p9_fd_read
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_Disconnected@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%r13), %rdi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_6
## %bb.5:
	movq	_P9_DEBUG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_P9_DPRINTK
	movq	(%r13), %rdi
LBB0_6:
	movl	4(%rdi), %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_kernel_read
	testl	%eax, %eax
	jg	LBB0_10
## %bb.7:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_10
LBB0_3:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Disconnected,8,3               ## @Disconnected
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_P9_DEBUG_ERROR,4,2             ## @P9_DEBUG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blocking read ...\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_p9_fd_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p9_fd_read
_p9_fd_read:                            ; @p9_fd_read
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _Disconnected@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Disconnected@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.2:
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_9
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	ldr	x0, [x23]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _P9_DEBUG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P9_DEBUG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_P9_DPRINTK
	ldr	x0, [x23]
LBB0_5:
	ldr	w1, [x0, #4]
	mov	x2, x21
	mov	x3, x20
	bl	_kernel_read
	cmp	w0, #0
	b.gt	LBB0_10
; %bb.6:
Lloh10:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.7:
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Disconnected,8,3               ; @Disconnected
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_P9_DEBUG_ERROR,4,2             ; @P9_DEBUG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blocking read ...\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_p9_fd_read
.subsections_via_symbols
