	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maybe_add_key_to_agent         ## -- Begin function maybe_add_key_to_agent
	.p2align	4, 0x90
_maybe_add_key_to_agent:                ## @maybe_add_key_to_agent
	.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	$-1, -36(%rbp)
	movq	_options@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-36(%rbp), %rdi
	callq	_ssh_get_authentication_socket
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_debug3
	jmp	LBB0_10
LBB0_3:
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ask_permission
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	(%rbx), %eax
LBB0_6:
	movl	-36(%rbp), %edi
	xorl	%r8d, %r8d
	cmpl	$3, %eax
	sete	%r8b
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_ssh_add_identity_constrained
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_debug
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debug
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	callq	_debug3
LBB0_9:
	movl	-36(%rbp), %edi
	callq	_close
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_options,4,2                    ## @options
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no authentication agent, not adding key"

L_.str.1:                               ## @.str.1
	.asciz	"Add key %s (%s) to agent?"

L_.str.2:                               ## @.str.2
	.asciz	"user denied adding this key"

L_.str.3:                               ## @.str.3
	.asciz	"identity added to agent: %s"

L_.str.4:                               ## @.str.4
	.asciz	"could not add identity to agent: %s (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maybe_add_key_to_agent         ; -- Begin function maybe_add_key_to_agent
	.p2align	2
_maybe_add_key_to_agent:                ; @maybe_add_key_to_agent
	.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	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x22, _options@GOTPAGE
Lloh1:
	ldr	x22, [x22, _options@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #12
	bl	_ssh_get_authentication_socket
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug3
	b	LBB0_12
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_ask_permission
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w8, [x22]
LBB0_6:
	ldr	w0, [sp, #12]
	cmp	w8, #3
	cset	w4, eq
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	w5, #0
	bl	_ssh_add_identity_constrained
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	mov	x1, x19
	bl	_debug
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug3
LBB0_11:
	ldr	w0, [sp, #12]
	bl	_close
LBB0_12:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_options,4,2                    ; @options
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no authentication agent, not adding key"

l_.str.1:                               ; @.str.1
	.asciz	"Add key %s (%s) to agent?"

l_.str.2:                               ; @.str.2
	.asciz	"user denied adding this key"

l_.str.3:                               ; @.str.3
	.asciz	"identity added to agent: %s"

l_.str.4:                               ; @.str.4
	.asciz	"could not add identity to agent: %s (%d)"

.subsections_via_symbols
