	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Protocol_write_response_or_err
_Protocol_write_response_or_err:        ## @Protocol_write_response_or_err
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_Py_TYPE
	movq	_response_capi@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rcx)
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r13
	testq	%r13, %r13
	je	LBB0_13
## %bb.8:
	movq	%r13, %rdi
	callq	_PyList_GET_SIZE
	testq	%rax, %rax
	jle	LBB0_13
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_PyList_GET_ITEM
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_PyObject_CallFunctionObjArgs
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	callq	_Py_DECREF
	incq	%rbx
	movq	%r13, %rdi
	callq	_PyList_GET_SIZE
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_13:
	leaq	16(%r15), %rbx
	cmpl	$0, 40(%r15)
	je	LBB0_17
## %bb.14:
	movq	(%rbx), %rax
	movq	_GATHER_MAX_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.15:
	movq	24(%r15), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_Py_SIZE
	addq	%r14, %rax
	movq	_GATHER_MAX_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_16
LBB0_17:
	cmpq	$0, 24(%r15)
	je	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	callq	_Gather_flush
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %r13
	movq	8(%r15), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_PyObject_CallFunctionObjArgs
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:
	movq	%rax, %rdi
	callq	_Py_DECREF
	jmp	LBB0_23
LBB0_2:
	movq	_PyExc_ValueError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PyErr_SetString
	movq	%r12, %rdi
	callq	_Protocol_catch_exception
LBB0_3:
	movslq	48(%r15), %rdi
	movslq	16(%r12), %rdx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_PyObject_CallFunctionObjArgs
	movl	$0, %r14d
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_31
## %bb.4:
	movq	%rax, %rbx
	movl	$0, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_Protocol_write_response_or_err
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movl	$0, %r13d
	testq	%rax, %rax
	jne	LBB0_32
	jmp	LBB0_31
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_18:
	xorl	%r13d, %r13d
LBB0_23:
	movq	8(%r15), %rdi
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_PyObject_CallFunctionObjArgs
	testq	%rax, %rax
	je	LBB0_31
## %bb.24:
	movq	%rax, %rdi
	callq	_Py_DECREF
	jmp	LBB0_25
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_16:
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, (%rcx,%rax,8)
	incq	%rax
	movq	%rax, 16(%r15)
	callq	_Py_SIZE
	addq	%rax, 24(%r15)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_25:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.26:
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_PyObject_CallFunctionObjArgs
	testq	%rax, %rax
	je	LBB0_31
## %bb.27:
	movq	%rax, %rdi
	callq	_Py_DECREF
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_KEEP_ALIVE_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.30:
	movq	%r15, %rdi
	callq	_Protocol_close
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_32
LBB0_31:
	xorl	%r15d, %r15d
LBB0_32:
	movq	%r13, %rdi
	callq	_Py_XDECREF
	movq	%r14, %rdi
	callq	_Py_XDECREF
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_Py_XDECREF
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	xorl	%r14d, %r14d
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_response_capi,8,3              ## @response_capi
	.comm	_PyExc_ValueError,4,2           ## @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"View did not return Response instance"

	.comm	_GATHER_MAX_RESP,8,3            ## @GATHER_MAX_RESP
	.comm	_GATHER_MAX_LEN,8,3             ## @GATHER_MAX_LEN
	.comm	_KEEP_ALIVE_FALSE,8,3           ## @KEEP_ALIVE_FALSE
	.no_dead_strip	_Protocol_write_response_or_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Protocol_write_response_or_err
_Protocol_write_response_or_err:        ; @Protocol_write_response_or_err
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	cbz	x2, LBB0_16
; %bb.1:
	mov	x22, x2
	mov	x0, x2
	bl	_Py_TYPE
Lloh0:
	adrp	x8, _response_capi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _response_capi@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cmp	x0, x9
	b.ne	LBB0_15
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	w1, [x21]
	mov	x0, x22
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_19
; %bb.3:
	ldr	x23, [x21, #8]
	cbz	x23, LBB0_8
; %bb.4:
	mov	x0, x23
	bl	_PyList_GET_SIZE
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_PyList_GET_ITEM
	mov	x1, x21
	mov	x2, #0
	bl	_PyObject_CallFunctionObjArgs
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_Py_DECREF
	add	x24, x24, #1
	mov	x0, x23
	bl	_PyList_GET_SIZE
	cmp	x24, x0
	b.lt	LBB0_6
LBB0_8:
	add	x23, x19, #16
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_11
; %bb.9:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _GATHER_MAX_RESP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GATHER_MAX_RESP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	ldr	x24, [x19, #24]
	mov	x0, x20
	bl	_Py_SIZE
Lloh6:
	adrp	x8, _GATHER_MAX_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GATHER_MAX_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x0, x24
	cmp	x9, x8
	b.le	LBB0_26
LBB0_11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_23
; %bb.12:
	mov	x0, x23
	bl	_Gather_flush
	mov	x23, x0
	cbz	x0, LBB0_31
; %bb.13:
	ldr	x0, [x19, #8]
	mov	x1, x23
	mov	x2, #0
	bl	_PyObject_CallFunctionObjArgs
	cbz	x0, LBB0_31
; %bb.14:
	bl	_Py_DECREF
	b	LBB0_24
LBB0_15:
Lloh9:
	adrp	x8, _PyExc_ValueError@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PyExc_ValueError@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PyErr_SetString
	mov	x0, x21
	bl	_Protocol_catch_exception
LBB0_16:
	ldrsw	x0, [x19, #48]
	ldrsw	x2, [x21, #16]
	str	xzr, [sp]
	mov	x1, x21
	bl	_PyObject_CallFunctionObjArgs
	mov	x22, x0
	cbz	x0, LBB0_18
; %bb.17:
	str	wzr, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_Protocol_write_response_or_err
	mov	x20, #0
	mov	x23, #0
	cbnz	x0, LBB0_22
	b	LBB0_21
LBB0_18:
	mov	x20, #0
	b	LBB0_20
LBB0_19:
	mov	x22, #0
LBB0_20:
	mov	x23, #0
LBB0_21:
	mov	x19, #0
LBB0_22:
	mov	x0, x23
	bl	_Py_XDECREF
	mov	x0, x22
	bl	_Py_XDECREF
	mov	x0, x20
	bl	_Py_XDECREF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	mov	x23, #0
LBB0_24:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	x2, #0
	bl	_PyObject_CallFunctionObjArgs
	cbz	x0, LBB0_31
; %bb.25:
	bl	_Py_DECREF
	ldr	x0, [x19]
	cbnz	x0, LBB0_27
	b	LBB0_29
LBB0_26:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #16]
	str	x20, [x8, x9, lsl #3]
	add	x8, x9, #1
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_Py_SIZE
	mov	x23, #0
	mov	x20, #0
	ldr	x8, [x19, #24]
	add	x8, x8, x0
	str	x8, [x19, #24]
	ldr	x0, [x19]
	cbz	x0, LBB0_29
LBB0_27:
	mov	x1, x21
	mov	x2, #0
	bl	_PyObject_CallFunctionObjArgs
	cbz	x0, LBB0_31
; %bb.28:
	bl	_Py_DECREF
LBB0_29:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _KEEP_ALIVE_FALSE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KEEP_ALIVE_FALSE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.30:
	mov	x0, x19
	bl	_Protocol_close
	mov	x22, #0
	cbnz	w0, LBB0_22
	b	LBB0_21
LBB0_31:
	mov	x22, #0
	b	LBB0_21
LBB0_32:
	mov	x22, #0
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_response_capi,8,3              ; @response_capi
	.comm	_PyExc_ValueError,4,2           ; @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"View did not return Response instance"

	.comm	_GATHER_MAX_RESP,8,3            ; @GATHER_MAX_RESP
	.comm	_GATHER_MAX_LEN,8,3             ; @GATHER_MAX_LEN
	.comm	_KEEP_ALIVE_FALSE,8,3           ; @KEEP_ALIVE_FALSE
	.no_dead_strip	_Protocol_write_response_or_err
.subsections_via_symbols
