	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_close
_do_close:                              ## @do_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	(%rdi), %rcx
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	cmpl	$131, (%rcx)
	jne	LBB0_8
## %bb.2:
	movl	(%rdi), %eax
	movq	_LISTEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	callq	_tcp_close
	jmp	LBB0_7
LBB0_4:
	movq	_CLOSE_WAIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	callq	_tcp_output
	jmp	LBB0_7
LBB0_5:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_8:
	movl	4(%rcx), %edi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_MQ_Send
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.comm	_LISTEN,4,2                     ## @LISTEN
	.comm	_CLOSE_WAIT,4,2                 ## @CLOSE_WAIT
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.no_dead_strip	_do_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_close
_do_close:                              ; @do_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #131
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LISTEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LISTEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	bl	_tcp_close
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, _CLOSE_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLOSE_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	bl	_tcp_output
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_7:
	ldr	x8, [x19]
	str	w0, [x8, #8]
LBB0_8:
	ldr	w0, [x8, #4]
Lloh9:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_MQ_Send
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.comm	_LISTEN,4,2                     ; @LISTEN
	.comm	_CLOSE_WAIT,4,2                 ; @CLOSE_WAIT
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.no_dead_strip	_do_close
.subsections_via_symbols
