	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sock_recvfrom
_sock_recvfrom:                         ## @sock_recvfrom
	.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	%r9, %r14
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	testq	%r8, %r8
	jne	LBB0_2
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_2
## %bb.8:
	movl	(%rdi), %r14d
	movq	%rdx, %rdi
	callq	_XP_SOCK_BUF_SIZE
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_recv
	movq	_SOCK_CONN_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-1, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	$4, -44(%rbp)
	movl	(%rdi), %r15d
	movq	%rdx, %rdi
	callq	_XP_SOCK_BUF_SIZE
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_recvfrom
	movq	_SOCK_CONN_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-1, %ebx
	cmovnel	%eax, %ebx
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	16(%rbp), %r8
	callq	_php_network_populate_name_from_sockaddr
	jmp	LBB0_9
LBB0_4:
	movq	16(%rbp), %r15
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ZSTR_EMPTY_ALLOC
	movq	%rax, (%r12)
LBB0_6:
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	movq	$0, (%r14)
	movl	$0, (%r15)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_CONN_ERR,4,2              ## @SOCK_CONN_ERR
	.no_dead_strip	_sock_recvfrom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sock_recvfrom
_sock_recvfrom:                         ; @sock_recvfrom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	cbnz	x4, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
; %bb.2:
	ldr	w19, [x0]
	mov	x0, x2
	bl	_XP_SOCK_BUF_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_recv
Lloh0:
	adrp	x8, _SOCK_CONN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_CONN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	csinv	w22, w0, wzr, ne
	b	LBB0_9
LBB0_3:
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	w24, [x0]
	mov	x0, x2
	bl	_XP_SOCK_BUF_SIZE
	mov	x2, x0
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x3, x22
	bl	_recvfrom
Lloh3:
	adrp	x8, _SOCK_CONN_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_CONN_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	csinv	w22, w0, wzr, ne
	ldr	w1, [sp, #8]
	cbz	w1, LBB0_5
; %bb.4:
	add	x0, sp, #12
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_php_network_populate_name_from_sockaddr
	b	LBB0_9
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	bl	_ZSTR_EMPTY_ALLOC
	str	x0, [x21]
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	str	xzr, [x20]
	str	wzr, [x19]
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_CONN_ERR,4,2              ; @SOCK_CONN_ERR
	.no_dead_strip	_sock_recvfrom
.subsections_via_symbols
