	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pbl_messages
_send_pbl_messages:                     ## @send_pbl_messages
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	cmpl	$128, %r9d
	je	LBB0_1
## %bb.2:
	cmpl	$129, %r9d
	jne	LBB0_6
## %bb.3:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	movslq	4(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r12
	movq	_CCWR_NSMR_PBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_c2_wr_set_id
	movq	$0, 8(%r12)
	movl	(%r13), %eax
	movl	%eax, 36(%r12)
	movl	%ebx, 32(%r12)
	movq	$0, 16(%r12)
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.9:
	movabsq	$17179869144, %rax              ## imm = 0x3FFFFFFD8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	shrq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r12)
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	cmpl	%ebx, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_vq_req_get
	movq	_MEM_PBL_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r12)
	movq	%r14, 8(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	-72(%rbp), %r14                 ## 4-byte Folded Reload
	movl	%ebx, %ebx
	shlq	$2, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	leaq	(%r15,%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_cpu_to_be64
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r13
	cmpq	%r13, %rbx
	je	LBB0_18
LBB0_14:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_vq_send_wr
	testl	%eax, %eax
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	subl	%ecx, %r14d
	jne	LBB0_10
LBB0_22:
	movq	%r13, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_vq_wait_for_reply
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.23:
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.25:
	movq	%r15, %rdi
	callq	_c2_errno
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vq_repbuf_free
	jmp	LBB0_26
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_27
LBB0_19:
	movl	%eax, %r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_26
## %bb.20:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vq_req_put
	jmp	LBB0_26
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_26:
	movq	%r12, %rdi
	callq	_kfree
LBB0_27:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CCWR_NSMR_PBL,4,2              ## @CCWR_NSMR_PBL
	.comm	_MEM_PBL_COMPLETE,4,2           ## @MEM_PBL_COMPLETE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_send_pbl_messages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pbl_messages
_send_pbl_messages:                     ; @send_pbl_messages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	cmp	w5, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w5, #129
	b.ne	LBB0_20
; %bb.2:
	mov	w27, #1
	b	LBB0_4
LBB0_3:
	mov	w27, #0
LBB0_4:
	ldrsw	x25, [x19, #4]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_kmalloc
	cbz	x0, LBB0_21
; %bb.5:
	mov	x20, x0
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _CCWR_NSMR_PBL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCWR_NSMR_PBL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_c2_wr_set_id
	stp	xzr, xzr, [x20, #8]
	ldr	w8, [x19]
	stp	w24, w8, [x20, #32]
	cbz	w22, LBB0_17
; %bb.6:
	mov	w28, #0
	mov	x8, #17179803648
	movk	x8, #65496
	add	x8, x25, x8
	lsr	x8, x8, #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x22
	bl	_min
	mov	x25, x0
	bl	_cpu_to_be32
	str	x0, [x20, #24]
	cmp	w22, w25
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_vq_req_get
Lloh8:
	adrp	x8, _MEM_PBL_COMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEM_PBL_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	stp	x24, x0, [x20, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w25, #1
	b.lt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	mov	w8, w25
	sbfiz	x24, x28, #2, #32
	lsl	x19, x8, #2
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x23, x24
	ldr	w0, [x8, x26]
	bl	_cpu_to_be64
	ldr	x8, [x20]
	str	w0, [x8, x26]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x26, x26, #4
	cmp	x19, x26
	b.eq	LBB0_15
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w27, #0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x21]
	add	x23, x8, x23
	b	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x20
	bl	_vq_send_wr
	cbnz	w0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w28, w25, w28
	subs	w22, w22, w25
	b.ne	LBB0_7
LBB0_17:
	mov	x0, x19
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_vq_wait_for_reply
	mov	x26, x0
	cbnz	w0, LBB0_26
; %bb.18:
	ldr	x21, [x21]
	cbz	x21, LBB0_25
; %bb.19:
	mov	x0, x21
	bl	_c2_errno
	mov	x26, x0
	mov	x0, x19
	mov	x1, x21
	bl	_vq_repbuf_free
	b	LBB0_26
LBB0_20:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_27
LBB0_23:
	mov	x26, x0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w25, w8
	b.gt	LBB0_26
; %bb.24:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_vq_req_put
	b	LBB0_26
LBB0_25:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_26:
	mov	x0, x20
	bl	_kfree
LBB0_27:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CCWR_NSMR_PBL,4,2              ; @CCWR_NSMR_PBL
	.comm	_MEM_PBL_COMPLETE,4,2           ; @MEM_PBL_COMPLETE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_send_pbl_messages
.subsections_via_symbols
