	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_multi_batch_size_helper
_secp256k1_ecmult_multi_batch_size_helper: ## @secp256k1_ecmult_multi_batch_size_helper
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rdx, %r8
	movq	_ECMULT_MAX_POINTS_PER_BATCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	cmovbq	%rax, %r8
	decq	%rcx
	movq	%rcx, %rax
	orq	%r8, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r8
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_3:
	movq	$0, (%rdi)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %r8d
LBB0_7:
	incq	%r8
	movq	%r8, (%rdi)
	movq	%rcx, %rax
	orq	%r8, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_10
LBB0_8:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	incq	%rax
LBB0_11:
	movq	%rax, (%rsi)
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMULT_MAX_POINTS_PER_BATCH,8,3 ## @ECMULT_MAX_POINTS_PER_BATCH
	.no_dead_strip	_secp256k1_ecmult_multi_batch_size_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecmult_multi_batch_size_helper
_secp256k1_ecmult_multi_batch_size_helper: ; @secp256k1_ecmult_multi_batch_size_helper
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_3
; %bb.1:
	cbz	x3, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ECMULT_MAX_POINTS_PER_BATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECMULT_MAX_POINTS_PER_BATCH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	csel	x8, x8, x2, lo
	sub	x9, x3, #1
	udiv	x8, x9, x8
	add	x8, x8, #1
	str	x8, [x0]
	udiv	x8, x9, x8
	add	x8, x8, #1
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	mov	x8, #0
	str	xzr, [x0]
LBB0_5:
	str	x8, [x1]
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMULT_MAX_POINTS_PER_BATCH,8,3 ; @ECMULT_MAX_POINTS_PER_BATCH
	.no_dead_strip	_secp256k1_ecmult_multi_batch_size_helper
.subsections_via_symbols
