	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function newkeys_from_blob
_newkeys_from_blob:                     ## @newkeys_from_blob
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sshbuf_froms
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	-48(%rbp), %rdi
	leaq	56(%r12), %rsi
	xorl	%edx, %edx
	callq	_sshbuf_get_cstring
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	-48(%rbp), %rdi
	leaq	72(%r12), %rsi
	callq	_sshbuf_get_u32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	-48(%rbp), %rdi
	leaq	68(%r12), %rsi
	callq	_sshbuf_get_u32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	-48(%rbp), %rdi
	leaq	64(%r12), %rsi
	leaq	-72(%rbp), %rdx
	callq	_sshbuf_get_string
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi
	leaq	60(%r12), %rsi
	leaq	-64(%rbp), %rdx
	callq	_sshbuf_get_string
	testl	%eax, %eax
	je	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r12, %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_sshbuf_free
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	56(%r12), %edi
	callq	_cipher_by_name
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_26
## %bb.16:
	movq	%rax, %rdi
	callq	_cipher_authlen
	testq	%rax, %rax
	je	LBB0_19
LBB0_17:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	addq	$4, %rsi
	callq	_sshbuf_get_u32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.21:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sshbuf_get_cstring
	testl	%eax, %eax
	jne	LBB0_13
## %bb.25:
	movq	-48(%rbp), %rdi
	callq	_sshbuf_len
	testq	%rax, %rax
	je	LBB0_29
LBB0_26:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_19:
	movq	-48(%rbp), %rdi
	leaq	24(%r12), %r13
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_sshbuf_get_cstring
	testl	%eax, %eax
	jne	LBB0_13
## %bb.23:
	leaq	8(%r12), %rdi
	movl	(%r13), %esi
	movq	%rdi, %r13
	callq	_mac_setup
	testl	%eax, %eax
	jne	LBB0_13
## %bb.27:
	movq	-48(%rbp), %rdi
	leaq	20(%r12), %rsi
	callq	_sshbuf_get_u32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.30:
	movq	-48(%rbp), %rdi
	leaq	16(%r12), %rsi
	leaq	-56(%rbp), %rdx
	callq	_sshbuf_get_string
	testl	%eax, %eax
	jne	LBB0_13
## %bb.32:
	movq	-56(%rbp), %rax
	cmpq	(%r13), %rax
	ja	LBB0_26
## %bb.33:
	movq	%rax, (%r13)
	jmp	LBB0_17
LBB0_29:
	movq	-72(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	-64(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	%r12, (%rax,%rcx,8)
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_newkeys_from_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function newkeys_from_blob
_newkeys_from_blob:                     ; @newkeys_from_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [sp, #24]
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	add	x1, sp, #24
	mov	x0, x22
	bl	_sshbuf_froms
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #24]
	add	x1, x19, #56
	mov	x2, #0
	bl	_sshbuf_get_cstring
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [sp, #24]
	add	x1, x19, #72
	bl	_sshbuf_get_u32
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x0, [sp, #24]
	add	x1, x19, #68
	bl	_sshbuf_get_u32
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x0, [sp, #24]
	add	x1, x19, #64
	add	x2, sp, #16
	bl	_sshbuf_get_string
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [sp, #24]
	add	x1, x19, #60
	add	x2, sp, #8
	bl	_sshbuf_get_string
	cbz	w0, LBB0_10
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
LBB0_9:
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #24]
	bl	_sshbuf_free
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w0, [x19, #56]
	bl	_cipher_by_name
	str	x0, [x19, #48]
	cbz	x0, LBB0_15
; %bb.11:
	bl	_cipher_authlen
	cbz	x0, LBB0_16
LBB0_12:
	ldr	x0, [sp, #24]
	add	x1, x19, #4
	bl	_sshbuf_get_u32
	cbnz	w0, LBB0_7
; %bb.13:
	ldr	x0, [sp, #24]
	mov	x1, x19
	mov	x2, #0
	bl	_sshbuf_get_cstring
	cbnz	w0, LBB0_7
; %bb.14:
	ldr	x0, [sp, #24]
	bl	_sshbuf_len
	cbz	x0, LBB0_22
LBB0_15:
Lloh3:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_16:
	ldr	x0, [sp, #24]
	add	x24, x19, #24
	mov	x1, x24
	mov	x2, #0
	bl	_sshbuf_get_cstring
	cbnz	w0, LBB0_7
; %bb.17:
	add	x23, x19, #8
	ldr	w1, [x24]
	mov	x0, x23
	bl	_mac_setup
	cbnz	w0, LBB0_7
; %bb.18:
	ldr	x0, [sp, #24]
	add	x1, x19, #20
	bl	_sshbuf_get_u32
	cbnz	w0, LBB0_7
; %bb.19:
	ldr	x0, [sp, #24]
	add	x1, x19, #16
	mov	x2, sp
	bl	_sshbuf_get_string
	cbnz	w0, LBB0_7
; %bb.20:
	ldr	x8, [sp]
	ldr	x9, [x23]
	cmp	x8, x9
	b.hi	LBB0_15
; %bb.21:
	str	x8, [x23]
	b	LBB0_12
LBB0_22:
	mov	w22, #0
	ldp	x9, x8, [sp, #8]
	stp	x8, x9, [x19, #32]
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x19, [x8, w20, sxtw #3]
	mov	x19, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_newkeys_from_blob
.subsections_via_symbols
