	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_ctrl_poll
_irnet_ctrl_poll:                       ## @irnet_ctrl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CTRL_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DENTER
	movq	_irnet_events@GOTPCREL(%rip), %r13
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	cmpq	(%r13), %rax
	cmovnel	%edx, %ebx
	orl	%ecx, %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_DEXIT
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_TRACE,4,2                 ## @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(ap=0x%p)\n"

	.comm	_irnet_events,16,3              ## @irnet_events
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
L_.str.1:                               ## @.str.1
	.asciz	" - mask=0x%X\n"

	.no_dead_strip	_irnet_ctrl_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_ctrl_poll
_irnet_ctrl_poll:                       ; @irnet_ctrl_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _CTRL_TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CTRL_TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DENTER
Lloh4:
	adrp	x23, _irnet_events@GOTPAGE
Lloh5:
	ldr	x23, [x23, _irnet_events@GOTPAGEOFF]
	add	x1, x23, #8
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
Lloh6:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x21]
	ldr	x10, [x23]
Lloh12:
	adrp	x11, _POLLIN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _POLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _POLLRDNORM@GOTPAGE
Lloh16:
	ldr	x12, [x12, _POLLRDNORM@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w19, w8, w9
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_DEXIT
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_TRACE,4,2                 ; @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(ap=0x%p)\n"

	.comm	_irnet_events,16,3              ; @irnet_events
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
l_.str.1:                               ; @.str.1
	.asciz	" - mask=0x%X\n"

	.no_dead_strip	_irnet_ctrl_poll
.subsections_via_symbols
