	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_patch_ids
_get_patch_ids:                         ## @get_patch_ids
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	cmpl	$2, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_2:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r15
	movl	(%rcx), %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movq	_the_repository@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%rcx), %rsi
	callq	_lookup_commit_reference
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	leaq	4(%r15), %rsi
	callq	_lookup_commit_reference
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_UNINTERESTING@GOTPCREL(%rip), %rcx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	xorl	%r14d, %ebx
	movq	%rcx, %r14
	testl	%ebx, (%rcx)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_4:
	movq	_the_repository@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_init_patch_ids
	movl	(%rbx), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	leaq	-104(%rbp), %r12
	movq	%r12, %rsi
	callq	_repo_init_revisions
	movl	$1, -104(%rbp)
	movl	(%r14), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, (%rbx)
	movl	(%r14), %eax
	xorl	%eax, (%r15)
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_add_pending_object
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_add_pending_object
	movq	%r12, %rdi
	callq	_prepare_revision_walk
	testq	%rax, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_6:
	leaq	-104(%rbp), %rdi
	callq	_get_revision
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	-104(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_add_commit_patch_id
	movq	%rbx, %rdi
	callq	_get_revision
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movq	_SEEN@GOTPCREL(%rip), %r12
	movq	_UNINTERESTING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%r12), %esi
	movq	_SHOWN@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	_ADDED@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_clear_commit_marks
	movl	(%r14), %esi
	orl	(%r12), %esi
	orl	(%r13), %esi
	orl	(%rbx), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_clear_commit_marks
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need exactly one range"

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
L_.str.1:                               ## @.str.1
	.asciz	"not a range"

L_.str.2:                               ## @.str.2
	.asciz	"o1"

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

L_.str.4:                               ## @.str.4
	.asciz	"revision walk setup failed"

	.comm	_SEEN,4,2                       ## @SEEN
	.comm	_SHOWN,4,2                      ## @SHOWN
	.comm	_ADDED,4,2                      ## @ADDED
	.no_dead_strip	_get_patch_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_patch_ids
_get_patch_ids:                         ; @get_patch_ids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x24, x0
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_2:
	ldr	x8, [x24, #16]
	ldp	x19, x20, [x8]
	mov	x1, x19
	ldr	w25, [x1], #4
	mov	x22, x20
	ldr	w26, [x22], #4
Lloh2:
	adrp	x28, _the_repository@GOTPAGE
Lloh3:
	ldr	x28, [x28, _the_repository@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_lookup_commit_reference
	mov	x23, x0
	ldr	w0, [x28]
	mov	x1, x22
	bl	_lookup_commit_reference
	mov	x22, x0
Lloh4:
	adrp	x27, _UNINTERESTING@GOTPAGE
Lloh5:
	ldr	x27, [x27, _UNINTERESTING@GOTPAGEOFF]
	ldr	w8, [x27]
	eor	w9, w26, w25
	tst	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
	ldr	w0, [x28]
	mov	x1, x21
	bl	_init_patch_ids
	ldr	w0, [x28]
	ldr	w2, [x24, #4]
	add	x1, sp, #8
	bl	_repo_init_revisions
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w8, [x27]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x27]
	ldr	w9, [x20]
	eor	w8, w9, w8
	str	w8, [x20]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x1, x19
	bl	_add_pending_object
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	bl	_add_pending_object
	add	x0, sp, #8
	bl	_prepare_revision_walk
	cbz	x0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x21
	bl	_add_commit_patch_id
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_get_revision
	cbnz	x0, LBB0_6
; %bb.8:
Lloh14:
	adrp	x21, _SEEN@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SEEN@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x27]
	orr	w8, w9, w8
Lloh16:
	adrp	x24, _SHOWN@GOTPAGE
Lloh17:
	ldr	x24, [x24, _SHOWN@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh18:
	adrp	x28, _ADDED@GOTPAGE
Lloh19:
	ldr	x28, [x28, _ADDED@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_clear_commit_marks
	ldr	w8, [x21]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_clear_commit_marks
	str	w25, [x19]
	str	w26, [x20]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need exactly one range"

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
l_.str.1:                               ; @.str.1
	.asciz	"not a range"

l_.str.2:                               ; @.str.2
	.asciz	"o1"

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

l_.str.4:                               ; @.str.4
	.asciz	"revision walk setup failed"

	.comm	_SEEN,4,2                       ; @SEEN
	.comm	_SHOWN,4,2                      ; @SHOWN
	.comm	_ADDED,4,2                      ; @ADDED
	.no_dead_strip	_get_patch_ids
.subsections_via_symbols
