	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_data
_send_data:                             ## @send_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_calc_max_payload_size
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_H2O_HTTP2_FRAME_HEADER_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rsi
	movq	%r12, %rdi
	callq	_h2o_buffer_reserve
	addq	(%r13), %rax
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdx
	shlq	$4, %rdx
	addq	%rbx, %rdx
	movq	(%r15), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	movq	$0, (%r15)
	movl	$0, %esi
	decq	%r14
	jne	LBB0_4
## %bb.6:
	xorl	%r14d, %r14d
	movq	%rdx, %rbx
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r13, %r13
	je	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rsi
	subq	(%r15), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_sz_min
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_h2o_iovec_init
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	subq	%r12, %r13
	movq	(%r15), %rsi
	addq	%r12, %rsi
	movq	%rsi, (%r15)
	movq	%r14, %rdx
	shlq	$4, %rdx
	addq	%rbx, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, (%rbx)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	addq	$16, %rbx
	movq	$0, (%r15)
	movl	$0, %esi
	decq	%r14
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	movq	%rdx, %rbx
	jmp	LBB0_16
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	subq	%r13, %rcx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_20
## %bb.19:
	movl	%r15d, %edi
	movq	%rcx, %r13
	callq	_h2o_send_state_is_in_progress
	movq	%r13, %rcx
	testl	%eax, %eax
	jne	LBB0_23
LBB0_20:
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_22:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r15d, %r8d
	callq	_commit_data_header
	jmp	LBB0_23
LBB0_11:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_FRAME_HEADER_SIZE,8,3 ## @H2O_HTTP2_FRAME_HEADER_SIZE
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_data
_send_data:                             ; @send_data
	.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	x20, x5
	mov	x25, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_calc_max_payload_size
	cbz	x0, LBB0_18
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x26, _H2O_HTTP2_FRAME_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _H2O_HTTP2_FRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x1, x8, x0
	mov	x0, x21
	bl	_h2o_buffer_reserve
	ldr	x8, [x26]
	add	x26, x8, x0
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x23, LBB0_6
; %bb.2:
	add	x8, x19, x23, lsl #4
	ldr	x9, [x25]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	cmp	x10, x9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	add	x19, x19, #16
	str	xzr, [x25]
	subs	x23, x23, #1
	b.ne	LBB0_3
; %bb.5:
	mov	x23, x9
	mov	x19, x8
LBB0_6:
	mov	x27, x24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x27, LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	x23, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	sub	x1, x8, x9
	mov	x0, x27
	bl	_sz_min
	mov	x28, x0
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	mov	x0, x26
	mov	x1, x28
	bl	_h2o_iovec_init
	mov	x2, x0
	ldr	x3, [x25]
	mov	x0, x19
	mov	x1, x22
	blr	x20
	cbz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x28, x26
	sub	x27, x27, x28
	ldr	x8, [x25]
	add	x9, x8, x28
	str	x9, [x25]
	add	x8, x19, x23, lsl #4
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x19]
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x9, #0
	add	x19, x19, #16
	str	xzr, [x25]
	subs	x23, x23, #1
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x9
	mov	x19, x8
	b	LBB0_7
LBB0_14:
	subs	x24, x24, x27
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_h2o_send_state_is_in_progress
	cbnz	w0, LBB0_18
LBB0_16:
Lloh2:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x23, #0
	csel	w4, w20, w8, eq
	mov	x0, x21
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	bl	_commit_data_header
	b	LBB0_18
LBB0_17:
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_FRAME_HEADER_SIZE,8,3 ; @H2O_HTTP2_FRAME_HEADER_SIZE
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_send_data
.subsections_via_symbols
