	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_recv                ## -- Begin function apr_socket_recv
	.p2align	4, 0x90
_apr_socket_recv:                       ## @apr_socket_recv
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	_APR_INCOMPLETE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	(%r14), %edx
	movq	%r12, %rsi
	callq	_read
	movl	%eax, %ecx
	movq	(%r13), %rax
	cmpl	$-1, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rbx), %rax
	je	LBB0_3
LBB0_5:
	cmpl	$-1, %ecx
	jne	LBB0_14
## %bb.6:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_8:
	cmpq	$0, 8(%r15)
	jle	LBB0_13
LBB0_9:
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_apr_wait_for_io_or_timeout
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	(%r14), %edx
	movq	%r12, %rsi
	callq	_read
	movl	%eax, %ecx
	movq	(%r13), %rax
	cmpl	$-1, %ecx
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	(%rbx), %rax
	je	LBB0_11
	jmp	LBB0_5
LBB0_13:
	movl	$0, (%r14)
	jmp	LBB0_22
LBB0_14:
	cmpq	$0, 8(%r15)
	jle	LBB0_17
## %bb.15:
	cmpl	(%r14), %ecx
	jge	LBB0_17
## %bb.16:
	movq	_APR_INCOMPLETE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_17:
	movl	%ecx, (%r14)
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.18:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_APR_EOF@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_INCOMPLETE_READ,4,2        ## @APR_INCOMPLETE_READ
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ## @APR_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_recv                ; -- Begin function apr_socket_recv
	.p2align	2
_apr_socket_recv:                       ; @apr_socket_recv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _APR_INCOMPLETE_READ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _APR_INCOMPLETE_READ@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x22, _APR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _APR_SUCCESS@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x20]
	b	LBB0_7
LBB0_2:
Lloh4:
	adrp	x24, _errno@GOTPAGE
Lloh5:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EINTR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #16]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_read
	mov	x8, x0
	ldr	x0, [x24]
	ldr	x9, [x25]
	cmn	w8, #1
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_3
LBB0_4:
	cmn	w8, #1
	b.ne	LBB0_12
; %bb.5:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_10
LBB0_7:
	mov	x0, #0
	mov	x1, x20
	mov	w2, #1
	bl	_apr_wait_for_io_or_timeout
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
Lloh14:
	adrp	x24, _errno@GOTPAGE
Lloh15:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x25, _EINTR@GOTPAGE
Lloh17:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #16]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_read
	mov	x8, x0
	ldr	x0, [x24]
	ldr	x9, [x25]
	cmn	w8, #1
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_9
	b	LBB0_4
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x9, [x20, #8]
	cmp	x9, #1
	b.lt	LBB0_15
; %bb.13:
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.14:
	ldr	w9, [x23]
	ldr	w10, [x20]
	orr	w9, w10, w9
	str	w9, [x20]
LBB0_15:
	str	w8, [x19]
	cbz	w8, LBB0_17
; %bb.16:
	ldr	x0, [x22]
	b	LBB0_11
LBB0_17:
Lloh18:
	adrp	x8, _APR_EOF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APR_EOF@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_INCOMPLETE_READ,4,2        ; @APR_INCOMPLETE_READ
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ; @APR_EOF
.subsections_via_symbols
