	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_remove_identity            ## -- Begin function ssh_remove_identity
	.p2align	4, 0x90
_ssh_remove_identity:                   ## @ssh_remove_identity
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.13:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sshkey_to_blob
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_SSH2_AGENTC_REMOVE_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sshbuf_put_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	-32(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sshbuf_put_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_ssh_request_reply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshbuf_get_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	-36(%rbp), %edi
	callq	_decode_reply
	movl	%eax, %ebx
LBB0_9:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	callq	_explicit_bzero
	movq	-32(%rbp), %rdi
	callq	_free
LBB0_11:
	movq	%r15, %rdi
	callq	_sshbuf_free
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_KEY_UNSPEC,8,3                 ## @KEY_UNSPEC
	.comm	_SSH2_AGENTC_REMOVE_IDENTITY,4,2 ## @SSH2_AGENTC_REMOVE_IDENTITY
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_remove_identity            ; -- Begin function ssh_remove_identity
	.p2align	2
_ssh_remove_identity:                   ; @ssh_remove_identity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	str	xzr, [sp, #16]
	bl	_sshbuf_new
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _KEY_UNSPEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_4:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_sshkey_to_blob
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh9:
	adrp	x8, _SSH2_AGENTC_REMOVE_IDENTITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH2_AGENTC_REMOVE_IDENTITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshbuf_put_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldp	x2, x1, [sp, #8]
	mov	x0, x19
	bl	_sshbuf_put_string
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_ssh_request_reply
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.8:
	add	x1, sp, #28
	mov	x0, x19
	bl	_sshbuf_get_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #28]
	bl	_decode_reply
	mov	x20, x0
LBB0_10:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x1, [sp, #8]
	bl	_explicit_bzero
	ldr	x0, [sp, #16]
	bl	_free
LBB0_12:
	mov	x0, x19
	bl	_sshbuf_free
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_KEY_UNSPEC,8,3                 ; @KEY_UNSPEC
	.comm	_SSH2_AGENTC_REMOVE_IDENTITY,4,2 ; @SSH2_AGENTC_REMOVE_IDENTITY
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
.subsections_via_symbols
