	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function agent_encode_alg
_agent_encode_alg:                      ## @agent_encode_alg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %rcx
	movq	_KEY_RSA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.2:
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.5:
	movq	_SSH_AGENT_RSA_SHA2_512@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_SSH_AGENT_RSA_SHA2_256@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_RSA,8,3                    ## @KEY_RSA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rsa-sha2-256"

	.comm	_SSH_AGENT_RSA_SHA2_256,4,2     ## @SSH_AGENT_RSA_SHA2_256
L_.str.1:                               ## @.str.1
	.asciz	"rsa-sha2-512"

	.comm	_SSH_AGENT_RSA_SHA2_512,4,2     ## @SSH_AGENT_RSA_SHA2_512
	.no_dead_strip	_agent_encode_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function agent_encode_alg
_agent_encode_alg:                      ; @agent_encode_alg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _KEY_RSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_RSA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x19, x1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
Lloh7:
	adrp	x8, _SSH_AGENT_RSA_SHA2_512@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_AGENT_RSA_SHA2_512@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x8, _SSH_AGENT_RSA_SHA2_256@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSH_AGENT_RSA_SHA2_256@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_RSA,8,3                    ; @KEY_RSA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rsa-sha2-256"

	.comm	_SSH_AGENT_RSA_SHA2_256,4,2     ; @SSH_AGENT_RSA_SHA2_256
l_.str.1:                               ; @.str.1
	.asciz	"rsa-sha2-512"

	.comm	_SSH_AGENT_RSA_SHA2_512,4,2     ; @SSH_AGENT_RSA_SHA2_512
	.no_dead_strip	_agent_encode_alg
.subsections_via_symbols
