	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_decode_goaway_payload ## -- Begin function h2o_http2_decode_goaway_payload
	.p2align	4, 0x90
_h2o_http2_decode_goaway_payload:       ## @h2o_http2_decode_goaway_payload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdx)
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %rbx
	cmpl	$7, 8(%rsi)
	jg	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rdx)
	movq	_H2O_HTTP2_ERROR_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	%rdi, %r14
	movq	16(%rbx), %rdi
	callq	_h2o_http2_decode32u
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%eax, (%r14)
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_h2o_http2_decode32u
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	addl	$-8, %eax
	movl	%eax, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	addq	$8, %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_7
LBB0_6:
	movq	$0, 16(%r14)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid stream id in GOAWAY frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
L_.str.1:                               ## @.str.1
	.asciz	"invalid GOAWAY frame"

	.comm	_H2O_HTTP2_ERROR_FRAME_SIZE,4,2 ## @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_goaway_payload ; -- Begin function h2o_http2_decode_goaway_payload
	.p2align	2
_h2o_http2_decode_goaway_payload:       ; @h2o_http2_decode_goaway_payload
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x2]
Lloh2:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	ldr	w8, [x1, #8]
	cmp	w8, #7
	b.gt	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x2]
Lloh7:
	adrp	x8, _H2O_HTTP2_ERROR_FRAME_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_FRAME_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	mov	x19, x0
	ldr	x0, [x20, #16]
	bl	_h2o_http2_decode32u
	and	w8, w0, #0x7fffffff
	str	w8, [x19]
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_h2o_http2_decode32u
	ldr	w8, [x20, #8]
	subs	w8, w8, #8
	stp	w0, w8, [x19, #4]
	mov	w0, #0
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	add	x8, x8, #8
	str	x8, [x19, #16]
	b	LBB0_7
LBB0_6:
	str	xzr, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid stream id in GOAWAY frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
l_.str.1:                               ; @.str.1
	.asciz	"invalid GOAWAY frame"

	.comm	_H2O_HTTP2_ERROR_FRAME_SIZE,4,2 ; @H2O_HTTP2_ERROR_FRAME_SIZE
.subsections_via_symbols
