	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datagram_poll                  ## -- Begin function datagram_poll
	.p2align	4, 0x90
_datagram_poll:                         ## @datagram_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), %r14
	movl	40(%r14), %esi
	callq	_sock_poll_wait
	cmpq	$0, 32(%r14)
	jne	LBB0_2
## %bb.1:
	leaq	28(%r14), %rdi
	callq	_skb_queue_empty
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movl	(%r14), %eax
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	andl	%eax, %ebx
	je	LBB0_5
## %bb.4:
	movq	_POLLRDHUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_5:
	movq	_SHUTDOWN_MASK@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	_POLLHUP@GOTPCREL(%rip), %r15
	cmpl	(%rsi), %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edx
LBB0_7:
	orl	%edx, %ecx
	orl	%ecx, %ebx
	leaq	24(%r14), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %eax
	testl	%eax, (%r14)
	je	LBB0_10
LBB0_9:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_connection_based
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	8(%r14), %rax
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %ecx
LBB0_13:
	orl	%ecx, %ebx
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	callq	_sock_writeable
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movq	_POLLWRBAND@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_SOCK_ASYNC_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	callq	_set_bit
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_POLLRDHUP,4,2                  ## @POLLRDHUP
	.comm	_SHUTDOWN_MASK,4,2              ## @SHUTDOWN_MASK
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
	.comm	_TCP_SYN_SENT,8,3               ## @TCP_SYN_SENT
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ## @POLLWRBAND
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ## @SOCK_ASYNC_NOSPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datagram_poll                  ; -- Begin function datagram_poll
	.p2align	2
_datagram_poll:                         ; @datagram_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
	ldr	x19, [x1]
	ldr	w1, [x19, #40]
	bl	_sock_poll_wait
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _POLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_2:
	add	x0, x19, #28
	bl	_skb_queue_empty
	cbz	w0, LBB0_1
; %bb.3:
	mov	w8, #0
LBB0_4:
	mov	x0, x19
	ldr	w9, [x0], #24
Lloh3:
	adrp	x22, _RCV_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RCV_SHUTDOWN@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh5:
	adrp	x11, _POLLRDHUP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _POLLRDHUP@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh8:
	adrp	x10, _SHUTDOWN_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SHUTDOWN_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x21, _POLLHUP@GOTPAGE
Lloh12:
	ldr	x21, [x21, _POLLHUP@GOTPAGEOFF]
	ldr	w11, [x21]
	cmp	w9, w10
	csel	w9, w11, wzr, eq
	orr	w20, w8, w9
	bl	_skb_queue_empty
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _POLLIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_7:
	mov	x0, x19
	bl	_connection_based
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _TCP_CLOSE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TCP_CLOSE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w10, [x21]
	cmp	x8, x9
	csel	w9, w10, wzr, eq
	orr	w20, w9, w20
Lloh22:
	adrp	x9, _TCP_SYN_SENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TCP_SYN_SENT@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_sock_writeable
	cbz	x0, LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _POLLWRBAND@GOTPAGE
Lloh32:
	ldr	x10, [x10, _POLLWRBAND@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w20, w8, w10
	b	LBB0_12
LBB0_11:
Lloh34:
	adrp	x8, _SOCK_ASYNC_NOSPACE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SOCK_ASYNC_NOSPACE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_set_bit
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_POLLRDHUP,4,2                  ; @POLLRDHUP
	.comm	_SHUTDOWN_MASK,4,2              ; @SHUTDOWN_MASK
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
	.comm	_TCP_SYN_SENT,8,3               ; @TCP_SYN_SENT
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ; @POLLWRBAND
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ; @SOCK_ASYNC_NOSPACE
.subsections_via_symbols
