	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tool_init_peers
_tool_init_peers:                       ## @tool_init_peers
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_ntb_peer_port_count
	movl	%eax, (%rbx)
	movq	16(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.3:
	movq	%rax, %r9
	xorl	%eax, %eax
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	%r8d, %edi
	andl	$-2, %edi
	leaq	24(%r9), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -24(%rdx)
	movq	%rbx, -16(%rdx)
	leal	1(%rsi), %ecx
	movl	%ecx, -8(%rdx)
	movq	%rbx, (%rdx)
	addq	$2, %rsi
	addq	$32, %rdx
	cmpq	%rdi, %rsi
	jne	LBB0_7
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movl	%esi, (%r9,%rcx)
	movq	%rbx, 8(%r9,%rcx)
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tool_init_peers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tool_init_peers
_tool_init_peers:                       ; @tool_init_peers
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_ntb_peer_port_count
	mov	x1, x0
	str	w0, [x19]
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #16
	bl	_devm_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x9, #0
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x0, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w10, #1
	stur	w10, [x11, #-32]
	add	w13, w10, #2
	add	w14, w10, #3
	stur	w12, [x11, #-16]
	str	w13, [x11]
	str	w14, [x11, #16]
	stur	x19, [x11, #-24]
	stur	x19, [x11, #-8]
	add	x10, x10, #4
	str	x19, [x11, #8]
	str	x19, [x11, #24]
	add	x11, x11, #64
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stur	w9, [x10, #-8]
	str	x19, [x10], #16
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tool_init_peers
.subsections_via_symbols
