	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_attach                    ## -- Begin function tipc_attach
	.p2align	4, 0x90
_tipc_attach:                           ## @tipc_attach
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_tipc_mode@GOTPCREL(%rip), %rcx
	movq	_TIPC_NOT_RUNNING@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_users@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_reg_init
LBB0_6:
	movq	_reg_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_next_free_user@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	(%r13), %r13
	movq	%r14, (%r12)
	shlq	$5, %r14
	movq	(%r13,%r14), %rcx
	movq	%rcx, (%rax)
	movq	$-1, (%r13,%r14)
	movq	_reg_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	%r15, 24(%r13,%r14)
	movq	%rbx, 16(%r13,%r14)
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_tipc_user_count@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	movq	_tipc_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TIPC_NOT_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	addq	%r14, %r13
	movq	_reg_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_tipc_k_signal
	jmp	LBB0_11
LBB0_7:
	movq	_reg_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_mode,8,3                  ## @tipc_mode
	.comm	_TIPC_NOT_RUNNING,8,3           ## @TIPC_NOT_RUNNING
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.comm	_users,8,3                      ## @users
	.comm	_reg_lock,4,2                   ## @reg_lock
	.comm	_next_free_user,8,3             ## @next_free_user
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_tipc_user_count,4,2            ## @tipc_user_count
	.comm	_reg_callback,8,3               ## @reg_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_attach                    ; -- Begin function tipc_attach
	.p2align	2
_tipc_attach:                           ; @tipc_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _tipc_mode@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tipc_mode@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TIPC_NOT_RUNNING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TIPC_NOT_RUNNING@GOTPAGEOFF]
	cbnz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh6:
	adrp	x21, _users@GOTPAGE
Lloh7:
	ldr	x21, [x21, _users@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
; %bb.4:
	bl	_reg_init
LBB0_5:
Lloh8:
	adrp	x0, _reg_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _reg_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh10:
	adrp	x8, _next_free_user@GOTPAGE
Lloh11:
	ldr	x8, [x8, _next_free_user@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	x10, [x21]
	add	x21, x10, x9, lsl #5
	str	x9, [x22]
	ldr	x9, [x21]
	str	x9, [x8]
	mov	x8, #-1
	str	x8, [x21]
Lloh12:
	adrp	x0, _reg_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _reg_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	stp	x20, x19, [x21, #16]
	add	x0, x21, #8
	bl	_INIT_LIST_HEAD
Lloh14:
	adrp	x0, _tipc_user_count@GOTPAGE
Lloh15:
	ldr	x0, [x0, _tipc_user_count@GOTPAGEOFF]
	bl	_atomic_inc
	cbz	x19, LBB0_9
; %bb.7:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _reg_callback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _reg_callback@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_tipc_k_signal
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh19:
	adrp	x0, _reg_lock@GOTPAGE
Lloh20:
	ldr	x0, [x0, _reg_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_mode,8,3                  ; @tipc_mode
	.comm	_TIPC_NOT_RUNNING,8,3           ; @TIPC_NOT_RUNNING
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.comm	_users,8,3                      ; @users
	.comm	_reg_lock,4,2                   ; @reg_lock
	.comm	_next_free_user,8,3             ; @next_free_user
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_tipc_user_count,4,2            ; @tipc_user_count
	.comm	_reg_callback,8,3               ; @reg_callback
.subsections_via_symbols
