	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_decode_frame         ## -- Begin function h2o_http2_decode_frame
	.p2align	4, 0x90
_h2o_http2_decode_frame:                ## @h2o_http2_decode_frame
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_H2O_HTTP2_FRAME_HEADER_SIZE@GOTPCREL(%rip), %r13
	cmpq	%rdx, (%r13)
	ja	LBB0_4
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_h2o_http2_decode24u
	movq	%rax, (%rbx)
	movl	12(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%r14), %rdi
	callq	_h2o_http2_decode32u
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rax
	cmpq	%r12, %rax
	jbe	LBB0_3
## %bb.2:
	movq	_H2O_HTTP2_ERROR_FRAME_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	(%r13), %rcx
	addq	%rcx, %rax
	cmpq	%r15, %rax
	jbe	LBB0_7
LBB0_4:
	movq	_H2O_HTTP2_ERROR_INCOMPLETE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	(%r14,%rcx,4), %rcx
	movq	%rcx, 16(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_FRAME_HEADER_SIZE,8,3 ## @H2O_HTTP2_FRAME_HEADER_SIZE
	.comm	_H2O_HTTP2_ERROR_INCOMPLETE,8,3 ## @H2O_HTTP2_ERROR_INCOMPLETE
	.comm	_H2O_HTTP2_ERROR_FRAME_SIZE,8,3 ## @H2O_HTTP2_ERROR_FRAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_decode_frame         ; -- Begin function h2o_http2_decode_frame
	.p2align	2
_h2o_http2_decode_frame:                ; @h2o_http2_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _H2O_HTTP2_FRAME_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _H2O_HTTP2_FRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x2
	b.hi	LBB0_4
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_h2o_http2_decode24u
	str	x0, [x19]
	ldr	w8, [x20, #12]
	str	w8, [x19, #28]
	ldr	w8, [x20, #16]
	str	w8, [x19, #24]
	add	x0, x20, #20
	bl	_h2o_http2_decode32u
	and	w8, w0, #0x7fffffff
	str	w8, [x19, #8]
	ldr	x9, [x19]
	cmp	x9, x22
	b.ls	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _H2O_HTTP2_ERROR_FRAME_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_FRAME_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x23]
	add	x0, x8, x9
	cmp	x0, x21
	b.ls	LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, _H2O_HTTP2_ERROR_INCOMPLETE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_INCOMPLETE@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	x8, x20, x8, lsl #2
	str	x8, [x19, #16]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_FRAME_HEADER_SIZE,8,3 ; @H2O_HTTP2_FRAME_HEADER_SIZE
	.comm	_H2O_HTTP2_ERROR_INCOMPLETE,8,3 ; @H2O_HTTP2_ERROR_INCOMPLETE
	.comm	_H2O_HTTP2_ERROR_FRAME_SIZE,8,3 ; @H2O_HTTP2_ERROR_FRAME_SIZE
.subsections_via_symbols
