	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_one_note
_remove_one_note:                       ## @remove_one_note
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_error
	jmp	LBB0_3
LBB0_2:
	movl	-40(%rbp), %esi
	movq	%r15, %rdi
	callq	_remove_note
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	movq	_IGNORE_MISSING@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r14d, (%rcx)
	cmovel	%r15d, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to resolve '%s' as a valid ref."

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Object %s has no note\n"

L_.str.2:                               ## @.str.2
	.asciz	"Removing note for object %s\n"

	.comm	_IGNORE_MISSING,4,2             ## @IGNORE_MISSING
	.no_dead_strip	_remove_one_note
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_one_note
_remove_one_note:                       ; @remove_one_note
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_oid
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
	b	LBB0_3
LBB0_2:
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_remove_note
	mov	x21, x0
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	bl	__
	mov	x1, x0
	mov	x0, x22
	mov	x2, x19
	bl	_fprintf
Lloh9:
	adrp	x8, _IGNORE_MISSING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGNORE_MISSING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	csel	w0, w21, wzr, eq
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to resolve '%s' as a valid ref."

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Object %s has no note\n"

l_.str.2:                               ; @.str.2
	.asciz	"Removing note for object %s\n"

	.comm	_IGNORE_MISSING,4,2             ; @IGNORE_MISSING
	.no_dead_strip	_remove_one_note
.subsections_via_symbols
