	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_socket_create
_pn_socket_create:                      ## @pn_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.4:
	movq	(%r14), %rax
	cmpq	$128, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$129, %rax
	jne	LBB0_12
## %bb.6:
	movq	_PN_PROTO_PHONET@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_PN_PROTO_PIPE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %edi
	callq	_phonet_proto_get
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
LBB0_13:
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.16:
	movq	_PF_PHONET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r12), %ecx
	movq	%r15, %rdi
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sock_init_data
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movq	8(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r13d, (%rbx)
	movq	%rbx, %rdi
	callq	_pn_sk
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_10:
	movq	_PF_PHONET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	callq	_request_module
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %edi
	callq	_phonet_proto_get
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
LBB0_12:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_14:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	%r12, %rdi
	callq	_phonet_proto_put
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_PN_PROTO_PHONET,4,2            ## @PN_PROTO_PHONET
	.comm	_PN_PROTO_PIPE,4,2              ## @PN_PROTO_PIPE
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net-pf-%d-proto-%d"

	.comm	_PF_PHONET,4,2                  ## @PF_PHONET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.no_dead_strip	_pn_socket_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_socket_create
_pn_socket_create:                      ; @pn_socket_create
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	cbnz	w20, LBB0_8
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	x8, #129
	b.ne	LBB0_14
; %bb.4:
Lloh3:
	adrp	x8, _PN_PROTO_PHONET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PN_PROTO_PHONET@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh7:
	adrp	x8, _PN_PROTO_PIPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PN_PROTO_PIPE@GOTPAGEOFF]
LBB0_7:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	bl	_phonet_proto_get
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:
Lloh9:
	adrp	x8, _PF_PHONET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PF_PHONET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x21, #12]
	mov	x0, x22
	bl	_sk_alloc
	cbz	x0, LBB0_17
; %bb.11:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_sock_init_data
Lloh15:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #8]
	str	w8, [x22, #16]
	str	w20, [x22]
	mov	x0, x22
	bl	_pn_sk
	stp	xzr, xzr, [x0]
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	mov	w19, #0
	b	LBB0_19
LBB0_12:
Lloh18:
	adrp	x8, _PF_PHONET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PF_PHONET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_request_module
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_phonet_proto_get
	mov	x21, x0
	cbnz	x0, LBB0_9
LBB0_14:
Lloh23:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_20
LBB0_16:
Lloh25:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_19:
	mov	x0, x21
	bl	_phonet_proto_put
LBB0_20:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_PN_PROTO_PHONET,4,2            ; @PN_PROTO_PHONET
	.comm	_PN_PROTO_PIPE,4,2              ; @PN_PROTO_PIPE
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net-pf-%d-proto-%d"

	.comm	_PF_PHONET,4,2                  ; @PF_PHONET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.no_dead_strip	_pn_socket_create
.subsections_via_symbols
