	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_socket_read_udp_posix     ## -- Begin function link_socket_read_udp_posix
	.p2align	4, 0x90
_link_socket_read_udp_posix:            ## @link_socket_read_udp_posix
	.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, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$4, -48(%rbp)
	movl	16(%rdi), %edi
	callq	_af_addr_size
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_addr_zero_host
	movl	4(%rbx), %r13d
	movq	%r15, %rdi
	callq	_BPTR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_buf_forward_capacity
	leaq	-48(%rbp), %r9
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_recvfrom
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rdi
	cmpq	%r14, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	callq	_bad_address_length
	movl	(%r15), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_UDP,8,3                  ## @PROTO_UDP
	.comm	_SF_USE_IP_PKTINFO,4,2          ## @SF_USE_IP_PKTINFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_socket_read_udp_posix     ; -- Begin function link_socket_read_udp_posix
	.p2align	2
_link_socket_read_udp_posix:            ; @link_socket_read_udp_posix
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	w8, #4
	str	x8, [sp, #8]
	ldr	w0, [x0, #16]
	bl	_af_addr_size
	mov	x20, x0
	mov	x0, x21
	bl	_addr_zero_host
	ldr	w22, [x22, #4]
	mov	x0, x19
	bl	_BPTR
	mov	x23, x0
	mov	x0, x19
	bl	_buf_forward_capacity
	mov	x2, x0
	add	x5, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	w3, #0
	mov	x4, x21
	bl	_recvfrom
	str	w0, [x19]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x8
	mov	x1, x20
	bl	_bad_address_length
	ldr	w0, [x19]
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_UDP,8,3                  ; @PROTO_UDP
	.comm	_SF_USE_IP_PKTINFO,4,2          ; @SF_USE_IP_PKTINFO
.subsections_via_symbols
