	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bearer_stop               ## -- Begin function tipc_bearer_stop
	.p2align	4, 0x90
_tipc_bearer_stop:                      ## @tipc_bearer_stop
	.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
	movq	_tipc_bearers@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	_MAX_BEARERS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	cmpq	$1, %rax
	jne	LBB0_14
## %bb.3:
	xorl	%ecx, %ecx
LBB0_4:
	testb	$1, %al
	je	LBB0_7
## %bb.5:
	shlq	$4, %rcx
	cmpq	$0, 8(%rdi,%rcx)
	je	LBB0_7
## %bb.6:
	movl	$1, (%rdi,%rcx)
LBB0_7:
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movq	(%r15), %rdi
	addq	$16, %rbx
	cmpq	%rax, %r12
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-4(%rdi,%rbx), %edi
	callq	_bearer_disable
	movq	(%r14), %rax
	jmp	LBB0_11
LBB0_12:
	callq	_kfree
	movq	_media_list@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%r15)
	movq	$0, (%rbx)
	movq	_media_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rax, %rdx
	andq	$-2, %rdx
	leaq	24(%rdi), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rcx
	addq	$32, %rsi
	cmpq	%rcx, %rdx
	je	LBB0_4
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rsi)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, -24(%rsi)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, -8(%rsi)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_bearers,8,3               ## @tipc_bearers
	.comm	_MAX_BEARERS,8,3                ## @MAX_BEARERS
	.comm	_media_list,8,3                 ## @media_list
	.comm	_media_count,8,3                ## @media_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bearer_stop               ; -- Begin function tipc_bearer_stop
	.p2align	2
_tipc_bearer_stop:                      ; @tipc_bearer_stop
	.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
Lloh0:
	adrp	x19, _tipc_bearers@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tipc_bearers@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.1:
Lloh2:
	adrp	x20, _MAX_BEARERS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_BEARERS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.2:
	add	x9, x0, #8
	mov	w10, #1
	mov	x11, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	cbz	x12, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w10, [x9, #-8]
	b	LBB0_3
LBB0_6:
	cbz	x8, LBB0_11
; %bb.7:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldr	x0, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.hs	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x0, x21
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x9, #4]
	bl	_bearer_disable
	ldr	x8, [x20]
	b	LBB0_8
LBB0_11:
	bl	_kfree
Lloh4:
	adrp	x20, _media_list@GOTPAGE
Lloh5:
	ldr	x20, [x20, _media_list@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x19]
	str	xzr, [x20]
Lloh6:
	adrp	x8, _media_count@GOTPAGE
Lloh7:
	ldr	x8, [x8, _media_count@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_bearers,8,3               ; @tipc_bearers
	.comm	_MAX_BEARERS,8,3                ; @MAX_BEARERS
	.comm	_media_list,8,3                 ; @media_list
	.comm	_media_count,8,3                ; @media_count
.subsections_via_symbols
