	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_bignum2_bytes_direct ## -- Begin function sshbuf_get_bignum2_bytes_direct
	.p2align	4, 0x90
_sshbuf_get_bignum2_bytes_direct:       ## @sshbuf_get_bignum2_bytes_direct
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_sshbuf_peek_string_direct
	testl	%eax, %eax
	js	LBB0_21
## %bb.1:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	-32(%rbp), %rax
	testb	$-128, (%rax)
	jne	LBB0_3
LBB0_4:
	movq	_SSHBUF_MAX_BIGNUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rax
	cmpq	%rax, %rsi
	ja	LBB0_7
## %bb.5:
	movq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	cmpl	$0, (%rax)
	je	LBB0_8
LBB0_7:
	movq	_SSH_ERR_BIGNUM_TOO_LARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_3:
	movq	_SSH_ERR_BIGNUM_IS_NEGATIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.9:
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %rax
	movq	%rax, -32(%rbp)
	decq	%rcx
	jne	LBB0_10
LBB0_12:
	xorl	%ecx, %ecx
LBB0_13:
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movq	%rax, (%r15)
LBB0_15:
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	%rcx, (%r14)
LBB0_17:
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_sshbuf_consume
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
	xorl	%eax, %eax
	callq	_SSHBUF_ABORT
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_BIGNUM_IS_NEGATIVE,4,2 ## @SSH_ERR_BIGNUM_IS_NEGATIVE
	.comm	_SSHBUF_MAX_BIGNUM,4,2          ## @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_BIGNUM_TOO_LARGE,4,2   ## @SSH_ERR_BIGNUM_TOO_LARGE
	.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_bignum2_bytes_direct ; -- Begin function sshbuf_get_bignum2_bytes_direct
	.p2align	2
_sshbuf_get_bignum2_bytes_direct:       ; @sshbuf_get_bignum2_bytes_direct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, sp
	bl	_sshbuf_peek_string_direct
	tbnz	w0, #31, LBB0_20
; %bb.1:
	ldr	x8, [sp]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [sp, #8]
	ldrb	w9, [x9]
	tbnz	w9, #7, LBB0_7
LBB0_3:
Lloh0:
	adrp	x9, _SSHBUF_MAX_BIGNUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSHBUF_MAX_BIGNUM@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x9, x9, #1
	cmp	x8, x9
	b.hi	LBB0_6
; %bb.4:
	ldr	x9, [sp, #8]
	b.ne	LBB0_8
; %bb.5:
	ldr	w10, [x9]
	cbz	w10, LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _SSH_ERR_BIGNUM_TOO_LARGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_BIGNUM_TOO_LARGE@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
Lloh5:
	adrp	x8, _SSH_ERR_BIGNUM_IS_NEGATIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_BIGNUM_IS_NEGATIVE@GOTPAGEOFF]
	b	LBB0_19
LBB0_8:
	cbz	x8, LBB0_12
; %bb.9:
	mov	x10, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cbnz	w11, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #4
	str	x9, [sp, #8]
	subs	x10, x10, #1
	b.ne	LBB0_10
	b	LBB0_13
LBB0_12:
	mov	x10, #0
LBB0_13:
	cbz	x21, LBB0_15
; %bb.14:
	str	x9, [x21]
LBB0_15:
	cbz	x20, LBB0_17
; %bb.16:
	str	x10, [x20]
LBB0_17:
	add	x1, x8, #4
	mov	x0, x19
	bl	_sshbuf_consume
	cbz	x0, LBB0_20
; %bb.18:
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]
LBB0_19:
	ldr	w0, [x8]
LBB0_20:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_BIGNUM_IS_NEGATIVE,4,2 ; @SSH_ERR_BIGNUM_IS_NEGATIVE
	.comm	_SSHBUF_MAX_BIGNUM,4,2          ; @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_BIGNUM_TOO_LARGE,4,2   ; @SSH_ERR_BIGNUM_TOO_LARGE
	.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
