	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winsock_strerror               ## -- Begin function winsock_strerror
	.p2align	4, 0x90
_winsock_strerror:                      ## @winsock_strerror
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_LookupWSErrorMessage
	testl	%eax, %eax
	sete	%al
	jne	LBB0_12
## %bb.1:
	movq	_DLLS_SIZE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$-64, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	xorl	%r12d, %r12d
	movq	_dlls@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	cmpl	$0, (%rax,%r12)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%rax,%r12)
	movq	16(%rax,%r12), %rdi
	movq	_LOAD_LIBRARY_AS_DATAFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_LoadLibraryEx
	movq	_dlls@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	%rax, 8(%rcx,%r12)
	movq	(%rsi), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rax,%r12)
	movq	8(%rax,%r12), %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	movq	_FORMAT_MESSAGE_IGNORE_INSERTS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	movq	%rbx, %rax
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FORMAT_MESSAGE_FROM_HMODULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	orq	%rax, %r15
	movq	_LANG_ENGLISH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUBLANG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAKELANGID
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	%r13, %r15
	movq	%r13, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_FormatMessage
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	_DLLS_SIZE@GOTPCREL(%rip), %r13
	movq	_dlls@GOTPCREL(%rip), %rsi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	sete	%al
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %r12
	leaq	1(%r14), %rcx
	movslq	(%r13), %rdx
	cmpq	%rdx, %r14
	movq	%rcx, %r14
	jl	LBB0_3
LBB0_12:
	testb	%al, %al
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%r15, %rdi
	movq	%rax, %rsi
	jmp	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movb	$0, -1(%rbx,%r15)
	movq	%r15, %rdi
	callq	_strlen
	addl	$-64, %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movslq	%ebx, %rdi
	addq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_sprintf
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLLS_SIZE,4,2                  ## @DLLS_SIZE
	.comm	_dlls,8,3                       ## @dlls
	.comm	_LOAD_LIBRARY_AS_DATAFILE,4,2   ## @LOAD_LIBRARY_AS_DATAFILE
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,8,3 ## @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_IGNORE_INSERTS,8,3 ## @FORMAT_MESSAGE_IGNORE_INSERTS
	.comm	_FORMAT_MESSAGE_FROM_HMODULE,8,3 ## @FORMAT_MESSAGE_FROM_HMODULE
	.comm	_LANG_ENGLISH,4,2               ## @LANG_ENGLISH
	.comm	_SUBLANG_DEFAULT,4,2            ## @SUBLANG_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized socket error: 0x%08X/%d"

L_.str.1:                               ## @.str.1
	.asciz	" (0x%08X/%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winsock_strerror               ; -- Begin function winsock_strerror
	.p2align	2
_winsock_strerror:                      ; @winsock_strerror
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
	bl	_LookupWSErrorMessage
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x25, _DLLS_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DLLS_SIZE@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x26, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x22, x8, #64
Lloh2:
	adrp	x27, _dlls@GOTPAGE
Lloh3:
	ldr	x27, [x27, _dlls@GOTPAGEOFF]
	mov	w28, #1
Lloh4:
	adrp	x21, _SUBLANG_DEFAULT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SUBLANG_DEFAULT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	w9, [x8, x26]
	cbnz	w9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	mov	w9, #1
	str	w9, [x8]
	ldr	x0, [x8, #16]
Lloh6:
	adrp	x8, _LOAD_LIBRARY_AS_DATAFILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOAD_LIBRARY_AS_DATAFILE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_LoadLibraryEx
	ldr	x8, [x27]
	add	x8, x8, x26
	str	x0, [x8, #8]
	ldr	x8, [x27]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	ldp	x23, x9, [x8, #8]
	cmp	x9, #0
	ccmp	x23, #0, #0, ne
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _FORMAT_MESSAGE_IGNORE_INSERTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FORMAT_MESSAGE_IGNORE_INSERTS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh15:
	adrp	x9, _FORMAT_MESSAGE_FROM_HMODULE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FORMAT_MESSAGE_FROM_HMODULE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x23, #0
	csel	x9, xzr, x9, eq
	orr	x24, x8, x9
Lloh18:
	adrp	x8, _LANG_ENGLISH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LANG_ENGLISH@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_MAKELANGID
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x4, x19
	mov	x5, x22
	mov	w6, #0
	bl	_FormatMessage
	cmp	x0, #0
	cset	w9, ne
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #0
	cset	w8, eq
	cbnz	w9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x9, [x25]
	add	x26, x26, #24
	add	x10, x28, #1
	cmp	x28, x9
	mov	x28, x10
	b.lt	LBB0_3
LBB0_10:
	cbz	w8, LBB0_12
; %bb.11:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	b	LBB0_13
LBB0_12:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x21, x19
	sturb	wzr, [x8, #-1]
	mov	x0, x19
	bl	_strlen
	sub	w8, w21, #64
	cmp	w0, w8
	csel	w8, w0, w8, lt
	add	x0, x19, w8, sxtw
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x2, x20
	mov	x3, x20
	bl	_sprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DLLS_SIZE,4,2                  ; @DLLS_SIZE
	.comm	_dlls,8,3                       ; @dlls
	.comm	_LOAD_LIBRARY_AS_DATAFILE,4,2   ; @LOAD_LIBRARY_AS_DATAFILE
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,8,3 ; @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_IGNORE_INSERTS,8,3 ; @FORMAT_MESSAGE_IGNORE_INSERTS
	.comm	_FORMAT_MESSAGE_FROM_HMODULE,8,3 ; @FORMAT_MESSAGE_FROM_HMODULE
	.comm	_LANG_ENGLISH,4,2               ; @LANG_ENGLISH
	.comm	_SUBLANG_DEFAULT,4,2            ; @SUBLANG_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized socket error: 0x%08X/%d"

l_.str.1:                               ; @.str.1
	.asciz	" (0x%08X/%d)"

.subsections_via_symbols
