	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function random_poll
_random_poll:                           ## @random_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	_random_read_wait@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	_random_write_wait@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	_input_pool@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_random_read_wakeup_thresh@GOTPCREL(%rip), %rax
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	xorl	%edx, %edx
	cmpq	(%rax), %rcx
	cmovll	%edx, %esi
	movq	_random_write_wakeup_thresh@GOTPCREL(%rip), %rdi
	movq	_POLLOUT@GOTPCREL(%rip), %rbx
	movq	_POLLWRNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rbx), %eax
	cmpq	(%rdi), %rcx
	cmovgel	%edx, %eax
	orl	%esi, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_random_read_wait,4,2           ## @random_read_wait
	.comm	_random_write_wait,4,2          ## @random_write_wait
	.comm	_input_pool,8,3                 ## @input_pool
	.comm	_random_read_wakeup_thresh,8,3  ## @random_read_wakeup_thresh
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_random_write_wakeup_thresh,8,3 ## @random_write_wakeup_thresh
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.no_dead_strip	_random_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function random_poll
_random_poll:                           ; @random_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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, _random_read_wait@GOTPAGE
Lloh1:
	ldr	x1, [x1, _random_read_wait@GOTPAGEOFF]
	mov	x2, x19
	bl	_poll_wait
Lloh2:
	adrp	x1, _random_write_wait@GOTPAGE
Lloh3:
	ldr	x1, [x1, _random_write_wait@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
Lloh4:
	adrp	x8, _input_pool@GOTPAGE
Lloh5:
	ldr	x8, [x8, _input_pool@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _random_read_wakeup_thresh@GOTPAGE
Lloh8:
	ldr	x9, [x9, _random_read_wakeup_thresh@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _POLLIN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _POLLIN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _POLLRDNORM@GOTPAGE
Lloh14:
	ldr	x11, [x11, _POLLRDNORM@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x8, x9
	csel	w9, wzr, w10, lt
Lloh16:
	adrp	x10, _random_write_wakeup_thresh@GOTPAGE
Lloh17:
	ldr	x10, [x10, _random_write_wakeup_thresh@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _POLLOUT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _POLLOUT@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
Lloh22:
	adrp	x12, _POLLWRNORM@GOTPAGE
Lloh23:
	ldr	x12, [x12, _POLLWRNORM@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x8, x10
	csel	w8, w11, wzr, lt
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_random_read_wait,4,2           ; @random_read_wait
	.comm	_random_write_wait,4,2          ; @random_write_wait
	.comm	_input_pool,8,3                 ; @input_pool
	.comm	_random_read_wakeup_thresh,8,3  ; @random_read_wakeup_thresh
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_random_write_wakeup_thresh,8,3 ; @random_write_wakeup_thresh
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.no_dead_strip	_random_poll
.subsections_via_symbols
