	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomiciov6                     ## -- Begin function atomiciov6
	.p2align	4, 0x90
_atomiciov6:                            ## @atomiciov6
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IOV_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r8d, %r8d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	js	LBB0_35
## %bb.1:
	cmpl	%ebx, %r12d
	jl	LBB0_35
## %bb.2:
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movl	%r13d, %r12d
	movl	%r13d, -56(%rbp)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	cmpq	_readv@GOTPCREL(%rip), %r13
	jne	LBB0_3
## %bb.4:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	xorl	%r8d, %r8d
	testl	%ebx, %ebx
	je	LBB0_36
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	cmpq	$0, (%r15)
	jle	LBB0_36
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=2
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_poll
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$0, (%r15)
	jle	LBB0_20
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	*%r13
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	je	LBB0_34
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rsi
	movq	%rsi, %rax
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	(%r15), %rcx
	jb	LBB0_11
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	addq	$16, %r15
	leal	-1(%rbx), %edx
	movq	%rcx, %rax
	cmpl	$1, %ebx
	movl	%edx, %ebx
	jg	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_30
	jmp	LBB0_25
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_29
	jmp	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	xorl	%eax, %eax
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%rax, 8(%r15)
	subq	%rax, %rcx
	movq	%rcx, (%r15)
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%rsi, %r8
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r8, %r14
	callq	*%rax
	movq	%r14, %r8
	cmpl	$-1, %eax
	je	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	jg	LBB0_6
	jmp	LBB0_36
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_34:
	movq	_EPIPE@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movq	%r8, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, %r8
	jmp	LBB0_36
LBB0_17:
	xorl	%r8d, %r8d
	jmp	LBB0_36
LBB0_25:
	xorl	%r8d, %r8d
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_32:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IOV_MAX,4,2                    ## @IOV_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomiciov6                     ; -- Begin function atomiciov6
	.p2align	2
_atomiciov6:                            ; @atomiciov6
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _IOV_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOV_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	mov	x19, #0
Lloh8:
	adrp	x26, _EINVAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	tbnz	w3, #31, LBB0_29
; %bb.1:
	cmp	w12, w24
	b.lt	LBB0_29
; %bb.2:
	mov	w8, w24
	lsl	x8, x8, #4
	mov	x0, x25
	mov	x1, x2
	mov	x2, x8
	bl	_memcpy
	stur	w22, [x29, #-96]
Lloh10:
	adrp	x8, _readv@GOTPAGE
Lloh11:
	ldr	x8, [x8, _readv@GOTPAGEOFF]
Lloh12:
	adrp	x9, _POLLIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh14:
	adrp	x10, _POLLOUT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _POLLOUT@GOTPAGEOFF]
	cmp	x23, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	stur	w8, [x29, #-92]
	cbz	w24, LBB0_27
; %bb.3:
	stp	x20, x21, [x29, #-112]          ; 16-byte Folded Spill
	mov	x19, #0
Lloh16:
	adrp	x28, _errno@GOTPAGE
Lloh17:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh18:
	adrp	x27, _EINTR@GOTPAGE
Lloh19:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
Lloh20:
	adrp	x20, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x20, [x20, _EAGAIN@GOTPAGEOFF]
Lloh22:
	adrp	x21, _EWOULDBLOCK@GOTPAGE
Lloh23:
	ldr	x21, [x21, _EWOULDBLOCK@GOTPAGEOFF]
Lloh24:
	adrp	x26, _EFAULT@GOTPAGE
Lloh25:
	ldr	x26, [x26, _EFAULT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x25]
	cmp	x8, #1
	b.ge	LBB0_7
	b	LBB0_30
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	sub	x0, x29, #96
	mov	w1, #1
	mov	w2, #-1
	bl	_poll
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x25]
	cmp	x8, #0
	b.le	LBB0_30
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	blr	x23
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x28]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_5
	b	LBB0_27
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x1, w0
	subs	w8, w24, #1
	b.lt	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x25, w8, uxtw #4
	add	x9, x8, #16
	mov	x8, x1
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x25]
	subs	x10, x8, x10
	b.lo	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x25, x25, #16
	mov	x8, x10
	subs	w24, w24, #1
	b.gt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x10, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	x25, x9
	b	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x1
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #1
	b.lt	LBB0_32
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.ls	LBB0_23
	b	LBB0_32
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w24, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	x9, [x25]
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x25, #8]
	add	x10, x10, x8
	sub	x8, x9, x8
	stp	x8, x10, [x25]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cbz	x8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_33
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #0
	b.gt	LBB0_4
	b	LBB0_30
LBB0_27:
	mov	x19, #0
	b	LBB0_30
LBB0_28:
Lloh26:
	adrp	x26, _EPIPE@GOTPAGE
Lloh27:
	ldr	x26, [x26, _EPIPE@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x26]
Lloh28:
	adrp	x9, _errno@GOTPAGE
Lloh29:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
LBB0_30:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.31:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	x19, #0
	b	LBB0_29
LBB0_33:
	mov	x26, x27
	b	LBB0_29
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IOV_MAX,4,2                    ; @IOV_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
