	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TranslateSocketError
_TranslateSocketError:                  ## @TranslateSocketError
	.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
	xorl	%eax, %eax
	callq	_WSAGetLastError
	addl	$-128, %eax
	cmpl	$34, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.TranslateSocketError(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_WSAGetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_EMFILE,4,2                     ## @EMFILE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_ECONNABORTED,4,2               ## @ECONNABORTED
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_NOTICE,4,2                     ## @NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized win32 socket error code: %d"

	.no_dead_strip	_TranslateSocketError
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.TranslateSocketError
l_switch.table.TranslateSocketError:
	.quad	_EINVAL
	.quad	_EHOSTUNREACH
	.quad	_EWOULDBLOCK
	.quad	_EPROTONOSUPPORT
	.quad	_ENOTCONN
	.quad	_EPROTONOSUPPORT
	.quad	_EPROTONOSUPPORT
	.quad	_EOPNOTSUPP
	.quad	_ENOTSOCK
	.quad	_ENOTCONN
	.quad	_ENOBUFS
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EMSGSIZE
	.quad	_EMFILE
	.quad	_EISCONN
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINTR
	.quad	_EINPROGRESS
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EFAULT
	.quad	_ENOTCONN
	.quad	_EINVAL
	.quad	_ECONNRESET
	.quad	_ECONNREFUSED
	.quad	_ECONNABORTED
	.quad	_EAFNOSUPPORT
	.quad	_EADDRNOTAVAIL
	.quad	_EADDRINUSE
	.quad	_EACCES

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TranslateSocketError
_TranslateSocketError:                  ; @TranslateSocketError
	.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
	bl	_WSAGetLastError
	sub	w8, w0, #128
	cmp	w8, #34
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.TranslateSocketError@PAGE
Lloh1:
	add	x9, x9, l_switch.table.TranslateSocketError@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _NOTICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	bl	_WSAGetLastError
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	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	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_EMFILE,4,2                     ; @EMFILE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_ECONNABORTED,4,2               ; @ECONNABORTED
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_NOTICE,4,2                     ; @NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized win32 socket error code: %d"

	.no_dead_strip	_TranslateSocketError
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.TranslateSocketError
l_switch.table.TranslateSocketError:
	.quad	_EINVAL
	.quad	_EHOSTUNREACH
	.quad	_EWOULDBLOCK
	.quad	_EPROTONOSUPPORT
	.quad	_ENOTCONN
	.quad	_EPROTONOSUPPORT
	.quad	_EPROTONOSUPPORT
	.quad	_EOPNOTSUPP
	.quad	_ENOTSOCK
	.quad	_ENOTCONN
	.quad	_ENOBUFS
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EMSGSIZE
	.quad	_EMFILE
	.quad	_EISCONN
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINTR
	.quad	_EINPROGRESS
	.quad	_EHOSTUNREACH
	.quad	_EHOSTUNREACH
	.quad	_EFAULT
	.quad	_ENOTCONN
	.quad	_EINVAL
	.quad	_ECONNRESET
	.quad	_ECONNREFUSED
	.quad	_ECONNABORTED
	.quad	_EAFNOSUPPORT
	.quad	_EADDRNOTAVAIL
	.quad	_EADDRINUSE
	.quad	_EACCES

.subsections_via_symbols
