	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btt_log_init
_btt_log_init:                          ## @btt_log_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	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_10
## %bb.1:
	movq	%r15, %rdi
	callq	_to_dev
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_IS_ALIGNED
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	8(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	callq	_dev_WARN_ONCE
	subq	%r12, %rbx
	je	LBB0_5
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_to_dev
	xorl	%esi, %esi
	cmpq	$512, %r13                      ## imm = 0x200
	setb	%sil
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rcx
	callq	_dev_WARN_ONCE
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_arena_write_bytes
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %r12
	xorl	%eax, %eax
	callq	_cond_resched
	subq	%r13, %rbx
	jne	LBB0_3
LBB0_5:
	cmpq	$0, 16(%r15)
	jle	LBB0_12
## %bb.6:
	xorl	%ebx, %ebx
	movq	_LOG_SEQ_INIT@GOTPCREL(%rip), %r13
	leaq	-88(%rbp), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movq	(%r13), %rdi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	___btt_log_write
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	16(%r15), %rbx
	jl	LBB0_7
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %r14d
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_14:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_4K,8,3                      ## @SZ_4K
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arena->logoff: %#llx is unaligned\n"

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

	.comm	_LOG_SEQ_INIT,8,3               ## @LOG_SEQ_INIT
	.no_dead_strip	_btt_log_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btt_log_init
_btt_log_init:                          ; @btt_log_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldp	x22, x23, [x0]
Lloh0:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_10
; %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]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_WARN_ONCE
	cbz	x22, LBB0_5
; %bb.2:
	mov	x26, #0
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	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_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x24, x26
	sub	x22, x22, x24
	bl	_cond_resched
	cbnz	x22, LBB0_3
LBB0_5:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
Lloh10:
	adrp	x22, _LOG_SEQ_INIT@GOTPAGE
Lloh11:
	ldr	x22, [x22, _LOG_SEQ_INIT@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	x8, [x20, #24]
	add	x0, x21, x8
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	ldr	x8, [x20, #24]
	add	x0, x21, x8
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	ldr	x0, [x22]
	bl	_cpu_to_le32
	str	x0, [sp]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w4, #0
	bl	___btt_log_write
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #16]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_9:
	mov	w25, #0
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_13
LBB0_11:
	mov	x25, x0
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_4K,8,3                      ; @SZ_4K
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arena->logoff: %#llx is unaligned\n"

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

	.comm	_LOG_SEQ_INIT,8,3               ; @LOG_SEQ_INIT
	.no_dead_strip	_btt_log_init
.subsections_via_symbols
