	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hysdn_log_poll
_hysdn_log_poll:                        ## @hysdn_log_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_PDE
	movq	%rax, %rcx
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rax), %esi
	orl	%edx, %esi
	andl	(%rbx), %esi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	je	LBB0_5
## %bb.1:
	movq	_card_root@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdx), %rsi
	cmpq	%rcx, 8(%rsi)
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	8(%rbx), %rcx
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	cmovnel	%edx, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_card_root,8,3                  ## @card_root
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_hysdn_log_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hysdn_log_poll
_hysdn_log_poll:                        ; @hysdn_log_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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_PDE
Lloh0:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
	and	w9, w8, w9
Lloh6:
	adrp	x8, _card_root@GOTPAGE
Lloh7:
	ldr	x8, [x8, _card_root@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	w9, w10
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x8, #8]
	ldr	x9, [x1, #8]
	cmp	x9, x0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x2, x20
	bl	_poll_wait
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _POLLIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _POLLRDNORM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _POLLRDNORM@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x8, #0
	csel	w0, wzr, w9, eq
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_card_root,8,3                  ; @card_root
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_hysdn_log_poll
.subsections_via_symbols
