	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_journal_discard
_do_journal_discard:                    ## @do_journal_discard
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	leaq	48(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.4:
	movl	36(%rbx), %eax
	incl	%eax
	cltd
	idivl	16(%rbx)
	movl	%edx, 36(%rbx)
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_atomic_set
LBB0_5:
	movl	36(%rbx), %eax
	cmpl	40(%rbx), %eax
	je	LBB0_6
## %bb.7:
	leaq	52(%rbx), %r14
	movq	%r15, %rdi
	movl	$129, %esi
	callq	_atomic_set
	movl	64(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_bio_init
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	(%rbx), %rdi
	movq	24(%rbx), %rax
	movslq	36(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_bucket_to_sector
	movl	%eax, 60(%rbx)
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_bio_set_dev
	movq	%rbx, %rdi
	callq	_bucket_bytes
	movl	%eax, 56(%rbx)
	movq	_journal_discard_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	(%rbx), %rdi
	callq	_closure_get
	addq	$44, %rbx
	movq	_journal_discard_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_bch_journal_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_1:
	movl	40(%rbx), %eax
	movl	%eax, 36(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DISCARD,4,2             ## @REQ_OP_DISCARD
	.comm	_journal_discard_endio,4,2      ## @journal_discard_endio
	.comm	_journal_discard_work,4,2       ## @journal_discard_work
	.comm	_bch_journal_wq,4,2             ## @bch_journal_wq
	.no_dead_strip	_do_journal_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_journal_discard
_do_journal_discard:                    ; @do_journal_discard
	.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	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_6
; %bb.1:
	add	x20, x19, #48
	mov	x0, x20
	bl	_atomic_read
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	ldr	w9, [x19, #16]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #36]
	mov	x0, x20
	mov	w1, #128
	bl	_atomic_set
LBB0_4:
	ldp	w8, w9, [x19, #36]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:
	add	x21, x19, #52
	mov	x0, x20
	mov	w1, #129
	bl	_atomic_set
	ldr	w1, [x19, #64]
	mov	x0, x21
	mov	w2, #1
	bl	_bio_init
Lloh0:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_bio_set_op_attrs
	ldr	x0, [x19]
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #36]
	ldr	w1, [x8, x9, lsl #2]
	bl	_bucket_to_sector
	str	w0, [x19, #60]
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_bio_set_dev
	mov	x0, x19
	bl	_bucket_bytes
Lloh3:
	adrp	x8, _journal_discard_endio@GOTPAGE
Lloh4:
	ldr	x8, [x8, _journal_discard_endio@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #52]
	ldr	x0, [x19], #44
	bl	_closure_get
Lloh6:
	adrp	x8, _journal_discard_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _journal_discard_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
Lloh9:
	adrp	x8, _bch_journal_wq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bch_journal_wq@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	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
	b	_queue_work
LBB0_6:
	ldr	w8, [x19, #40]
	str	w8, [x19, #36]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DISCARD,4,2             ; @REQ_OP_DISCARD
	.comm	_journal_discard_endio,4,2      ; @journal_discard_endio
	.comm	_journal_discard_work,4,2       ; @journal_discard_work
	.comm	_bch_journal_wq,4,2             ; @bch_journal_wq
	.no_dead_strip	_do_journal_discard
.subsections_via_symbols
