	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sig_out
_sig_out:                               ## @sig_out
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_BIO_get_data
	movq	%rax, %rbx
	movq	24(%rax), %r15
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_md
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_EVP_MD_size
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_md_data
	movq	%rax, %r14
	leal	(%r12,%r12), %edx
	addl	(%rbx), %edx
	movq	_OK_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %edx
	jg	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_6
## %bb.3:
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movl	%r12d, %esi
	callq	_longswap
	addl	%r12d, (%rbx)
	movq	_WELLKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	addl	%r12d, (%rbx)
	movl	$1, 4(%rbx)
	movq	$0, 8(%rbx)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_clear_retry_flags
	xorl	%eax, %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OK_BLOCK_SIZE,4,2              ## @OK_BLOCK_SIZE
	.comm	_WELLKNOWN,4,2                  ## @WELLKNOWN
	.no_dead_strip	_sig_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sig_out
_sig_out:                               ; @sig_out
	.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	x19, x0
	bl	_BIO_get_data
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x21
	bl	_EVP_MD_CTX_md
	mov	x24, x0
	bl	_EVP_MD_size
	mov	x22, x0
	mov	x0, x21
	bl	_EVP_MD_CTX_md_data
	ldr	w8, [x20]
	add	w8, w8, w22, lsl #1
Lloh0:
	adrp	x9, _OK_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OK_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	bl	_longswap
	ldr	w8, [x20]
	add	w8, w8, w22
	str	w8, [x20]
Lloh3:
	adrp	x8, _WELLKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WELLKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x20]
	add	w8, w8, w22
	mov	w0, #1
	stp	w8, w0, [x20]
	str	xzr, [x20, #8]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_BIO_clear_retry_flags
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OK_BLOCK_SIZE,4,2              ; @OK_BLOCK_SIZE
	.comm	_WELLKNOWN,4,2                  ; @WELLKNOWN
	.no_dead_strip	_sig_out
.subsections_via_symbols
