	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_get_next_lba_len         ## -- Begin function camdd_get_next_lba_len
	.p2align	4, 0x90
_camdd_get_next_lba_len:                ## @camdd_get_next_lba_len
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, (%r15)
	movq	16(%rbx), %rcx
	movq	%rcx, (%r14)
	movq	8(%rbx), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_4:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r12d
LBB0_6:
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.9:
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	callq	_min
	jmp	LBB0_12
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_10:
	movq	%rsi, %rax
LBB0_12:
	movq	(%r15), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_14
## %bb.13:
	movq	$0, (%r14)
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_14:
	incq	%rax
	testq	%r12, %r12
	js	LBB0_17
## %bb.15:
	addq	%rcx, %r12
	cmpq	%rax, %r12
	jg	LBB0_17
## %bb.16:
	movq	(%r14), %rcx
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_17:
	subq	%rcx, %rax
	imulq	8(%rbx), %rax
	movq	%rax, (%r14)
	movl	$1, %edx
	movq	%rax, %rcx
LBB0_18:
	addq	%rcx, (%rbx)
	movl	%edx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_get_next_lba_len         ; -- Begin function camdd_get_next_lba_len
	.p2align	2
_camdd_get_next_lba_len:                ; @camdd_get_next_lba_len
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	sdiv	x8, x8, x9
	str	x8, [x1]
	ldr	x22, [x0, #16]
	str	x22, [x2]
	ldr	x23, [x0, #8]
	ldp	x1, x0, [x0, #24]
	cbz	x1, LBB0_3
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	bl	_min
	b	LBB0_5
LBB0_3:
	cbnz	x0, LBB0_5
	b	LBB0_12
LBB0_4:
	mov	x0, x1
LBB0_5:
	ldr	x8, [x21]
	cmp	x8, x0
	b.le	LBB0_7
; %bb.6:
	mov	x22, #0
	str	xzr, [x20]
	b	LBB0_11
LBB0_7:
	add	x9, x0, #1
	sdiv	x10, x22, x23
	tbnz	x10, #63, LBB0_10
; %bb.8:
	add	x10, x8, x10
	cmp	x10, x9
	b.gt	LBB0_10
; %bb.9:
	mov	w0, #0
	ldr	x22, [x20]
	b	LBB0_12
LBB0_10:
	sub	x8, x9, x8
	ldr	x9, [x19, #8]
	mul	x22, x9, x8
	str	x22, [x20]
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
