	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_putmessage
_socket_putmessage:                     ## @socket_putmessage
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	%dil, -33(%rbp)
	movq	_DoingCopyOut@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.1:
	movq	_PqCommBusy@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_9
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	$1, (%r12)
	testb	%dil, %dil
	je	LBB0_4
## %bb.3:
	leaq	-33(%rbp), %rdi
	movl	$1, %esi
	callq	_internal_putbytes
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	movq	_FrontendProtocol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PG_PROTOCOL_MAJOR
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.5:
	leal	4(%r14), %edi
	callq	_pg_hton32
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	$4, %esi
	callq	_internal_putbytes
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_internal_putbytes
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movl	$0, (%r12)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$0, (%r12)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DoingCopyOut,8,3               ## @DoingCopyOut
	.comm	_PqCommBusy,4,2                 ## @PqCommBusy
	.comm	_FrontendProtocol,4,2           ## @FrontendProtocol
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_socket_putmessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_putmessage
_socket_putmessage:                     ; @socket_putmessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	strb	w0, [sp, #15]
Lloh0:
	adrp	x8, _DoingCopyOut@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DoingCopyOut@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _PqCommBusy@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PqCommBusy@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	w8, #1
	str	w8, [x21]
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, sp, #15
	mov	w1, #1
	bl	_internal_putbytes
	cbnz	x0, LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _FrontendProtocol@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FrontendProtocol@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PG_PROTOCOL_MAJOR
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.5:
	add	w0, w19, #4
	bl	_pg_hton32
	str	w0, [sp, #8]
	add	x0, sp, #8
	mov	w1, #4
	bl	_internal_putbytes
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_internal_putbytes
	cbz	x0, LBB0_9
LBB0_7:
	str	wzr, [x21]
Lloh8:
	adrp	x8, _EOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	str	wzr, [x21]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DoingCopyOut,8,3               ; @DoingCopyOut
	.comm	_PqCommBusy,4,2                 ; @PqCommBusy
	.comm	_FrontendProtocol,4,2           ; @FrontendProtocol
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_socket_putmessage
.subsections_via_symbols
