	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btt_map_init
_btt_map_init:                          ## @btt_map_init
	.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	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SZ_2M@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r12), %r13
	movq	8(%r12), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_kzalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_to_dev
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_IS_ALIGNED
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	callq	_dev_WARN_ONCE
	subq	%r14, %r13
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_to_dev
	xorl	%esi, %esi
	cmpq	$512, %r15                      ## imm = 0x200
	setb	%sil
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rcx
	callq	_dev_WARN_ONCE
	movq	8(%r12), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_arena_write_bytes
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r15, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cond_resched
	subq	%r15, %r13
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	negl	%ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SZ_2M,8,3                      ## @SZ_2M
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arena->mapoff: %#llx is unaligned\n"

L_.str.1:                               ## @.str.1
	.asciz	"chunk size: %#zx is unaligned\n"

	.no_dead_strip	_btt_map_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btt_map_init
_btt_map_init:                          ; @btt_map_init
	.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	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _SZ_2M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_2M@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldp	x22, x23, [x0]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	sub	x22, x22, x23
	mov	x0, x20
	bl	_to_dev
	mov	x23, x0
	ldr	x0, [x20, #8]
	mov	w1, #512
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w1, eq
	ldr	x3, [x20, #8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_WARN_ONCE
	cbz	x22, LBB0_7
; %bb.2:
	mov	x26, #0
Lloh11:
	adrp	x23, l_.str.1@PAGE
Lloh12:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_min
	mov	x24, x0
	mov	x0, x20
	bl	_to_dev
	cmp	x24, #512
	cset	w1, lo
	mov	x2, x23
	mov	x3, x24
	bl	_dev_WARN_ONCE
	ldr	x8, [x20, #8]
	add	x1, x8, x26
	mov	x0, x20
	mov	x2, x19
	mov	x3, x24
	mov	w4, #0
	bl	_arena_write_bytes
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x24, x26
	sub	x22, x22, x24
	bl	_cond_resched
	cbnz	x22, LBB0_3
; %bb.5:
	mov	w25, #0
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_10
LBB0_7:
	neg	w25, w24
	b	LBB0_9
LBB0_8:
	mov	x25, x0
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x25
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SZ_2M,8,3                      ; @SZ_2M
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arena->mapoff: %#llx is unaligned\n"

l_.str.1:                               ; @.str.1
	.asciz	"chunk size: %#zx is unaligned\n"

	.no_dead_strip	_btt_map_init
.subsections_via_symbols
