	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_fetch_identitylist         ## -- Begin function ssh_fetch_identitylist
	.p2align	4, 0x90
_ssh_fetch_identitylist:                ## @ssh_fetch_identitylist
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_SSH2_AGENTC_REQUEST_IDENTITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sshbuf_put_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_ssh_request_reply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshbuf_get_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	-64(%rbp), %rdi
	callq	_agent_failed
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_SSH_ERR_AGENT_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	-64(%rbp), %rax
	movq	_SSH2_AGENT_IDENTITIES_ANSWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshbuf_get_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rax
	movq	_MAX_AGENT_IDENTITIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_14
LBB0_10:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_sshbuf_free
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.16:
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	movq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.18:
	xorl	%ebx, %ebx
	cmpq	$0, -48(%rbp)
	je	LBB0_28
## %bb.19:
	xorl	%ecx, %ecx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	leaq	(,%rcx,4), %rdx
	movq	16(%r13), %rsi
	addq	%rdx, %rsi
	addq	8(%r13), %rdx
	movq	%r15, %rdi
	callq	_deserialise_identity2
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %r13d
	movq	_SSH_ERR_KEY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rax
	decq	%rax
	movq	%rax, -48(%rbp)
	movq	%r12, %rcx
	cmpq	%rax, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jb	LBB0_20
	jmp	LBB0_29
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rcx
	incq	%rcx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jb	LBB0_20
	jmp	LBB0_29
LBB0_24:
	movq	_SSH_ERR_AGENT_NO_IDENTITIES@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_25:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_26:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_27:
	movq	%r15, %rdi
	callq	_sshbuf_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ssh_free_identitylist
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	movq	%rax, (%r13)
	movq	%r13, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_AGENTC_REQUEST_IDENTITIES,4,2 ## @SSH2_AGENTC_REQUEST_IDENTITIES
	.comm	_SSH_ERR_AGENT_FAILURE,4,2      ## @SSH_ERR_AGENT_FAILURE
	.comm	_SSH2_AGENT_IDENTITIES_ANSWER,8,3 ## @SSH2_AGENT_IDENTITIES_ANSWER
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_MAX_AGENT_IDENTITIES,8,3       ## @MAX_AGENT_IDENTITIES
	.comm	_SSH_ERR_AGENT_NO_IDENTITIES,4,2 ## @SSH_ERR_AGENT_NO_IDENTITIES
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ## @SSH_ERR_KEY_TYPE_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_fetch_identitylist         ; -- Begin function ssh_fetch_identitylist
	.p2align	2
_ssh_fetch_identitylist:                ; @ssh_fetch_identitylist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_sshbuf_new
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _SSH2_AGENTC_REQUEST_IDENTITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH2_AGENTC_REQUEST_IDENTITIES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sshbuf_put_u8
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_ssh_request_reply
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_sshbuf_get_u8
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_agent_failed
	cbz	x0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _SSH_ERR_AGENT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_AGENT_FAILURE@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_7:
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, _SSH2_AGENT_IDENTITIES_ANSWER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSH2_AGENT_IDENTITIES_ANSWER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x1, sp
	mov	x0, x19
	bl	_sshbuf_get_u32
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	x8, [sp]
Lloh11:
	adrp	x9, _MAX_AGENT_IDENTITIES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_AGENT_IDENTITIES@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_14
LBB0_10:
Lloh14:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	mov	x0, x19
	bl	_sshbuf_free
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	cbz	x8, LBB0_25
; %bb.15:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_26
; %bb.16:
	mov	x21, x0
	ldr	x0, [sp]
	mov	w1, #4
	bl	_calloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_27
; %bb.17:
	ldr	x0, [sp]
	mov	w1, #4
	bl	_calloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_27
; %bb.18:
	ldr	x8, [sp]
	cbz	x8, LBB0_24
; %bb.19:
	mov	x23, #0
Lloh16:
	adrp	x24, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x24, [x24, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #2
	ldp	x10, x9, [x21, #8]
	add	x1, x9, x8
	add	x2, x10, x8
	mov	x0, x19
	bl	_deserialise_identity2
	cbz	w0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp]
	sub	x8, x8, #1
	str	x8, [sp]
	cmp	x23, x8
	b.lo	LBB0_20
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp]
	cmp	x23, x8
	b.lo	LBB0_20
LBB0_24:
	mov	w22, #0
	str	x8, [x21]
	str	x21, [x20]
	b	LBB0_12
LBB0_25:
Lloh18:
	adrp	x8, _SSH_ERR_AGENT_NO_IDENTITIES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSH_ERR_AGENT_NO_IDENTITIES@GOTPAGEOFF]
	b	LBB0_11
LBB0_26:
Lloh20:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_11
LBB0_27:
Lloh22:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
LBB0_28:
	mov	x0, x19
	bl	_sshbuf_free
	mov	x0, x21
	bl	_ssh_free_identitylist
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_AGENTC_REQUEST_IDENTITIES,4,2 ; @SSH2_AGENTC_REQUEST_IDENTITIES
	.comm	_SSH_ERR_AGENT_FAILURE,4,2      ; @SSH_ERR_AGENT_FAILURE
	.comm	_SSH2_AGENT_IDENTITIES_ANSWER,8,3 ; @SSH2_AGENT_IDENTITIES_ANSWER
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_MAX_AGENT_IDENTITIES,8,3       ; @MAX_AGENT_IDENTITIES
	.comm	_SSH_ERR_AGENT_NO_IDENTITIES,4,2 ; @SSH_ERR_AGENT_NO_IDENTITIES
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ; @SSH_ERR_KEY_TYPE_UNKNOWN
.subsections_via_symbols
