	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_get_state           ## -- Begin function ssh_packet_get_state
	.p2align	4, 0x90
_ssh_packet_get_state:                  ## @ssh_packet_get_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_kex_to_blob
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	_MODE_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_newkeys_to_blob
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	_MODE_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_newkeys_to_blob
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movl	44(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u64
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movl	40(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movl	36(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	32(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u64
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movl	28(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u64
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movl	20(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u64
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_u64
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_stringb
	testl	%eax, %eax
	je	LBB0_15
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sshbuf_put_stringb             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_OUT,4,2                   ## @MODE_OUT
	.comm	_MODE_IN,4,2                    ## @MODE_IN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_get_state           ; -- Begin function ssh_packet_get_state
	.p2align	2
_ssh_packet_get_state:                  ; @ssh_packet_get_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x0]
	mov	x0, x19
	bl	_kex_to_blob
	cbnz	w0, LBB0_14
; %bb.1:
Lloh0:
	adrp	x8, _MODE_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_newkeys_to_blob
	cbnz	w0, LBB0_14
; %bb.2:
Lloh3:
	adrp	x8, _MODE_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_IN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_newkeys_to_blob
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	w1, [x21, #44]
	mov	x0, x19
	bl	_sshbuf_put_u64
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	w1, [x21, #40]
	mov	x0, x19
	bl	_sshbuf_put_u32
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	w1, [x21, #36]
	mov	x0, x19
	bl	_sshbuf_put_u32
	cbnz	w0, LBB0_14
; %bb.6:
	ldr	w1, [x21, #32]
	mov	x0, x19
	bl	_sshbuf_put_u64
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	w1, [x21, #28]
	mov	x0, x19
	bl	_sshbuf_put_u32
	cbnz	w0, LBB0_14
; %bb.8:
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_sshbuf_put_u64
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_sshbuf_put_u32
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_sshbuf_put_u64
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_sshbuf_put_u32
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_sshbuf_put_u64
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_sshbuf_put_stringb
	cbz	w0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sshbuf_put_stringb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_OUT,4,2                   ; @MODE_OUT
	.comm	_MODE_IN,4,2                    ; @MODE_IN
.subsections_via_symbols
