	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_socket_init               ## -- Begin function tipc_socket_init
	.p2align	4, 0x90
_tipc_socket_init:                      ## @tipc_socket_init
	.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
	movq	_tipc_proto@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_proto_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_err
	jmp	LBB0_5
LBB0_2:
	movq	_tipc_family_ops@GOTPCREL(%rip), %rdi
	callq	_sock_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	_tipc_proto@GOTPCREL(%rip), %rdi
	callq	_proto_unregister
	jmp	LBB0_5
LBB0_4:
	movq	_sockets_enabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_proto,4,2                 ## @tipc_proto
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register TIPC protocol type\n"

	.comm	_tipc_family_ops,4,2            ## @tipc_family_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register TIPC socket type\n"

	.comm	_sockets_enabled,4,2            ## @sockets_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_socket_init               ; -- Begin function tipc_socket_init
	.p2align	2
_tipc_socket_init:                      ; @tipc_socket_init
	.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
Lloh0:
	adrp	x0, _tipc_proto@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tipc_proto@GOTPAGEOFF]
	mov	w1, #1
	bl	_proto_register
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	b	LBB0_5
LBB0_2:
Lloh4:
	adrp	x0, _tipc_family_ops@GOTPAGE
Lloh5:
	ldr	x0, [x0, _tipc_family_ops@GOTPAGEOFF]
	bl	_sock_register
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh8:
	adrp	x0, _tipc_proto@GOTPAGE
Lloh9:
	ldr	x0, [x0, _tipc_proto@GOTPAGEOFF]
	bl	_proto_unregister
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _sockets_enabled@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sockets_enabled@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_proto,4,2                 ; @tipc_proto
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register TIPC protocol type\n"

	.comm	_tipc_family_ops,4,2            ; @tipc_family_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register TIPC socket type\n"

	.comm	_sockets_enabled,4,2            ; @sockets_enabled
.subsections_via_symbols
