	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_put_bignum2             ## -- Begin function sshbuf_put_bignum2
	.p2align	4, 0x90
_sshbuf_put_bignum2:                    ## @sshbuf_put_bignum2
	.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, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSHBUF_MAX_BIGNUM@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	incl	%r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rdi
	callq	_BN_num_bytes
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jg	LBB0_2
## %bb.3:
	movl	$0, (%r15)
	movq	%r15, %r13
	addq	$4, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BN_bn2bin
	cmpl	%ebx, %eax
	jne	LBB0_4
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movl	(%r13), %eax
	shrl	$7, %eax
	andl	$1, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	shlq	$2, %rcx
	subq	%rcx, %r13
	addl	%eax, %ebx
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_sshbuf_put_string
	movl	%eax, %ebx
	shll	$2, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_explicit_bzero
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	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_bignum2             ; -- Begin function sshbuf_put_bignum2
	.p2align	2
_sshbuf_put_bignum2:                    ; @sshbuf_put_bignum2
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _SSHBUF_MAX_BIGNUM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SSHBUF_MAX_BIGNUM@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w24, w8, #1
	lsl	x8, x24, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x1
	bl	_BN_num_bytes
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.2:
	mov	x23, x20
	str	wzr, [x23], #4
	mov	x0, x22
	mov	x1, x23
	bl	_BN_bn2bin
	cmp	w0, w21
	b.ne	LBB0_6
; %bb.3:
	cbz	w21, LBB0_7
; %bb.4:
	ldr	w8, [x23]
	ubfx	w8, w8, #7, #1
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	mov	w8, #0
LBB0_8:
	sub	x1, x23, w8, uxtw #2
	add	w2, w8, w21
	mov	x0, x19
	bl	_sshbuf_put_string
	mov	x19, x0
	lsl	w1, w24, #2
	mov	x0, x20
	bl	_explicit_bzero
	cmp	w19, #0
	csel	w0, w19, wzr, lt
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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
