	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am_next
_am_next:                               ## @am_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	callq	_FREE_AND_NULL
	movl	24(%rbx), %edi
	callq	_FREE_AND_NULL
	movl	20(%rbx), %edi
	callq	_FREE_AND_NULL
	movl	16(%rbx), %edi
	callq	_FREE_AND_NULL
	movq	$0, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_am_path
	movl	%eax, %edi
	callq	_unlink
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_am_path
	movl	%eax, %edi
	callq	_unlink
	leaq	4(%rbx), %rdi
	callq	_oidclr
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_am_path
	movl	%eax, %edi
	callq	_unlink
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_delete_ref
	leaq	L_.str.4(%rip), %rdi
	leaq	-16(%rbp), %rsi
	callq	_get_oid
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	leaq	-16(%rbp), %rdi
	callq	_oid_to_hex
	movq	%rax, %rdx
LBB0_3:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_write_state_text
	movl	(%rbx), %edx
	incl	%edx
	movl	%edx, (%rbx)
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_write_state_count
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"author-script"

L_.str.1:                               ## @.str.1
	.asciz	"final-commit"

L_.str.2:                               ## @.str.2
	.asciz	"original-commit"

L_.str.3:                               ## @.str.3
	.asciz	"REBASE_HEAD"

	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
L_.str.4:                               ## @.str.4
	.asciz	"HEAD"

L_.str.5:                               ## @.str.5
	.asciz	"abort-safety"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"next"

	.no_dead_strip	_am_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am_next
_am_next:                               ; @am_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_FREE_AND_NULL
	ldr	w0, [x19, #24]
	bl	_FREE_AND_NULL
	ldr	w0, [x19, #20]
	bl	_FREE_AND_NULL
	ldr	w0, [x19, #16]
	bl	_FREE_AND_NULL
	str	xzr, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_am_path
	bl	_unlink
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_am_path
	bl	_unlink
	add	x0, x19, #4
	bl	_oidclr
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_am_path
	bl	_unlink
Lloh6:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x2, #0
	bl	_delete_ref
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #8
	bl	_get_oid
	cbz	w0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x2, l_.str.6@PAGE
Lloh14:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x2, x0
LBB0_3:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_write_state_text
	ldr	w8, [x19]
	add	w2, w8, #1
	str	w2, [x19]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_write_state_count
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"author-script"

l_.str.1:                               ; @.str.1
	.asciz	"final-commit"

l_.str.2:                               ; @.str.2
	.asciz	"original-commit"

l_.str.3:                               ; @.str.3
	.asciz	"REBASE_HEAD"

	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
l_.str.4:                               ; @.str.4
	.asciz	"HEAD"

l_.str.5:                               ; @.str.5
	.asciz	"abort-safety"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"next"

	.no_dead_strip	_am_next
.subsections_via_symbols
