	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_poll
_dm_poll:                               ## @dm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	(%rdi), %rbx
	movq	_dm_global_eventq@GOTPCREL(%rip), %rsi
	callq	_poll_wait
	movq	_dm_global_event_nr@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	movq	%rax, %rcx
	subl	(%rbx), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_global_eventq,4,2           ## @dm_global_eventq
	.comm	_dm_global_event_nr,4,2         ## @dm_global_event_nr
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.no_dead_strip	_dm_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_poll
_dm_poll:                               ; @dm_poll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x1, _dm_global_eventq@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dm_global_eventq@GOTPAGEOFF]
	bl	_poll_wait
Lloh2:
	adrp	x0, _dm_global_event_nr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dm_global_event_nr@GOTPAGEOFF]
	bl	_atomic_read
	ldr	w8, [x19]
	sub	w8, w0, w8
Lloh4:
	adrp	x9, _EPOLLIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EPOLLIN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, wzr, gt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_global_eventq,4,2           ; @dm_global_eventq
	.comm	_dm_global_event_nr,4,2         ; @dm_global_event_nr
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.no_dead_strip	_dm_poll
.subsections_via_symbols
