	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofs_to_block
_ofs_to_block:                          ## @ofs_to_block
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rdi
	callq	_maple_get_drvdata
	movq	%rax, %r12
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rsi, %rax
	imulq	%rcx, %rax
	cmpq	%r14, %rax
	jbe	LBB0_3
## %bb.1:
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r15d
LBB0_5:
	movslq	%r15d, %rax
	cmpq	%rcx, %rax
	ja	LBB0_3
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rcx
	movl	%r15d, (%rax)
	movq	(%r12), %rsi
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.9:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_12
LBB0_3:
	xorl	%ecx, %ecx
LBB0_13:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	movq	%rdx, 8(%rcx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_ofs_to_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofs_to_block
_ofs_to_block:                          ; @ofs_to_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x0, [x8]
	bl	_maple_get_drvdata
	ldp	x9, x8, [x0]
	ldr	x8, [x8, w21, sxtw #3]
	mul	x10, x9, x8
	cmp	x10, x19
	b.ls	LBB0_2
; %bb.1:
	udiv	x21, x19, x9
	cmp	x8, w21, sxtw
	b.hs	LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.5:
	str	w21, [x0]
	ldr	x8, [x20]
	udiv	x9, x19, x8
	msub	x8, x9, x8, x19
	str	x8, [x0, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_ofs_to_block
.subsections_via_symbols
