	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_add_identity_constrained   ## -- Begin function ssh_add_identity_constrained
	.p2align	4, 0x90
_ssh_add_identity_constrained:          ## @ssh_add_identity_constrained
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdx
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_17
## %bb.3:
	movl	$51, %ecx
	btl	%eax, %ecx
	jae	LBB0_17
## %bb.4:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r13d
	orl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%r15d, %r13d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_5
## %bb.6:
	movq	_SSH2_AGENTC_ADD_IDENTITY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_16
LBB0_5:
	movq	_SSH2_AGENTC_ADD_ID_CONSTRAINED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movl	%esi, -52(%rbp)
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	callq	_sshbuf_put_u8
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_sshkey_private_serialize_maxsign
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%rdx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_sshbuf_put_cstring
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:
	movq	%rdx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_encode_constraints
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_ssh_request_reply
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	leaq	-52(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_sshbuf_get_u8
	movq	%rbx, %rdx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-52(%rbp), %edi
	callq	_decode_reply
	movq	%rbx, %rdx
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_17:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_15:
	movq	%rdx, %rdi
	callq	_sshbuf_free
LBB0_16:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_AGENTC_ADD_ID_CONSTRAINED,4,2 ## @SSH2_AGENTC_ADD_ID_CONSTRAINED
	.comm	_SSH2_AGENTC_ADD_IDENTITY,4,2   ## @SSH2_AGENTC_ADD_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_add_identity_constrained   ; -- Begin function ssh_add_identity_constrained
	.p2align	2
_ssh_add_identity_constrained:          ; @ssh_add_identity_constrained
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	mov	x20, x0
	bl	_sshbuf_new
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x26]
	sub	w8, w8, #128
	cmp	w8, #5
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #51
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_11
; %bb.2:
	orr	w8, w22, w23
	orr	w27, w8, w21
Lloh0:
	adrp	x8, _SSH2_AGENTC_ADD_ID_CONSTRAINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH2_AGENTC_ADD_ID_CONSTRAINED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SSH2_AGENTC_ADD_IDENTITY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSH2_AGENTC_ADD_IDENTITY@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	str	w1, [sp, #12]
	mov	x0, x19
	bl	_sshbuf_put_u8
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.3:
	mov	x0, x26
	mov	x1, x19
	mov	x2, x21
	mov	x3, #0
	bl	_sshkey_private_serialize_maxsign
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x19
	mov	x1, x24
	bl	_sshbuf_put_cstring
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.5:
	cbz	w27, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_encode_constraints
	mov	x25, x0
	cbnz	w0, LBB0_12
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	bl	_ssh_request_reply
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_sshbuf_get_u8
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_decode_reply
	mov	x25, x0
	b	LBB0_12
LBB0_10:
Lloh4:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	w25, [x8]
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
LBB0_12:
	mov	x0, x19
	bl	_sshbuf_free
LBB0_13:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_AGENTC_ADD_ID_CONSTRAINED,4,2 ; @SSH2_AGENTC_ADD_ID_CONSTRAINED
	.comm	_SSH2_AGENTC_ADD_IDENTITY,4,2   ; @SSH2_AGENTC_ADD_IDENTITY
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
.subsections_via_symbols
