	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_poll                       ## -- Begin function udp_poll
	.p2align	4, 0x90
_udp_poll:                              ## @udp_poll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_datagram_poll
	movl	%eax, %r14d
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_inet_sock_cpu_or_flow_record
	movq	_POLLRDNORM@GOTPCREL(%rip), %rbx
	testl	%r14d, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.2:
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_first_packet_length
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_POLLIN,4,2                     ## @POLLIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_poll                       ; -- Begin function udp_poll
	.p2align	2
_udp_poll:                              ; @udp_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_datagram_poll
	mov	x19, x0
	ldr	x20, [x20]
	mov	x0, x20
	bl	_inet_sock_cpu_or_flow_record
Lloh0:
	adrp	x22, _POLLRDNORM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POLLRDNORM@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x21]
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.2:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _RCV_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_first_packet_length
	cbnz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _POLLIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	bic	w19, w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_POLLIN,4,2                     ; @POLLIN
.subsections_via_symbols
