	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_batch_buffer
_prepare_batch_buffer:                  ## @prepare_batch_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	cmpl	$1, %ecx
	movl	%r8d, %r13d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_TA_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	movslq	%r15d, %rdi
	imulq	%rax, %rdi
	movq	_OP_ADD@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	sete	%cl
	shlq	%cl, %rdi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movl	%r15d, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movl	%r13d, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_OP_ADD@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	*16(%r12)
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	$4, %r14
	decq	%r15
	movl	%r13d, %eax
	jne	LBB0_5
## %bb.10:
	xorl	%eax, %eax
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_13:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TA_BUF_SZ,4,2                  ## @TA_BUF_SZ
	.comm	_OP_ADD,4,2                     ## @OP_ADD
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.no_dead_strip	_prepare_batch_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_batch_buffer
_prepare_batch_buffer:                  ; @prepare_batch_buffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x5
	mov	x20, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x26, [x1]
Lloh0:
	adrp	x27, _OP_ADD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OP_ADD@GOTPAGEOFF]
	cmp	w3, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _TA_BUF_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TA_BUF_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	x24, [x19]
	b	LBB0_3
LBB0_2:
	sxtw	x8, w25
	mul	x8, x26, x8
	ldr	w9, [x27]
	cmp	w9, w20
	cset	w9, eq
	lsl	x0, x8, x9
Lloh5:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh7:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	mov	x24, x0
	cmp	w25, #1
	b.lt	LBB0_9
LBB0_3:
	mov	w28, w25
	mov	x25, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	blr	x8
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, x26
	add	x21, x21, #4
	subs	x28, x28, #1
	b.ne	LBB0_4
LBB0_9:
	mov	w0, #0
LBB0_10:
	str	x24, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TA_BUF_SZ,4,2                  ; @TA_BUF_SZ
	.comm	_OP_ADD,4,2                     ; @OP_ADD
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.no_dead_strip	_prepare_batch_buffer
.subsections_via_symbols
