	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socket_create                  ## -- Begin function socket_create
	.p2align	4, 0x90
_socket_create:                         ## @socket_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %edi
	callq	_domain_get
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	cmpl	$130, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %esi
LBB0_5:
	cmpl	$131, %r14d
	je	LBB0_8
## %bb.6:
	xorl	%edx, %edx
	cmpl	$132, %r14d
	jne	LBB0_10
## %bb.7:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %edx
LBB0_10:
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_socket                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_SCE_NET_IPPROTO_TCP,4,2        ## @SCE_NET_IPPROTO_TCP
	.comm	_SCE_NET_IPPROTO_UDP,4,2        ## @SCE_NET_IPPROTO_UDP
	.comm	_SCE_NET_SOCK_DGRAM,4,2         ## @SCE_NET_SOCK_DGRAM
	.comm	_SCE_NET_SOCK_STREAM,4,2        ## @SCE_NET_SOCK_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socket_create                  ; -- Begin function socket_create
	.p2align	2
_socket_create:                         ; @socket_create
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x0, x1
	bl	_domain_get
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #130
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	cmp	w19, #131
	b.eq	LBB0_8
LBB0_5:
	cmp	w19, #132
	b.ne	LBB0_10
; %bb.6:
Lloh4:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w1, #0
	cmp	w19, #131
	b.ne	LBB0_5
LBB0_8:
Lloh6:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_9:
	ldr	w2, [x8]
	b	LBB0_11
LBB0_10:
	mov	w2, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_socket
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_SCE_NET_IPPROTO_TCP,4,2        ; @SCE_NET_IPPROTO_TCP
	.comm	_SCE_NET_IPPROTO_UDP,4,2        ; @SCE_NET_IPPROTO_UDP
	.comm	_SCE_NET_SOCK_DGRAM,4,2         ; @SCE_NET_SOCK_DGRAM
	.comm	_SCE_NET_SOCK_STREAM,4,2        ; @SCE_NET_SOCK_STREAM
.subsections_via_symbols
