	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_sector
_map_sector:                            ## @map_sector
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	(%r14), %rax
	movslq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	callq	_is_power_of_2
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	notl	%edi
	callq	_ffz
	movl	%eax, %ecx
	leal	-1(%rbx), %r13d
	andl	%r12d, %r13d
	shrl	%cl, %r12d
	movl	(%r15), %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	jmp	LBB0_3
LBB0_2:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_sector_div
	movl	%eax, %r13d
	movl	(%r15), %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	imull	%ebx, %esi
LBB0_3:
	movl	%r15d, %edi
	callq	_sector_div
	imull	%ebx, %r15d
	addl	%r13d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	subq	(%r14), %rbx
	movq	8(%r14), %r14
	shrq	$2, %rbx
	imulq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_sector_div
	cltq
	addq	%rbx, %rax
	movq	(%r14,%rax,8), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_map_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_sector
_map_sector:                            ; @map_sector
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x25, [x0, #8]
	ldr	x8, [x25]
	ldrsw	x26, [x8]
	ldr	w22, [x0]
	mov	x0, x22
	bl	_is_power_of_2
	cbz	x0, LBB0_2
; %bb.1:
	mvn	w0, w22
	bl	_ffz
	sub	w8, w22, #1
	and	w23, w8, w19
	lsr	w19, w19, w0
	ldr	w24, [x21]
	ldr	w8, [x20]
	lsl	w1, w8, w0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_sector_div
	mov	x23, x0
	ldr	w24, [x21]
	ldr	w8, [x20]
	mul	w1, w8, w22
LBB0_3:
	mov	x0, x24
	bl	_sector_div
	madd	w8, w24, w22, w23
	str	w8, [x21]
	ldp	x8, x21, [x25]
	sub	x8, x20, x8
	lsr	x8, x8, #2
	mul	x22, x8, x26
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sector_div
	add	x8, x22, w0, sxtw
	ldr	x0, [x21, x8, lsl #3]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_map_sector
.subsections_via_symbols
