	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_status
_update_status:                         ## @update_status
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_30
## %bb.1:
	leaq	-64(%rbp), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_free
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_30
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movq	16(%r13), %rax
	movq	%rax, (%r14)
	movq	%r13, 16(%r13)
	movq	_H2O_SOCKET_FLAG_IS_DISPOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -56(%rbp)
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_h2o_socket_is_reading
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
	movl	(%r13), %ecx
	movq	_H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	$1, %dl
	testl	%ecx, %eax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %eax
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movq	_H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%ecx
	andl	%ecx, %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r13)
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %dl
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_h2o_socket_is_writing
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
	movl	(%r13), %eax
	movq	_H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_32
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %eax
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movq	_H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_32
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%ecx
	andl	%ecx, %eax
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r13)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_29
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %ecx
	movq	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EPOLL_CTL_MOD@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EPOLL_CTL_DEL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setne	%dil
	callq	_assert
	movq	_EPOLL_CTL_ADD@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ebx
	movq	%r13, -64(%rbp)
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r14), %edi
	movl	4(%r13), %edx
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_epoll_ctl
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	(%r12), %rcx
	movq	_errno@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EPOLL_CTL_DEL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	andl	(%r13), %eax
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	(%r13), %eax
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r13)
	jmp	LBB0_29
LBB0_30:
	movq	%r14, 8(%r14)
	xorl	%eax, %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	$-1, %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SOCKET_FLAG_IS_DISPOSED,4,2 ## @H2O_SOCKET_FLAG_IS_DISPOSED
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_H2O_SOCKET_FLAG_IS_POLLED_FOR_READ,4,2 ## @H2O_SOCKET_FLAG_IS_POLLED_FOR_READ
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE,4,2 ## @H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE
	.comm	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED,4,2 ## @H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED
	.comm	_EPOLL_CTL_MOD,4,2              ## @EPOLL_CTL_MOD
	.comm	_EPOLL_CTL_DEL,4,2              ## @EPOLL_CTL_DEL
	.comm	_EPOLL_CTL_ADD,4,2              ## @EPOLL_CTL_ADD
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_update_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_status
_update_status:                         ; @update_status
	.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
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_29
; %bb.1:
Lloh0:
	adrp	x22, _H2O_SOCKET_FLAG_IS_DISPOSED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H2O_SOCKET_FLAG_IS_DISPOSED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPAGE
Lloh5:
	ldr	x25, [x25, _H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPAGEOFF]
Lloh6:
	adrp	x27, _errno@GOTPAGE
Lloh7:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x28, _EINTR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
Lloh10:
	adrp	x26, _EPOLL_CTL_DEL@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EPOLL_CTL_DEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x19]
	cbz	x20, LBB0_29
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	ldr	x8, [x20, #16]
	str	x8, [x19]
	str	x20, [x20, #16]
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #8]
	add	x21, x20, #8
	mov	x0, x21
	bl	_h2o_socket_is_reading
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, w8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _H2O_SOCKET_FLAG_IS_POLLED_FOR_READ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	bic	w8, w8, w9
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	str	w8, [x20]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_h2o_socket_is_writing
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, w8
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	bic	w8, w8, w9
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x20]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w23, #0, LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x25]
	ldr	w9, [sp, #8]
	tst	w10, w8
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
Lloh24:
	adrp	x8, _EPOLL_CTL_MOD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPOLL_CTL_MOD@GOTPAGEOFF]
	csel	x8, x26, x8, eq
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	cset	w0, ne
	bl	_assert
Lloh26:
	adrp	x8, _EPOLL_CTL_ADD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPOLL_CTL_ADD@GOTPAGEOFF]
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x8]
	str	x20, [sp]
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #16]
	ldr	w2, [x20, #4]
	mov	x3, sp
	mov	x1, x21
	bl	_epoll_ctl
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	w0, #0
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	ldr	w8, [x25]
	cmp	w21, w9
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	orr	w8, w9, w8
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x20]
	b	LBB0_3
LBB0_29:
	mov	w0, #0
	str	x19, [x19, #8]
LBB0_30:
	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
LBB0_31:
	mov	w0, #-1
	b	LBB0_30
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SOCKET_FLAG_IS_DISPOSED,4,2 ; @H2O_SOCKET_FLAG_IS_DISPOSED
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_H2O_SOCKET_FLAG_IS_POLLED_FOR_READ,4,2 ; @H2O_SOCKET_FLAG_IS_POLLED_FOR_READ
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE,4,2 ; @H2O_SOCKET_FLAG_IS_POLLED_FOR_WRITE
	.comm	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED,4,2 ; @H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED
	.comm	_EPOLL_CTL_MOD,4,2              ; @EPOLL_CTL_MOD
	.comm	_EPOLL_CTL_DEL,4,2              ; @EPOLL_CTL_DEL
	.comm	_EPOLL_CTL_ADD,4,2              ; @EPOLL_CTL_ADD
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_update_status
.subsections_via_symbols
