	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iucv_sock_poll                 ## -- Begin function iucv_sock_poll
	.p2align	4, 0x90
_iucv_sock_poll:                        ## @iucv_sock_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
	movq	(%r14), %rax
	movq	_IUCV_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.19:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iucv_accept_poll               ## TAILCALL
LBB0_1:
	cmpq	$0, 32(%r14)
	je	LBB0_2
LBB0_3:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_4
LBB0_2:
	leaq	28(%r14), %rdi
	callq	_skb_queue_empty
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	8(%r14), %eax
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	andl	%eax, %ebx
	je	LBB0_6
## %bb.5:
	movq	_POLLRDHUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_6:
	movq	_SHUTDOWN_MASK@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	_POLLHUP@GOTPCREL(%rip), %r15
	cmpl	(%rsi), %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %edx
LBB0_8:
	orl	%edx, %ecx
	orl	%ecx, %ebx
	leaq	24(%r14), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	(%r12), %eax
	testl	%eax, 8(%r14)
	je	LBB0_10
LBB0_11:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	(%r14), %rsi
	movq	_IUCV_CLOSED@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpq	(%rdi), %rsi
	jne	LBB0_14
## %bb.13:
	movl	(%r15), %edx
LBB0_14:
	movq	_IUCV_DISCONN@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	cmovel	%eax, %ecx
	orl	%ecx, %ebx
	orl	%edx, %ebx
	movq	%r14, %rdi
	callq	_sock_writeable
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	callq	_iucv_below_msglim
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	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_18
LBB0_17:
	movq	_SOCK_ASYNC_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	callq	_set_bit
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IUCV_LISTEN,8,3                ## @IUCV_LISTEN
	.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	_IUCV_CLOSED,8,3                ## @IUCV_CLOSED
	.comm	_IUCV_DISCONN,8,3               ## @IUCV_DISCONN
	.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	_iucv_sock_poll                 ; -- Begin function iucv_sock_poll
	.p2align	2
_iucv_sock_poll:                        ; @iucv_sock_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]
Lloh0:
	adrp	x9, _IUCV_LISTEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IUCV_LISTEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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
	b	_iucv_accept_poll
LBB0_2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _POLLERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_4:
	add	x0, x19, #28
	bl	_skb_queue_empty
	cbz	w0, LBB0_3
; %bb.5:
	mov	w8, #0
LBB0_6:
Lloh6:
	adrp	x22, _RCV_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _RCV_SHUTDOWN@GOTPAGEOFF]
	ldr	w9, [x19, #8]
	ldr	w10, [x22]
Lloh8:
	adrp	x11, _POLLRDHUP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _POLLRDHUP@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh11:
	adrp	x10, _SHUTDOWN_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SHUTDOWN_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x20, _POLLHUP@GOTPAGE
Lloh14:
	ldr	x20, [x20, _POLLHUP@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	ldr	w11, [x20]
	cmp	w9, w10
	csel	w9, w11, wzr, eq
	orr	w21, w8, w9
	add	x0, x19, #24
	bl	_skb_queue_empty
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _POLLIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w10, w8, w21
	orr	w21, w10, w9
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _POLLIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
LBB0_10:
Lloh25:
	adrp	x9, _IUCV_CLOSED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IUCV_CLOSED@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh27:
	ldr	x9, [x9]
	ldr	w11, [x20]
	cmp	x10, x9
	csel	w9, w11, wzr, eq
	orr	w9, w9, w21
Lloh28:
	adrp	x11, _IUCV_DISCONN@GOTPAGE
Lloh29:
	ldr	x11, [x11, _IUCV_DISCONN@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w8, w8, wzr, eq
	orr	w20, w9, w8
	mov	x0, x19
	bl	_sock_writeable
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_iucv_below_msglim
	cbz	x0, LBB0_13
; %bb.12:
Lloh31:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh35:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _POLLWRBAND@GOTPAGE
Lloh38:
	ldr	x10, [x10, _POLLWRBAND@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w20, w8, w10
	b	LBB0_14
LBB0_13:
Lloh40:
	adrp	x8, _SOCK_ASYNC_NOSPACE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SOCK_ASYNC_NOSPACE@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_set_bit
LBB0_14:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IUCV_LISTEN,8,3                ; @IUCV_LISTEN
	.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	_IUCV_CLOSED,8,3                ; @IUCV_CLOSED
	.comm	_IUCV_DISCONN,8,3               ; @IUCV_DISCONN
	.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
