	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_flatten
_check_flatten:                         ## @check_flatten
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_h2o_buffer_init
	movq	_H2O_HTTP2_SETTINGS_DEFAULT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	8(%rbx), %r8d
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movq	_SIZE_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_h2o_hpack_flatten_response
	addq	$32, %rsp
	movq	-64(%rbp), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movl	(%r14), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %r8
	callq	_h2o_http2_decode_frame
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_ok
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_h2o_memis
	movl	%eax, %edi
	callq	_ok
	movq	%r15, %rdi
	callq	_h2o_buffer_dispose
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.comm	_H2O_HTTP2_SETTINGS_DEFAULT,4,2 ## @H2O_HTTP2_SETTINGS_DEFAULT
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.no_dead_strip	_check_flatten
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_flatten
_check_flatten:                         ; @check_flatten
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_h2o_buffer_init
Lloh2:
	adrp	x23, _H2O_HTTP2_SETTINGS_DEFAULT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _H2O_HTTP2_SETTINGS_DEFAULT@GOTPAGEOFF]
	ldr	w3, [x23]
	ldp	w5, w4, [x21, #4]
	ldr	w6, [x21]
Lloh4:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #1
	mov	x7, #0
	bl	_h2o_hpack_flatten_response
	ldr	x8, [sp, #24]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	ldr	w3, [x23]
	add	x0, sp, #16
	add	x4, sp, #8
	bl	_h2o_http2_decode_frame
	cmp	x0, #0
	cset	w0, gt
	bl	_ok
	ldp	w1, w0, [sp, #16]
	mov	x2, x20
	mov	x3, x19
	bl	_h2o_memis
	bl	_ok
	add	x0, sp, #24
	bl	_h2o_buffer_dispose
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.comm	_H2O_HTTP2_SETTINGS_DEFAULT,4,2 ; @H2O_HTTP2_SETTINGS_DEFAULT
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.no_dead_strip	_check_flatten
.subsections_via_symbols
