	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_debug_events_poll
_hid_debug_events_poll:                 ## @hid_debug_events_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	16(%rbx), %rsi
	addq	$4, %rsi
	callq	_poll_wait
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_POLLERR@GOTPCREL(%rip), %rcx
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.no_dead_strip	_hid_debug_events_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_debug_events_poll
_hid_debug_events_poll:                 ; @hid_debug_events_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]
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	bl	_poll_wait
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _POLLIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _POLLERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _POLLHUP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _POLLHUP@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.no_dead_strip	_hid_debug_events_poll
.subsections_via_symbols
