	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_remove_all_identities      ## -- Begin function ssh_remove_all_identities
	.p2align	4, 0x90
_ssh_remove_all_identities:             ## @ssh_remove_all_identities
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.2:
	movq	_SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SSH2_AGENTC_REMOVE_ALL_IDENTITIES@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%ebx, -28(%rbp)
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_sshbuf_put_u8
	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	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshbuf_get_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	-28(%rbp), %edi
	callq	_decode_reply
	movl	%eax, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_sshbuf_free
	jmp	LBB0_10
LBB0_4:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES,4,2 ## @SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES
	.comm	_SSH2_AGENTC_REMOVE_ALL_IDENTITIES,4,2 ## @SSH2_AGENTC_REMOVE_ALL_IDENTITIES
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_remove_all_identities      ; -- Begin function ssh_remove_all_identities
	.p2align	2
_ssh_remove_all_identities:             ; @ssh_remove_all_identities
	.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	x21, x0
Lloh0:
	adrp	x8, _SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SSH2_AGENTC_REMOVE_ALL_IDENTITIES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSH2_AGENTC_REMOVE_ALL_IDENTITIES@GOTPAGEOFF]
	cmp	w1, #1
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	str	w20, [sp, #12]
	bl	_sshbuf_new
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x1, x20
	bl	_sshbuf_put_u8
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_ssh_request_reply
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_sshbuf_get_u8
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_decode_reply
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_sshbuf_free
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES,4,2 ; @SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES
	.comm	_SSH2_AGENTC_REMOVE_ALL_IDENTITIES,4,2 ; @SSH2_AGENTC_REMOVE_ALL_IDENTITIES
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
.subsections_via_symbols
