	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_put_bignum2_bytes       ## -- Begin function sshbuf_put_bignum2_bytes
	.p2align	4, 0x90
_sshbuf_put_bignum2_bytes:              ## @sshbuf_put_bignum2_bytes
	.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	_SSHBUF_SIZE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$-5, %rax
	cmpq	%rdx, %rax
	jae	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
	movq	_SSH_ERR_NO_BUFFER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movb	$1, %r12b
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movq	%r14, %rax
	leaq	(%r14,%rbx,8), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rax
	decq	%rbx
	jne	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	movzbl	%cl, %ecx
	shrl	$7, %ecx
	xorl	%r12d, %r12d
	movq	%rax, %r14
LBB0_8:
	movzbl	%cl, %r13d
	leaq	(%rbx,%r13), %rsi
	addq	$4, %rsi
	leaq	-48(%rbp), %rdx
	callq	_sshbuf_reserve
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	leaq	(%rbx,%r13), %rsi
	movq	-48(%rbp), %rdi
	callq	_POKE_U32
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax
	movq	$0, 32(%rax)
LBB0_12:
	xorl	%r15d, %r15d
	testb	%r12b, %r12b
	jne	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rax
	leaq	(%rax,%r13,8), %rdi
	addq	$32, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSHBUF_SIZE_MAX,4,2            ## @SSHBUF_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSH_ERR_NO_BUFFER_SPACE"

	.comm	_SSH_ERR_NO_BUFFER_SPACE,4,2    ## @SSH_ERR_NO_BUFFER_SPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_put_bignum2_bytes       ; -- Begin function sshbuf_put_bignum2_bytes
	.p2align	2
_sshbuf_put_bignum2_bytes:              ; @sshbuf_put_bignum2_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _SSHBUF_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSHBUF_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #5
	cmp	x8, x2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_DBG
Lloh5:
	adrp	x8, _SSH_ERR_NO_BUFFER_SPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_NO_BUFFER_SPACE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	cbz	x2, LBB0_7
; %bb.3:
	add	x9, x20, x19, lsl #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	subs	x19, x19, #1
	b.ne	LBB0_4
; %bb.6:
	mov	w8, #0
	mov	w22, #1
	mov	x20, x9
	b	LBB0_9
LBB0_7:
	mov	w8, #0
	mov	w22, #1
	b	LBB0_9
LBB0_8:
	mov	w22, #0
	ubfx	x8, x8, #7, #1
LBB0_9:
	mov	w23, w8
	add	x21, x19, x23
	add	x1, x21, #4
	add	x2, sp, #8
	bl	_sshbuf_reserve
	tbnz	w0, #31, LBB0_15
; %bb.10:
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_POKE_U32
	cbz	x23, LBB0_12
; %bb.11:
	ldr	x8, [sp, #8]
	str	xzr, [x8, #32]
LBB0_12:
	tbnz	w22, #0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	add	x8, x8, x23, lsl #3
	add	x0, x8, #32
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSHBUF_SIZE_MAX,4,2            ; @SSHBUF_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH_ERR_NO_BUFFER_SPACE"

	.comm	_SSH_ERR_NO_BUFFER_SPACE,4,2    ; @SSH_ERR_NO_BUFFER_SPACE
.subsections_via_symbols
