	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function um_idi_poll
_um_idi_poll:                           ## @um_idi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	callq	_diva_um_id_get_os_context
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.4:
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	cmpq	$0, (%rbx)
	je	LBB0_5
LBB0_1:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_diva_user_mode_idi_ind_ready
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.7:
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_um_idi_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function um_idi_poll
_um_idi_poll:                           ; @um_idi_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	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x1
	bl	_diva_um_id_get_os_context
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
; %bb.3:
	add	x1, x21, #8
	mov	x0, x19
	mov	x2, x20
	bl	_poll_wait
	ldr	x8, [x21]
	cbz	x8, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _POLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_diva_user_mode_idi_ind_ready
	cbz	w0, LBB0_5
; %bb.7:
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.8:
Lloh3:
	adrp	x8, _POLLIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_um_idi_poll
.subsections_via_symbols
