	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_journal
_write_journal:                         ## @write_journal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdi, -56(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_init_completion
	leal	(%r15,%r13), %eax
	cmpl	(%r14), %eax
	jbe	LBB0_1
## %bb.6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$2, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -64(%rbp)
	movl	(%r14), %r13d
	movl	%r13d, %r12d
	subl	%r15d, %r12d
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.13:
	movq	%r14, -80(%rbp)
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	callq	_init_completion
	xorl	%edi, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -88(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	%r13, %r8
	callq	_encrypt_journal
	movq	%r13, %rdi
	callq	_try_wait_for_completion
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_rw_journal
	movq	%r13, %rdi
	callq	_reinit_completion
	xorl	%edi, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -88(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subl	%r12d, %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%rcx, %rbx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r13, %r8
	callq	_encrypt_journal
	jmp	LBB0_16
LBB0_1:
	movl	$1, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -64(%rbp)
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.19:
	movq	%r14, -80(%rbp)
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	xorl	%edi, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -88(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	callq	_encrypt_journal
	movq	%rbx, %rdi
	callq	_wait_for_completion_io
	jmp	LBB0_5
LBB0_7:
	cmpl	%r15d, %r13d
	je	LBB0_10
## %bb.8:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_rw_section_mac
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_9
LBB0_10:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_rw_journal
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	subl	%r12d, %r13d
	je	LBB0_17
## %bb.11:
	cmpl	$2, %r13d
	movl	$1, %r15d
	cmovael	%r13d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_rw_section_mac
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_12
	jmp	LBB0_17
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	movl	%r15d, %ebx
	movl	%r13d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_rw_section_mac
	incl	%ebx
	decl	%r12d
	jne	LBB0_4
LBB0_5:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movq	_REQ_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %ecx
	jmp	LBB0_18
LBB0_15:
	movq	%r14, -104(%rbp)
	leaq	-120(%rbp), %r13
	movq	%r13, %rdi
	callq	_init_completion
	xorl	%edi, %edi
	callq	_ATOMIC_INIT
	movq	%rax, -112(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subl	%r12d, %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%rcx, %rbx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r13, %r8
	callq	_encrypt_journal
	leaq	-96(%rbp), %rdi
	callq	_wait_for_completion_io
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_rw_journal
LBB0_16:
	movq	%r13, %rdi
	callq	_wait_for_completion_io
	movq	%rbx, %r13
LBB0_17:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	xorl	%ecx, %ecx
LBB0_18:
	movl	%r13d, %r8d
	callq	_rw_journal
	leaq	-72(%rbp), %rdi
	callq	_wait_for_completion_io
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_REQ_SYNC,4,2                   ## @REQ_SYNC
	.no_dead_strip	_write_journal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_journal
_write_journal:                         ; @write_journal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp, #72]
	add	x0, sp, #56
	bl	_init_completion
	ldr	w8, [x19]
	add	w9, w21, w20
	cmp	w9, w8
	b.ls	LBB0_4
; %bb.1:
	mov	w0, #2
	bl	_ATOMIC_INIT
	str	x0, [sp, #64]
	ldr	w24, [x19]
	subs	w22, w24, w20
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	str	x19, [sp, #48]
	add	x0, sp, #32
	bl	_init_completion
	mov	w0, #0
	bl	_ATOMIC_INIT
	str	x0, [sp, #40]
	add	x4, sp, #32
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_encrypt_journal
	add	x0, sp, #32
	bl	_try_wait_for_completion
	cbz	x0, LBB0_16
; %bb.3:
	add	x23, sp, #32
Lloh0:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _REQ_FUA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_FUA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x5, sp, #56
	mov	x0, x19
	mov	x3, x20
	mov	x4, x22
	bl	_rw_journal
	add	x0, sp, #32
	bl	_reinit_completion
	mov	w0, #0
	bl	_ATOMIC_INIT
	str	x0, [sp, #40]
	sub	w21, w21, w22
	add	x4, sp, #32
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x3, x21
	bl	_encrypt_journal
	b	LBB0_17
LBB0_4:
	mov	w0, #1
	bl	_ATOMIC_INIT
	str	x0, [sp, #64]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.5:
	str	x19, [sp, #48]
	add	x0, sp, #32
	bl	_init_completion
	mov	w0, #0
	bl	_ATOMIC_INIT
	str	x0, [sp, #40]
	add	x4, sp, #32
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x21
	bl	_encrypt_journal
	add	x0, sp, #32
	bl	_wait_for_completion_io
	b	LBB0_15
LBB0_6:
	b.eq	LBB0_9
; %bb.7:
	mov	x23, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_rw_section_mac
	add	w23, w23, #1
	cmp	w24, w23
	b.ne	LBB0_8
LBB0_9:
Lloh6:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REQ_FUA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_FUA@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x5, sp, #56
	mov	x0, x19
	mov	x3, x20
	mov	x4, x22
	bl	_rw_journal
	subs	w21, w21, w22
	b.eq	LBB0_18
; %bb.10:
	mov	w20, #0
	cmp	w21, #1
	csinc	w22, w21, wzr, hi
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_rw_section_mac
	add	w20, w20, #1
	cmp	w22, w20
	b.ne	LBB0_11
	b	LBB0_18
LBB0_12:
	cbz	w21, LBB0_15
; %bb.13:
	mov	x22, x20
	mov	x23, x21
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_rw_section_mac
	add	w22, w22, #1
	subs	w23, w23, #1
	b.ne	LBB0_14
LBB0_15:
Lloh12:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _REQ_FUA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REQ_FUA@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _REQ_SYNC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _REQ_SYNC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x5, sp, #56
	mov	x0, x19
	mov	x3, x20
	b	LBB0_19
LBB0_16:
	str	x19, [sp, #24]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_init_completion
	mov	w0, #0
	bl	_ATOMIC_INIT
	str	x0, [sp, #16]
	sub	w21, w21, w22
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x3, x21
	bl	_encrypt_journal
	add	x0, sp, #32
	bl	_wait_for_completion_io
Lloh21:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _REQ_FUA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REQ_FUA@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x5, sp, #56
	mov	x0, x19
	mov	x3, x20
	mov	x4, x22
	bl	_rw_journal
LBB0_17:
	mov	x0, x23
	bl	_wait_for_completion_io
LBB0_18:
Lloh27:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _REQ_FUA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REQ_FUA@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x5, sp, #56
	mov	x0, x19
	mov	w3, #0
LBB0_19:
	mov	x4, x21
	bl	_rw_journal
	add	x0, sp, #56
	bl	_wait_for_completion_io
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_REQ_SYNC,4,2                   ; @REQ_SYNC
	.no_dead_strip	_write_journal
.subsections_via_symbols
