	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_socket                   ## -- Begin function swrap_socket
	.p2align	4, 0x90
_swrap_socket:                          ## @swrap_socket
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_socket_wrapper_dir
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$132, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_9
## %bb.3:
	movl	$130, %edi
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
LBB0_5:
	movl	%r15d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_real_socket                    ## TAILCALL
LBB0_6:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	movl	$130, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_real_socket
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %r12d
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	$132, (%rax)
	movl	%r15d, 4(%rax)
	movl	%r14d, 8(%rax)
	movl	%r12d, 12(%rax)
	movq	_sockets@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_SWRAP_DLIST_ADD
	movl	12(%rbx), %eax
	jmp	LBB0_13
LBB0_9:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_errno,4,2                      ## @errno
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_sockets,4,2                    ## @sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_socket                   ; -- Begin function swrap_socket
	.p2align	2
_swrap_socket:                          ; @swrap_socket
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_socket_wrapper_dir
	cbz	w0, LBB0_4
; %bb.1:
	cmp	w21, #132
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #130
	b.ne	LBB0_9
; %bb.3:
	mov	w0, #130
	b	LBB0_5
LBB0_4:
	mov	x0, x21
LBB0_5:
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_real_socket
LBB0_6:
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	mov	w0, #130
	mov	x1, x20
	mov	w2, #0
	bl	_real_socket
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.8:
	mov	x21, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x22, x0
	mov	w8, #132
	stp	w8, w20, [x0]
	stp	w19, w21, [x0, #8]
Lloh0:
	adrp	x8, _sockets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sockets@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_SWRAP_DLIST_ADD
	ldr	w0, [x22, #12]
	b	LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_errno,4,2                      ; @errno
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_sockets,4,2                    ; @sockets
.subsections_via_symbols
