	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_bignum1             ## -- Begin function sshbuf_get_bignum1
	.p2align	4, 0x90
_sshbuf_get_bignum1:                    ## @sshbuf_get_bignum1
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sshbuf_ptr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_sshbuf_len
	cmpl	$1, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_PEEK_U16
	addl	$7, %eax
	sarl	$3, %eax
	movslq	%eax, %r12
	movq	_SSHBUF_MAX_BIGNUM@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jae	LBB0_4
## %bb.3:
	movq	_SSH_ERR_BIGNUM_TOO_LARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	%rbx, %rdi
	callq	_sshbuf_len
	cltq
	leaq	2(%r12), %r13
	cmpq	%rax, %r13
	jbe	LBB0_5
LBB0_1:
	movq	_SSH_ERR_MESSAGE_INCOMPLETE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_BN_bin2bn
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_sshbuf_consume
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
	xorl	%eax, %eax
	callq	_SSHBUF_ABORT
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ## @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSHBUF_MAX_BIGNUM,8,3          ## @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_BIGNUM_TOO_LARGE,4,2   ## @SSH_ERR_BIGNUM_TOO_LARGE
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_bignum1             ; -- Begin function sshbuf_get_bignum1
	.p2align	2
_sshbuf_get_bignum1:                    ; @sshbuf_get_bignum1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_sshbuf_ptr
	mov	x21, x0
	mov	x0, x19
	bl	_sshbuf_len
	cmp	w0, #1
	b.le	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_PEEK_U16
	add	w8, w0, #7
	sbfx	x22, x8, #3, #29
Lloh0:
	adrp	x8, _SSHBUF_MAX_BIGNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSHBUF_MAX_BIGNUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.hs	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SSH_ERR_BIGNUM_TOO_LARGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_BIGNUM_TOO_LARGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_sshbuf_len
	add	x23, x22, #2
	cmp	x23, w0, sxtw
	b.ls	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	add	x0, x21, #8
	mov	x1, x22
	mov	x2, x20
	bl	_BN_bin2bn
	cbz	x0, LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x23
	bl	_sshbuf_consume
	cbz	x0, LBB0_6
; %bb.10:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_DBG
	bl	_SSHBUF_ABORT
Lloh9:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
Lloh11:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ; @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSHBUF_MAX_BIGNUM,8,3          ; @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_BIGNUM_TOO_LARGE,4,2   ; @SSH_ERR_BIGNUM_TOO_LARGE
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
.subsections_via_symbols
