	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eventfd_poll
_eventfd_poll:                          ## @eventfd_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_lock
	movq	8(%r14), %rcx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testq	%rcx, %rcx
	jle	LBB0_2
## %bb.1:
	movq	_POLL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_UINT64_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jge	LBB0_4
## %bb.3:
	movq	_POLL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLL_READ,4,2                  ## @POLL_READ
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.comm	_POLL_WRITE,4,2                 ## @POLL_WRITE
	.no_dead_strip	_eventfd_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eventfd_poll
_eventfd_poll:                          ; @eventfd_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	x19, x0
	bl	_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _POLL_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POLL_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w9, w9, wzr, gt
Lloh3:
	adrp	x10, _UINT64_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UINT64_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	sub	x10, x10, #1
Lloh6:
	adrp	x11, _POLL_WRITE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _POLL_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x8, x10
	csel	w8, w11, wzr, lt
	orr	w20, w8, w9
	mov	x0, x19
	bl	_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POLL_READ,4,2                  ; @POLL_READ
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.comm	_POLL_WRITE,4,2                 ; @POLL_WRITE
	.no_dead_strip	_eventfd_poll
.subsections_via_symbols
