	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_put_bignum1             ## -- Begin function sshbuf_put_bignum1
	.p2align	4, 0x90
_sshbuf_put_bignum1:                    ## @sshbuf_put_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_BN_num_bits
	movl	%eax, %ebx
	leal	7(%rbx), %eax
	leal	14(%rbx), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	movq	_SSHBUF_MAX_BIGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	sarl	$3, %r12d
	cmpl	%r15d, %r12d
	ja	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_BN_bn2bin
	cmpl	%r12d, %eax
	jne	LBB0_4
## %bb.5:
	movslq	%r12d, %r13
	leaq	2(%r13), %rsi
	leaq	-56(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sshbuf_reserve
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rdi
	movl	%ebx, %esi
	callq	_POKE_U16
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
LBB0_9:
	shll	$2, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_2:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_4:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r12d
	shll	$2, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSHBUF_MAX_BIGNUM,4,2          ## @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.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_put_bignum1             ; -- Begin function sshbuf_put_bignum1
	.p2align	2
_sshbuf_put_bignum1:                    ; @sshbuf_put_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
	sub	sp, sp, #16
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_BN_num_bits
	mov	x20, x0
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w12, w9, w8, lt
Lloh3:
	adrp	x8, _SSHBUF_MAX_BIGNUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSHBUF_MAX_BIGNUM@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	tbnz	w0, #31, LBB0_7
; %bb.1:
	asr	w8, w12, #3
	cmp	w8, w24
	b.hi	LBB0_7
; %bb.2:
	sbfx	x22, x12, #3, #29
	mov	x0, x23
	mov	x1, x19
	bl	_BN_bn2bin
	cmp	w0, w22
	b.ne	LBB0_8
; %bb.3:
	add	x1, x22, #2
	sub	x2, x29, #64
	mov	x0, x21
	bl	_sshbuf_reserve
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldur	x0, [x29, #-64]
	mov	x1, x20
	bl	_POKE_U16
	cbz	w20, LBB0_6
; %bb.5:
	ldur	x8, [x29, #-64]
	add	x0, x8, #8
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
LBB0_6:
	lsl	w1, w24, #2
	mov	x0, x19
	bl	_explicit_bzero
	mov	w21, #0
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
	mov	x21, x0
	lsl	w1, w24, #2
	mov	x0, x19
	bl	_explicit_bzero
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	sub	sp, x29, #48
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSHBUF_MAX_BIGNUM,4,2          ; @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
.subsections_via_symbols
