	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup_message                ## -- Begin function cleanup_message
	.p2align	4, 0x90
_cleanup_message:                       ## @cleanup_message
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	_COMMIT_MSG_CLEANUP_SCISSORS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
LBB0_2:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_wt_status_locate_end
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_strbuf_setlen
LBB0_3:
	movq	_COMMIT_MSG_CLEANUP_NONE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_COMMIT_MSG_CLEANUP_ALL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%ebx, (%rax)
	sete	%sil
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strbuf_stripspace              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMIT_MSG_CLEANUP_SCISSORS,4,2 ## @COMMIT_MSG_CLEANUP_SCISSORS
	.comm	_COMMIT_MSG_CLEANUP_NONE,4,2    ## @COMMIT_MSG_CLEANUP_NONE
	.comm	_COMMIT_MSG_CLEANUP_ALL,4,2     ## @COMMIT_MSG_CLEANUP_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup_message                ; -- Begin function cleanup_message
	.p2align	2
_cleanup_message:                       ; @cleanup_message
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbnz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _COMMIT_MSG_CLEANUP_SCISSORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMIT_MSG_CLEANUP_SCISSORS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
LBB0_2:
	ldp	w1, w0, [x19]
	bl	_wt_status_locate_end
	mov	x1, x0
	mov	x0, x19
	bl	_strbuf_setlen
LBB0_3:
Lloh3:
	adrp	x8, _COMMIT_MSG_CLEANUP_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMMIT_MSG_CLEANUP_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _COMMIT_MSG_CLEANUP_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMMIT_MSG_CLEANUP_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w1, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strbuf_stripspace
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMIT_MSG_CLEANUP_SCISSORS,4,2 ; @COMMIT_MSG_CLEANUP_SCISSORS
	.comm	_COMMIT_MSG_CLEANUP_NONE,4,2    ; @COMMIT_MSG_CLEANUP_NONE
	.comm	_COMMIT_MSG_CLEANUP_ALL,4,2     ; @COMMIT_MSG_CLEANUP_ALL
.subsections_via_symbols
