	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tool_init_msgs
_tool_init_msgs:                        ## @tool_init_msgs
	.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	%rdi, %r15
	movq	16(%rdi), %rdi
	callq	_ntb_msg_count
	movl	%eax, (%r15)
	movq	16(%r15), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	%eax, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_12:
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	24(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, -24(%rdi)
	movl	$-1, -20(%rdi)
	movq	%r15, -16(%rdi)
	leal	1(%rdx), %ebx
	movl	%ebx, -8(%rdi)
	movl	$-1, -4(%rdi)
	movq	%r15, (%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_13
LBB0_4:
	testb	$1, %cl
	je	LBB0_6
## %bb.5:
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movl	%edx, (%rax,%rcx)
	movl	$-1, 4(%rax,%rcx)
	movq	%r15, 8(%rax,%rcx)
LBB0_6:
	cmpl	$0, 4(%r15)
	jle	LBB0_20
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_20
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	16(%r15), %rdi
	callq	_ntb_msg_count
	movq	8(%r15), %rcx
	movq	%r12, %rbx
	shlq	$4, %rbx
	movl	%eax, (%rcx,%rbx)
	movq	16(%r15), %rdi
	movl	(%r14), %ecx
	movl	%eax, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx,%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	24(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, -24(%rdi)
	movl	%r12d, -20(%rdi)
	movq	%r15, -16(%rdi)
	leal	1(%rdx), %ebx
	movl	%ebx, -8(%rdi)
	movl	%r12d, -4(%rdi)
	movq	%r15, (%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	$1, %cl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movl	%edx, (%rax,%rcx)
	movl	%r12d, 4(%rax,%rcx)
	movq	%r15, 8(%rax,%rcx)
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tool_init_msgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tool_init_msgs
_tool_init_msgs:                        ; @tool_init_msgs
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_ntb_msg_count
	mov	x1, x0
	str	w1, [x19]
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x20]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #16
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_21
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.3:
	mov	x9, #0
	b	LBB0_7
LBB0_4:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x0, #32
	mov	w12, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w10, #1
	add	w14, w10, #2
	add	w15, w10, #3
	stp	w10, w12, [x11, #-32]
	stp	w13, w12, [x11, #-16]
	stp	w14, w12, [x11]
	stp	w15, w12, [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_5
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
	mov	w11, #-1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stp	w9, w11, [x10, #-8]
	str	x19, [x10], #16
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.10:
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.ge	LBB0_22
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x0, [x19, #16]
	bl	_ntb_msg_count
	mov	x1, x0
	lsl	x22, x21, #4
	ldp	x8, x0, [x19, #8]
	str	w1, [x8, x22]
	ldr	w3, [x20]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #16
	bl	_devm_kcalloc
	ldr	x8, [x19, #8]
	add	x9, x8, x22
	str	x0, [x9, #8]
	cbz	x0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x8, x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #4
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x9, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x0, #32
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w12, w10, #1
	add	w13, w10, #2
	add	w14, w10, #3
	stp	w10, w21, [x11, #-32]
	stp	w12, w21, [x11, #-16]
	stp	w13, w21, [x11]
	stp	w14, w21, [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_17
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
LBB0_20:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w9, w21, [x10, #-8]
	str	x19, [x10], #16
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_20
	b	LBB0_11
LBB0_21:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tool_init_msgs
.subsections_via_symbols
