	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bearer_init               ## -- Begin function tipc_bearer_init
	.p2align	4, 0x90
_tipc_bearer_init:                      ## @tipc_bearer_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_MAX_BEARERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_tipc_bearers@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_MAX_MEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_media_list@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	callq	_kfree
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r14)
	movq	$0, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_net_lock,4,2              ## @tipc_net_lock
	.comm	_MAX_BEARERS,4,2                ## @MAX_BEARERS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_tipc_bearers,8,3               ## @tipc_bearers
	.comm	_MAX_MEDIA,4,2                  ## @MAX_MEDIA
	.comm	_media_list,8,3                 ## @media_list
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bearer_init               ; -- Begin function tipc_bearer_init
	.p2align	2
_tipc_bearer_init:                      ; @tipc_bearer_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_net_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh2:
	adrp	x8, _MAX_BEARERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_BEARERS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x20, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
Lloh7:
	adrp	x19, _tipc_bearers@GOTPAGE
Lloh8:
	ldr	x19, [x19, _tipc_bearers@GOTPAGEOFF]
	str	x0, [x19]
Lloh9:
	adrp	x8, _MAX_MEDIA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_MEDIA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
	mov	x8, x0
Lloh12:
	adrp	x20, _media_list@GOTPAGE
Lloh13:
	ldr	x20, [x20, _media_list@GOTPAGEOFF]
	str	x0, [x20]
	ldr	x0, [x19]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_kfree
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x19]
	str	xzr, [x20]
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
Lloh17:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_net_lock,4,2              ; @tipc_net_lock
	.comm	_MAX_BEARERS,4,2                ; @MAX_BEARERS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_tipc_bearers,8,3               ; @tipc_bearers
	.comm	_MAX_MEDIA,4,2                  ; @MAX_MEDIA
	.comm	_media_list,8,3                 ; @media_list
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
