	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_socket_export              ## -- Begin function h2o_socket_export
	.p2align	4, 0x90
_h2o_socket_export:                     ## @h2o_socket_export
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_h2o_socket_is_writing
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_do_export
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	movq	%rdi, 8(%r14)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%rbx)
	leaq	_h2o_socket_export.nonpooling_prototype(%rip), %rsi
	callq	_h2o_buffer_set_prototype
LBB0_4:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	leaq	_h2o_socket_export.nonpooling_prototype(%rip), %rsi
	movq	%r14, %rdi
	callq	_h2o_buffer_set_prototype
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_h2o_buffer_init
	movq	%rbx, %rdi
	callq	_h2o_socket_close
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_h2o_socket_export.nonpooling_prototype,4,2 ## @h2o_socket_export.nonpooling_prototype
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_socket_export              ; -- Begin function h2o_socket_export
	.p2align	2
_h2o_socket_export:                     ; @h2o_socket_export
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_h2o_socket_is_writing
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_do_export
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	str	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
Lloh0:
	adrp	x1, _h2o_socket_export.nonpooling_prototype@PAGE
Lloh1:
	add	x1, x1, _h2o_socket_export.nonpooling_prototype@PAGEOFF
	bl	_h2o_buffer_set_prototype
LBB0_3:
	ldr	w8, [x19]
	str	w8, [x20]
Lloh2:
	adrp	x1, _h2o_socket_export.nonpooling_prototype@PAGE
Lloh3:
	add	x1, x1, _h2o_socket_export.nonpooling_prototype@PAGEOFF
	mov	x0, x20
	bl	_h2o_buffer_set_prototype
Lloh4:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh5:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	mov	x0, x19
	bl	_h2o_buffer_init
	mov	x0, x19
	bl	_h2o_socket_close
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_h2o_socket_export.nonpooling_prototype,4,2 ; @h2o_socket_export.nonpooling_prototype
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
.subsections_via_symbols
