	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function requests_status_per_thread
_requests_status_per_thread:            ## @requests_status_per_thread
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_h2o_buffer_init
	movq	(%rbx), %rax
	movq	_collect_req_status@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*16(%rax)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rax
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rax)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_7
## %bb.6:
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_h2o_buffer_consume
	movq	8(%r14), %rsi
LBB0_7:
	movq	16(%r14), %rdi
	movq	-48(%rbp), %rax
	addq	(%rax), %rsi
	callq	_h2o_mem_realloc
	movq	%rax, 16(%r14)
	addq	8(%r14), %rax
	movq	-48(%rbp), %rcx
	movl	8(%rcx), %esi
	movq	(%rcx), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	addq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_h2o_buffer_dispose
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.comm	_collect_req_status,4,2         ## @collect_req_status
	.no_dead_strip	_requests_status_per_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function requests_status_per_thread
_requests_status_per_thread:            ; @requests_status_per_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0, #24]
	stp	x8, xzr, [sp]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	mov	x0, sp
	bl	_h2o_buffer_init
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
Lloh2:
	adrp	x21, _collect_req_status@GOTPAGE
Lloh3:
	ldr	x21, [x21, _collect_req_status@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x8, [sp]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.6:
	mov	x0, sp
	mov	w1, #1
	bl	_h2o_buffer_consume
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	x0, [x19, #16]
	ldr	x9, [sp]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_h2o_mem_realloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x0, x8, x0
	ldr	x8, [sp]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	bl	_memcpy
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_pthread_mutex_unlock
LBB0_8:
	mov	x0, sp
	bl	_h2o_buffer_dispose
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.comm	_collect_req_status,4,2         ; @collect_req_status
	.no_dead_strip	_requests_status_per_thread
.subsections_via_symbols
