	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomicio                       ## -- Begin function atomicio
	.p2align	4, 0x90
_atomicio:                              ## @atomicio
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, -56(%rbp)
	cmpq	_read@GOTPCREL(%rip), %rdi
	jne	LBB0_2
## %bb.1:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	testq	%r14, %r14
	je	LBB0_15
## %bb.4:
	movq	_EINTR@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leaq	(%rdx,%rax), %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	subq	%rax, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_poll
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*%rbx
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	%rcx, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_5
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_EPIPE,4,2                      ## @EPIPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomicio                       ; -- Begin function atomicio
	.p2align	2
_atomicio:                              ; @atomicio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #8]
Lloh0:
	adrp	x8, _read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POLLIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh4:
	adrp	x10, _POLLOUT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _POLLOUT@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
	cbz	x3, LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x22, x1
	mov	x23, x0
	mov	x21, #0
Lloh6:
	adrp	x26, _errno@GOTPAGE
Lloh7:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EINTR@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
Lloh10:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
Lloh12:
	adrp	x20, _ENOBUFS@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ENOBUFS@GOTPAGEOFF]
	str	x2, [sp]                        ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x24, x2, x21
	sub	x25, x19, x21
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	blr	x23
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w9, [x28]
	ldr	w10, [x20]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #-1
	bl	_poll
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w0, sxtw
	cmp	x21, x19
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	b.lo	LBB0_2
	b	LBB0_11
LBB0_9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _EPIPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x26]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_EPIPE,4,2                      ; @EPIPE
.subsections_via_symbols
