	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socktodesc                     ## -- Begin function socktodesc
	.p2align	4, 0x90
_socktodesc:                            ## @socktodesc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SOPEN_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_sockets@GOTPCREL(%rip), %rcx
	movslq	%edi, %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOPEN_MAX,4,2                  ## @SOPEN_MAX
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_sockets,8,3                    ## @sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socktodesc                     ; -- Begin function socktodesc
	.p2align	2
_socktodesc:                            ; @socktodesc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SOPEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOPEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _sockets@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sockets@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw #2
	ret
LBB0_2:
	mov	x0, #0
Lloh6:
	adrp	x8, _EBADF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SOPEN_MAX,4,2                  ; @SOPEN_MAX
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_sockets,8,3                    ; @sockets
.subsections_via_symbols
