	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function log_writes_ctr
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_log_writes_ctr:                        ## @log_writes_ctr
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, -48(%rbp)
	movq	%rdx, -40(%rbp)
	cmpl	$1, %esi
	ja	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	72(%rax), %rdi
	callq	_spin_lock_init
	leaq	68(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	60(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	56(%r15), %rdi
	callq	_init_completion
	leaq	52(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	48(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	-48(%rbp), %rdi
	callq	_dm_shift_arg
	movq	%rax, %rbx
	movl	40(%r14), %edi
	callq	_dm_table_get_mode
	leaq	32(%r15), %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_dm_shift_arg
	movq	%rax, %rbx
	movl	40(%r14), %edi
	callq	_dm_table_get_mode
	movq	%r15, %rcx
	addq	$24, %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movq	(%r12), %rsi
	jmp	LBB0_10
LBB0_11:
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_bdev_logical_block_size
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_ilog2
	movl	%eax, 44(%r15)
	movq	_log_writes_kthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rsi
	callq	_kthread_run
	movl	%eax, 40(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	40(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r14)
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_dm_put_device
	movq	24(%r15), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_dm_put_device
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r15), %eax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%r15)
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	callq	_logdev_last_sector
	movl	%eax, 16(%r15)
	movl	$1, 12(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, 8(%r14)
	movl	$4, 24(%r14)
	movq	%r15, 32(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid argument count"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Device lookup failed"

L_.str.3:                               ## @.str.3
	.asciz	"Log device lookup failed"

	.comm	_log_writes_kthread,4,2         ## @log_writes_kthread
L_.str.4:                               ## @.str.4
	.asciz	"log-write"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't alloc kthread"

	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_log_writes_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_writes_ctr
_log_writes_ctr:                        ; @log_writes_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	w1, [sp]
	str	x2, [sp, #8]
	cmp	w1, #1
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	add	x0, x0, #72
	bl	_spin_lock_init
	add	x0, x20, #68
	bl	_INIT_LIST_HEAD
	add	x0, x20, #64
	bl	_INIT_LIST_HEAD
	add	x0, x20, #60
	bl	_init_waitqueue_head
	add	x0, x20, #56
	bl	_init_completion
	add	x0, x20, #52
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #48
	mov	w1, #0
	bl	_atomic_set
	mov	x0, sp
	bl	_dm_shift_arg
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_dm_table_get_mode
	mov	x2, x0
	add	x22, x20, #32
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_dm_get_device
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x19]
	b	LBB0_12
LBB0_5:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_7:
	mov	x0, sp
	bl	_dm_shift_arg
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_dm_table_get_mode
	mov	x2, x0
	add	x3, x20, #24
	mov	x0, x19
	mov	x1, x21
	bl	_dm_get_device
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19]
	ldr	x1, [x22]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_bdev_logical_block_size
	str	w0, [x20]
	bl	_ilog2
	str	w0, [x20, #44]
Lloh15:
	adrp	x8, _log_writes_kthread@GOTPAGE
Lloh16:
	ldr	x8, [x8, _log_writes_kthread@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_kthread_run
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w0, [x20, #40]
	bl	_PTR_ERR
	mov	x21, x0
Lloh20:
	adrp	x8, l_.str.5@PAGE
Lloh21:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x19]
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_dm_put_device
	ldr	x1, [x20, #24]
LBB0_11:
	mov	x0, x19
	bl	_dm_put_device
LBB0_12:
	mov	x0, x20
	bl	_kfree
LBB0_13:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_14:
Lloh22:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh24:
	ldr	w8, [x8]
	asr	w8, w9, w8
	mov	w22, #1
	stp	w8, w22, [x20, #4]
	mov	x0, x20
	bl	_logdev_last_sector
	mov	w21, #0
	stp	w22, w0, [x20, #12]
	movi.4s	v0, #1
	stur	q0, [x19, #8]
	mov	w8, #4
	str	w8, [x19, #24]
	str	x20, [x19, #32]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid argument count"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Device lookup failed"

l_.str.3:                               ; @.str.3
	.asciz	"Log device lookup failed"

	.comm	_log_writes_kthread,4,2         ; @log_writes_kthread
l_.str.4:                               ; @.str.4
	.asciz	"log-write"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't alloc kthread"

	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_log_writes_ctr
.subsections_via_symbols
